forked from LBRYCommunity/lbry-sdk
+ txo.pubkey_hash property
This commit is contained in:
parent
aa93b94b61
commit
169ef00b9e
1 changed files with 5 additions and 3 deletions
|
@ -218,10 +218,12 @@ class BaseOutput(InputOutput):
|
|||
def id(self):
|
||||
return self.ref.id
|
||||
|
||||
@property
|
||||
def pubkey_hash(self):
|
||||
return self.script.values['pubkey_hash']
|
||||
|
||||
def get_address(self, ledger):
|
||||
return ledger.hash160_to_address(
|
||||
self.script.values['pubkey_hash']
|
||||
)
|
||||
return ledger.hash160_to_address(self.pubkey_hash)
|
||||
|
||||
def get_estimator(self, ledger):
|
||||
return self.estimator_class(ledger, self)
|
||||
|
|
Loading…
Reference in a new issue