twallet: (fix) bump_fee and cpfp now returns tx with all wallet-info - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ad03c1e3cb3e49ab3608ac0eb17da435cd16255c DIR parent 4f1814e8693f95a8b9f3c912a4510d781d7767aa HTML Author: SomberNight <somber.night@protonmail.com> Date: Thu, 8 Oct 2020 19:21:36 +0200 wallet: (fix) bump_fee and cpfp now returns tx with all wallet-info Previously e.g. bip32 derivation info was missing for change outputs in partial tx returned by bump_fee. This was not exposed to users as the GUI TxDialog calls `tx.add_info_from_wallet(self.wallet)`. Diffstat: M electrum/tests/test_wallet_vertica… | 6 +++--- M electrum/wallet.py | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) --- DIR diff --git a/electrum/tests/test_wallet_vertical.py b/electrum/tests/test_wallet_vertical.py t@@ -937,7 +937,7 @@ class TestWalletSending(TestCaseForTestnet): tx.version = 1 if simulate_moving_txs: partial_tx = tx.serialize_as_bytes().hex() - self.assertEqual("70736274ff01007501000000016207d958dc46508d706e4cd7d3bc46c5c2b02160e2578e5fad2efafc392705030000000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987a0337200000000001976a914aab9af3fbee0ab4e5c00d53e92f66d4bcb44f1bd88acbd391400000100fa010000000001011f4db0ecd81f4388db316bc16efb4e9daf874cf4950d54ecb4c0fb372433d68500000000171600143d57fd9e88ef0e70cddb0d8b75ef86698cab0d44fdffffff0280969800000000001976a91472e34cebab371967b038ce41d0e8fa1fb983795e88ac86a0ae020000000017a9149188bc82bdcae077060ebb4f02201b73c806edc887024830450221008e0725d531bd7dee4d8d38a0f921d7b1213e5b16c05312a80464ecc2b649598d0220596d309cf66d5f47cb3df558dbb43c5023a7796a80f5a88b023287e45a4db6b9012102c34d61ceafa8c216f01e05707672354f8119334610f7933a3f80dd7fb6290296bd391400220602a807c07bd7975211078e916bdda061d97e98d59a3631a804aada2f9a3f5b587a0c8296e5710000000000000000000000", + self.assertEqual("70736274ff01007501000000016207d958dc46508d706e4cd7d3bc46c5c2b02160e2578e5fad2efafc392705030000000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987a0337200000000001976a914aab9af3fbee0ab4e5c00d53e92f66d4bcb44f1bd88acbd391400000100fa010000000001011f4db0ecd81f4388db316bc16efb4e9daf874cf4950d54ecb4c0fb372433d68500000000171600143d57fd9e88ef0e70cddb0d8b75ef86698cab0d44fdffffff0280969800000000001976a91472e34cebab371967b038ce41d0e8fa1fb983795e88ac86a0ae020000000017a9149188bc82bdcae077060ebb4f02201b73c806edc887024830450221008e0725d531bd7dee4d8d38a0f921d7b1213e5b16c05312a80464ecc2b649598d0220596d309cf66d5f47cb3df558dbb43c5023a7796a80f5a88b023287e45a4db6b9012102c34d61ceafa8c216f01e05707672354f8119334610f7933a3f80dd7fb6290296bd391400220602a807c07bd7975211078e916bdda061d97e98d59a3631a804aada2f9a3f5b587a0c8296e57100000000000000000000220203aa6a5d43c6de66d60f50942cf34f20e02c2c6f55349548fbf2cde5dd5d69b9180c8296e571010000000000000000", partial_tx) tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners self.assertFalse(tx.is_complete()) t@@ -1034,7 +1034,7 @@ class TestWalletSending(TestCaseForTestnet): tx.version = 1 if simulate_moving_txs: partial_tx = tx.serialize_as_bytes().hex() parazyd.org:70 /git/electrum/commit/ad03c1e3cb3e49ab3608ac0eb17da435cd16255c.gph:38: line too long