From 4785f2cd360fee8ceb645bfa415957588977a91b Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Tue, 27 Oct 2026 13:30:14 +0000 Subject: [PATCH] tx.online: `send_with_node()` -> `rpc_send()` --- mmgen/proto/btc/tx/online.py | 2 +- mmgen/proto/eth/tx/online.py | 2 +- mmgen/proto/rune/tx/online.py | 2 +- mmgen/proto/xmr/tx/online.py | 2 +- mmgen/tx/online.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mmgen/proto/btc/tx/online.py b/mmgen/proto/btc/tx/online.py index f9a39b31..54e0e169 100644 --- a/mmgen/proto/btc/tx/online.py +++ b/mmgen/proto/btc/tx/online.py @@ -50,7 +50,7 @@ class OnlineSigned(Signed, TxBase.OnlineSigned): msg(ret['reject-reason']) return False - async def send_with_node(self, txhex): + async def rpc_send(self, txhex): try: return await self.rpc.call('sendrawtransaction', txhex) except Exception as e: diff --git a/mmgen/proto/eth/tx/online.py b/mmgen/proto/eth/tx/online.py index a304328a..d06b0fcc 100644 --- a/mmgen/proto/eth/tx/online.py +++ b/mmgen/proto/eth/tx/online.py @@ -31,7 +31,7 @@ class OnlineSigned(Signed, TxBase.OnlineSigned): self.proto.coin)) await self.status.display() - async def send_with_node(self, txhex): + async def rpc_send(self, txhex): try: ret = await self.rpc.call('eth_sendRawTransaction', '0x' + txhex) except Exception as e: diff --git a/mmgen/proto/rune/tx/online.py b/mmgen/proto/rune/tx/online.py index 0c5b22ae..127d0ef6 100644 --- a/mmgen/proto/rune/tx/online.py +++ b/mmgen/proto/rune/tx/online.py @@ -28,7 +28,7 @@ class OnlineSigned(Signed, TxBase.OnlineSigned): async def send_checks(self): pass - async def send_with_node(self, txhex): + async def rpc_send(self, txhex): res = self.rpc.tx_op(txhex, op='broadcast_tx_sync') # broadcast_tx_async if res['code'] == 0: return res['hash'].lower() diff --git a/mmgen/proto/xmr/tx/online.py b/mmgen/proto/xmr/tx/online.py index d3c92fcb..7abcc3da 100644 --- a/mmgen/proto/xmr/tx/online.py +++ b/mmgen/proto/xmr/tx/online.py @@ -22,7 +22,7 @@ class OnlineSigned(Completed, TxOnlineSigned): async def check_memoless_presend(self): return await super().check_memoless_presend(amt=self.send_amt) - async def send_with_node(self, txhex): + async def rpc_send(self, txhex): op = xmrwallet_op('submit', self.cfg, self.infile, None, compat_call=True) await op.restart_wallet_daemon() self.compat_data = await op.main() diff --git a/mmgen/tx/online.py b/mmgen/tx/online.py index 86dd183f..cf3b501f 100644 --- a/mmgen/tx/online.py +++ b/mmgen/tx/online.py @@ -149,7 +149,7 @@ class OnlineSigned(Signed): else: if idx != '': await asyncio.sleep(1) - ret = await self.send_with_node(txhex) + ret = await self.rpc_send(txhex) msg(f'Transaction sent: {coin_txid.hl()}') if ret != coin_txid: die('TxIDMismatch', f'txid mismatch (after sending) ({ret} != {coin_txid})')