Skip to content

Commit 7be6db6

Browse files
committed
docs: add an explanation for vsize in MiniWallet
It's a double size because 1 byte is 2 hex character, not because it is 'segwit'
1 parent 5d10b41 commit 7be6db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_framework/wallet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def create_self_transfer(self, *, fee_rate=Decimal("0.003"), from_node, utxo_to_
107107
tx_info = from_node.testmempoolaccept([tx_hex])[0]
108108
assert_equal(mempool_valid, tx_info['allowed'])
109109
if mempool_valid:
110-
assert_equal(len(tx_hex) // 2, vsize)
110+
assert_equal(len(tx_hex) // 2, vsize) # 1 byte = 2 character
111111
assert_equal(tx_info['fees']['base'], fee)
112112
return {'txid': tx_info['txid'], 'hex': tx_hex, 'tx': tx}
113113

0 commit comments

Comments
 (0)