From ebcd7738e5d568b925515079b1359145f2d897b9 Mon Sep 17 00:00:00 2001 From: tecnovert Date: Wed, 11 Oct 2023 17:46:52 +0200 Subject: [PATCH] Fix XMR not returning new subaddress. --- basicswap/interface/xmr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basicswap/interface/xmr.py b/basicswap/interface/xmr.py index be2e23b..4628e12 100644 --- a/basicswap/interface/xmr.py +++ b/basicswap/interface/xmr.py @@ -214,7 +214,9 @@ class XMRInterface(CoinInterface): def getNewAddress(self, placeholder) -> str: with self._mx_wallet: self.openWallet(self._wallet_filename) - return self.rpc_wallet_cb('create_address', {'account_index': 0})['address'] + new_address = self.rpc_wallet_cb('create_address', {'account_index': 0})['address'] + self.rpc_wallet_cb('store') + return new_address def get_fee_rate(self, conf_target: int = 2): self._log.warning('TODO - estimate fee rate?')