MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / GetHash

Method GetHash

bitcoin/core/__init__.py:697–708  ·  view source on GitHub ↗

Return the block hash Note that this is the hash of the header, not the entire serialized block.

(self)

Source from the content-addressed store, hash-verified

695 nNonce=self.nNonce)
696
697 def GetHash(self):
698 """Return the block hash
699
700 Note that this is the hash of the header, not the entire serialized
701 block.
702 """
703 try:
704 return self._cached_GetHash
705 except AttributeError:
706 _cached_GetHash = self.get_header().GetHash()
707 object.__setattr__(self, '_cached_GetHash', _cached_GetHash)
708 return _cached_GetHash
709
710 def GetWeight(self):
711 """Return the block weight: (stripped_size * 3) + total_size"""

Callers 10

VerifyMessageFunction · 0.45
SignMessageFunction · 0.45
CheckBlockHeaderFunction · 0.45
sendrawtransactionMethod · 0.45
test_GetHashMethod · 0.45
test_GetHashMethod · 0.45
test_GetHashMethod · 0.45
test_GetHashMethod · 0.45

Calls 2

get_headerMethod · 0.95
__setattr__Method · 0.80

Tested by 5

test_GetHashMethod · 0.36
test_GetHashMethod · 0.36
test_GetHashMethod · 0.36
test_GetHashMethod · 0.36