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:
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue