forked from LBRYCommunity/lbry-sdk
check for None on height to allow for genesis
This commit is contained in:
parent
57abad2181
commit
873437e6a9
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class BaseHeaders:
|
||||||
|
|
||||||
def hash(self, height=None) -> bytes:
|
def hash(self, height=None) -> bytes:
|
||||||
return self.hash_header(
|
return self.hash_header(
|
||||||
self.get_raw_header(height or self.height)
|
self.get_raw_header(height if height is not None else self.height)
|
||||||
)
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Add table
Reference in a new issue