Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ getwtxid
Method
getwtxid
test/functional/test_framework/messages.py:881–882 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
879
return
self.serialize_without_witness()
880
881
def
getwtxid(self):
882
return
hash256(self.serialize())[::-1].hex()
883
884
# Recalculate the txid (transaction hash without witness)
885
def
rehash(self):
Callers
9
run_test
Method · 0.95
test_standardness_v0
Method · 0.95
test_p2sh_witness
Method · 0.95
run_test
Method · 0.80
test_independent
Method · 0.80
test_chain
Method · 0.80
test_conflicting
Method · 0.80
test_rbf
Method · 0.80
run_test
Method · 0.80
Calls
3
serialize
Method · 0.95
hex
Method · 0.80
hash256
Function · 0.70
Tested by
6
test_standardness_v0
Method · 0.76
test_p2sh_witness
Method · 0.76
test_independent
Method · 0.64
test_chain
Method · 0.64
test_conflicting
Method · 0.64
test_rbf
Method · 0.64