def __init__(self, header=None):
    if (header is None):
        self.set_null()
    else:
        self.nVersion = header.nVersion
        self.hashPrevBlock = header.hashPrevBlock
        self.hashMerkleRoot = header.hashMerkleRoot
        self.nTime = header.nTime
        self.nufos = header.nufos
        self.nNonce = header.nNonce
        self.sha256 = header.sha256
        self.hash = header.hash
        self.calc_sha256()
def __init__(self, header=None):
    if (header is None):
        self.set_null()
    else:
        self.nVersion = header.nVersion
        self.hashPrevBlock = header.hashPrevBlock
        self.hashMerkleRoot = header.hashMerkleRoot
        self.nTime = header.nTime
        self.nufos = header.nufos
        self.nNonce = header.nNonce
        self.sha256 = header.sha256
        self.hash = header.hash
        self.calc_sha256()