txbump: display outputs in raw order [bugfix]

- required when user manually chooses output to deduct the fee from
This commit is contained in:
The MMGen Project 2025-09-29 23:09:17 +00:00
commit e379926042
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
16.1.dev1
16.1.dev2

View file

@ -181,7 +181,7 @@ async def main():
if not silent:
msg(green('ORIGINAL TRANSACTION'))
msg(orig_tx.info.format(terse=True))
msg(orig_tx.info.format(terse=True, sort='raw'))
from .tw.ctl import TwCtl
tx = BumpTX(
@ -199,7 +199,7 @@ async def main():
if not silent:
msg(green('\nREPLACEMENT TRANSACTION:'))
msg_r(tx.info.format(terse=True))
msg_r(tx.info.format(terse=True, sort='raw'))
if sign_and_send:
tx2 = UnsignedTX(cfg=cfg, data=tx.__dict__)

View file

@ -782,7 +782,7 @@ class CmdTestMain(CmdTestBase, CmdTestShared):
t = self.spawn('mmgen-txbump', args)
if seed_args:
t.do_decrypt_ka_data(pw=self.cfgs['14']['kapasswd'])
t.expect('deduct the fee from (Hit ENTER for the change output): ', '1\n')
t.expect('deduct the fee from (Hit ENTER for the change output): ', '2\n')
# Fee must be > tx_fee + network relay fee (currently 0.00001)
t.expect('OK? (Y/n): ', '\n')
t.expect('Enter transaction fee: ', self.txbump_fee+'\n')