Return the block hash Note that this is the hash of the header, not the entire serialized block.
(self)
| 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""" |