+ Wallet.wait_for_tx_in_wallet
This commit is contained in:
parent
ebe5dd0e68
commit
339e666f38
1 changed files with 9 additions and 0 deletions
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue