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

Method GetHash

bitcoin/core/serialize.py:138–145  ·  view source on GitHub ↗

Return the hash of the serialized object

(self)

Source from the content-addressed store, hash-verified

136 raise AttributeError('Object is immutable')
137
138 def GetHash(self):
139 """Return the hash of the serialized object"""
140 try:
141 return self._cached_GetHash
142 except AttributeError:
143 _cached_GetHash = super(ImmutableSerializable, self).GetHash()
144 object.__setattr__(self, '_cached_GetHash', _cached_GetHash)
145 return _cached_GetHash
146
147 def __hash__(self):
148 try:

Callers

nothing calls this directly

Calls 2

__setattr__Method · 0.80
GetHashMethod · 0.45

Tested by

no test coverage detected