From f43d00c7249a29f2cf3a0ff5f453dbd70ad40f69 Mon Sep 17 00:00:00 2001 From: Adam Gibson Date: Sat, 14 Jan 2023 12:28:01 +0000 Subject: [PATCH] remove now unused OUTPUT_EXTRA_BYTES --- jmbitcoin/jmbitcoin/secp256k1_transaction.py | 25 -------------------- 1 file changed, 25 deletions(-) diff --git a/jmbitcoin/jmbitcoin/secp256k1_transaction.py b/jmbitcoin/jmbitcoin/secp256k1_transaction.py index a4d7b0fac..8dfc3c52a 100644 --- a/jmbitcoin/jmbitcoin/secp256k1_transaction.py +++ b/jmbitcoin/jmbitcoin/secp256k1_transaction.py @@ -19,31 +19,6 @@ SCRIPT_VERIFY_STRICTENC, SIGVERSION_WITNESS_V0) -# for each transaction type, different output script pubkeys may result in -# a difference in the number of bytes accounted for while estimating the -# transaction size, this variable stores the difference and is factored in -# when calculating the correct transaction size. For example, for a p2pkh -# transaction, if one of the outputs is a p2wsh pubkey, then the transaction -# would need 9 extra bytes to account for the difference in script pubkey -# sizes -OUTPUT_EXTRA_BYTES = { - 'p2pkh': { - 'p2wpkh': -3, - 'p2sh-p2wpkh': -2, - 'p2wsh': 9 - }, - 'p2wpkh': { - 'p2pkh': 3, - 'p2sh-p2wpkh': 1, - 'p2wsh': 12 - }, - 'p2sh-p2wpkh': { - 'p2pkh': 2, - 'p2wpkh': -1, - 'p2wsh': 11 - } -} - def human_readable_transaction(tx, jsonified=True): """ Given a CTransaction object, output a human readable json-formatted string (suitable for terminal