MCPcopy Create free account
hub / github.com/ElementsProject/elements / rehash

Method rehash

test/functional/test_framework/messages.py:885–888  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

883
884 # Recalculate the txid (transaction hash without witness)
885 def rehash(self):
886 self.sha256 = None
887 self.calc_sha256()
888 return self.hash
889
890 # We will only cache the serialization without witness in
891 # self.sha256 and self.hash -- those are expected to be the txid.

Callers 15

run_testMethod · 0.95
make_utxosMethod · 0.95
test_disable_flagMethod · 0.95
test_nonzero_locksMethod · 0.95
run_testMethod · 0.95

Calls 1

calc_sha256Method · 0.95