Merge pull request #21 from wownero/daemon-fix

Force daemon account creation
This commit is contained in:
xmrdsc 2019-02-18 20:22:57 +01:00 committed by GitHub
commit 30b7f2eb3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,9 @@ class Daemon:
def get_transfers_in(self, proposal):
account = self.get_accounts(proposal.id)
if not account and proposal.addr_donation:
account = self.create_account(proposal.id)
account = self.get_accounts(proposal.id)
if not account:
raise Exception('wallet error; pid not found found')
index = account['account_index']