From 86d51f1ad7bb68e82d51ddeb49ffd3fa2ecc1500 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Fri, 16 Jan 2026 15:41:44 +0000 Subject: [PATCH] mmgen-txsend: shorten default confirmation to 'YES' --- mmgen/tx/online.py | 2 +- test/cmdtest_d/shared.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mmgen/tx/online.py b/mmgen/tx/online.py index a5319ee1..4b658116 100755 --- a/mmgen/tx/online.py +++ b/mmgen/tx/online.py @@ -47,7 +47,7 @@ class OnlineSigned(Signed): action = 'broadcast this transaction to the {} {} network'.format( self.proto.coin, self.proto.network.upper()), - expect = 'YES' if self.cfg.quiet or self.cfg.yes else 'YES, I REALLY WANT TO DO THIS') + expect = 'YES') msg('Sending transaction') if len(idxs) > 1 and getattr(self, 'coin_txid2', None) and self.is_swap: ymsg('Warning: two transactions (approval and router) will be broadcast to the network') diff --git a/test/cmdtest_d/shared.py b/test/cmdtest_d/shared.py index 486f4281..008e7548 100755 --- a/test/cmdtest_d/shared.py +++ b/test/cmdtest_d/shared.py @@ -359,5 +359,6 @@ class CmdTestShared: def _do_confirm_send(self, t, quiet=False, confirm_send=True, sure=True): if sure: t.expect('Are you sure you want to broadcast this') - m = ('YES, I REALLY WANT TO DO THIS', 'YES')[quiet] - t.expect(f'{m!r} to confirm: ', ('', m)[confirm_send]+'\n') + t.expect( + "'YES' to confirm: ", + ('YES\n' if confirm_send else '\n'))