Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ txToHex
Function
txToHex
test/bitcoin_functional/functional/feature_rbf.py:16–17 ·
view source on GitHub ↗
(tx)
Source
from the content-addressed store, hash-verified
14
MAX_REPLACEMENT_LIMIT = 100
15
16
def
txToHex(tx):
17
return
bytes_to_hex_str(tx.serialize())
18
19
def
make_utxo(node, amount, confirmed=True, scriptPubKey=CScript([1])):
20
""
"Create a txout
with
a given amount and scriptPubKey
Callers
11
make_utxo
Function · 0.85
test_simple_doublespend
Method · 0.85
test_doublespend_chain
Method · 0.85
branch
Method · 0.85
test_doublespend_tree
Method · 0.85
test_replacement_feeperkb
Method · 0.85
test_spends_of_conflicting_outputs
Method · 0.85
test_new_unconfirmed_inputs
Method · 0.85
test_too_many_replacements
Method · 0.85
test_opt_in
Method · 0.85
test_prioritised_transactions
Method · 0.85
Calls
2
bytes_to_hex_str
Function · 0.90
serialize
Method · 0.45
Tested by
9
test_simple_doublespend
Method · 0.68
test_doublespend_chain
Method · 0.68
test_doublespend_tree
Method · 0.68
test_replacement_feeperkb
Method · 0.68
test_spends_of_conflicting_outputs
Method · 0.68
test_new_unconfirmed_inputs
Method · 0.68
test_too_many_replacements
Method · 0.68
test_opt_in
Method · 0.68
test_prioritised_transactions
Method · 0.68