Return the block weight: (stripped_size * 3) + total_size
(self)
| 708 | return _cached_GetHash |
| 709 | |
| 710 | def GetWeight(self): |
| 711 | """Return the block weight: (stripped_size * 3) + total_size""" |
| 712 | return len(self.serialize(dict(include_witness=False))) * 3 + len(self.serialize()) |
| 713 | |
| 714 | class CoreChainParams(object): |
| 715 | """Define consensus-critical parameters of a given instance of the Bitcoin system""" |