From 7be6db6dca9e4fb0a7146e8c23ab148c7b68d1b7 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Sun, 14 Jul 2024 01:39:38 +0700 Subject: [PATCH] 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' --- test/functional/test_framework/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py index 547e399fa5..b88640ffd2 100644 --- a/test/functional/test_framework/wallet.py +++ b/test/functional/test_framework/wallet.py @@ -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}