forked from LBRYCommunity/lbry-sdk
proper check for restrictions on gettx
This commit is contained in:
parent
d66c801350
commit
ada03e12fc
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ class BaseNetwork:
|
|||
|
||||
def get_transaction(self, tx_hash, known_height=None):
|
||||
# use any server if its old, otherwise restrict to who gave us the history
|
||||
restricted = not known_height or 0 > known_height > self.remote_height - 10
|
||||
restricted = known_height in (None, -1, 0) or 0 > known_height > self.remote_height - 10
|
||||
return self.rpc('blockchain.transaction.get', [tx_hash], restricted)
|
||||
|
||||
def get_transaction_height(self, tx_hash, known_height=None):
|
||||
|
|
Loading…
Reference in a new issue