This pull request will allow for auto_receive_on_send to work when a Nano Account is not yet opened. Before this pull request, when a send was attempted on an unopened account it would result in an AccountNotFound exception being raised in RPCClient.instance().account_info(self.account.address) cancelling the send before it ever checked for balance pending.
To get around this, a call to RPCClient.instance().account_balance(self.account.address) replaces account_info and is now made to check for sufficient balance. And then account_info is retrieved after known sufficient balance.
This pull request will allow for
auto_receive_on_send
to work when a Nano Account is not yet opened. Before this pull request, when a send was attempted on an unopened account it would result in anAccountNotFound
exception being raised inRPCClient.instance().account_info(self.account.address)
cancelling the send before it ever checked for balance pending.To get around this, a call to
RPCClient.instance().account_balance(self.account.address)
replacesaccount_info
and is now made to check for sufficient balance. And thenaccount_info
is retrieved after known sufficient balance.