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'
This commit is contained in:
Konstantin Akimov 2024-07-14 01:39:38 +07:00
parent 5d10b41302
commit 7be6db6dca
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -107,7 +107,7 @@ class MiniWallet:
tx_info = from_node.testmempoolaccept([tx_hex])[0]
assert_equal(mempool_valid, tx_info['allowed'])
if mempool_valid:
assert_equal(len(tx_hex) // 2, vsize)
assert_equal(len(tx_hex) // 2, vsize) # 1 byte = 2 character
assert_equal(tx_info['fees']['base'], fee)
return {'txid': tx_info['txid'], 'hex': tx_hex, 'tx': tx}