forked from LBRYCommunity/lbry-sdk
estimated timestamp should be integer
This commit is contained in:
parent
ffdf70257b
commit
0422d2a021
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ class Headers:
|
|||
raise IndexError(f"failed to get {height}, at {len(self)}")
|
||||
|
||||
def estimated_timestamp(self, height):
|
||||
return self.first_block_timestamp + (height * self.timestamp_average_offset)
|
||||
return int(self.first_block_timestamp + (height * self.timestamp_average_offset))
|
||||
|
||||
def estimated_julian_day(self, height):
|
||||
return date_to_julian_day(date.fromtimestamp(self.estimated_timestamp(height)))
|
||||
|
|
Loading…
Reference in a new issue