+ Wallet.wait_for_tx_in_wallet

This commit is contained in:
Lex Berezhny 2018-03-01 16:19:29 -05:00 committed by Jack Robison
parent ebe5dd0e68
commit 339e666f38
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -623,6 +623,9 @@ class Wallet(object):
d = self._get_transaction(txid) d = self._get_transaction(txid)
return d return d
def wait_for_tx_in_wallet(self, txid):
return self._wait_for_tx_in_wallet(txid)
def get_balance(self): def get_balance(self):
return self.wallet_balance - self.total_reserved_points - sum(self.queued_payments.values()) return self.wallet_balance - self.total_reserved_points - sum(self.queued_payments.values())
@ -681,6 +684,9 @@ class Wallet(object):
def _get_transaction(self, txid): def _get_transaction(self, txid):
return defer.fail(NotImplementedError()) return defer.fail(NotImplementedError())
def _wait_for_tx_in_wallet(self, txid):
return defer.fail(NotImplementedError())
def _update_balance(self): def _update_balance(self):
return defer.fail(NotImplementedError()) return defer.fail(NotImplementedError())
@ -1067,6 +1073,9 @@ class LBRYumWallet(Wallet):
def _get_transaction(self, txid): def _get_transaction(self, txid):
return self._run_cmd_as_defer_to_thread("gettransaction", txid) return self._run_cmd_as_defer_to_thread("gettransaction", txid)
def _wait_for_tx_in_wallet(self, txid):
return self._run_cmd_as_defer_to_thread("waitfortxinwallet", txid)
def get_name_claims(self): def get_name_claims(self):
return self._run_cmd_as_defer_succeed('getnameclaims') return self._run_cmd_as_defer_succeed('getnameclaims')