From 8628b127f73ac26a948d7ec3cb26d81b1bf1978a Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Wed, 18 Jan 2017 20:15:40 -0500 Subject: [PATCH] do not create new addresses in lbryum, get unused ones --- lbrynet/core/Wallet.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index 9fbd68364..6135a5b7e 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -1035,7 +1035,10 @@ class LBRYumWallet(Wallet): return d def get_new_address(self): - d = defer.succeed(self.wallet.create_new_address()) + addr = self.wallet.get_unused_address(account=None) + if addr is None: + addr = self.wallet.create_new_address() + d = defer.succeed(addr) d.addCallback(self._save_wallet) return d