Fix XMR not returning new subaddress.

This commit is contained in:
tecnovert 2023-10-11 17:46:52 +02:00
parent 4d8d421de6
commit ebcd7738e5
No known key found for this signature in database
GPG Key ID: 8ED6D8750C4E3F93

View File

@ -214,7 +214,9 @@ class XMRInterface(CoinInterface):
def getNewAddress(self, placeholder) -> str: def getNewAddress(self, placeholder) -> str:
with self._mx_wallet: with self._mx_wallet:
self.openWallet(self._wallet_filename) 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): def get_fee_rate(self, conf_target: int = 2):
self._log.warning('TODO - estimate fee rate?') self._log.warning('TODO - estimate fee rate?')