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):
|
def id(self):
|
||||||
return self.ref.id
|
return self.ref.id
|
||||||
|
|
||||||
|
@property
|
||||||
|
def pubkey_hash(self):
|
||||||
|
return self.script.values['pubkey_hash']
|
||||||
|
|
||||||
def get_address(self, ledger):
|
def get_address(self, ledger):
|
||||||
return ledger.hash160_to_address(
|
return ledger.hash160_to_address(self.pubkey_hash)
|
||||||
self.script.values['pubkey_hash']
|
|
||||||
)
|
|
||||||
|
|
||||||
def get_estimator(self, ledger):
|
def get_estimator(self, ledger):
|
||||||
return self.estimator_class(ledger, self)
|
return self.estimator_class(ledger, self)
|
||||||
|
|
Loading…
Reference in a new issue