From 0422d2a021c7d76cc654015e5889a15e8f1081f5 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 29 Mar 2020 19:39:37 -0400 Subject: [PATCH] estimated timestamp should be integer --- lbry/wallet/header.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/wallet/header.py b/lbry/wallet/header.py index d8ea47665..554782c00 100644 --- a/lbry/wallet/header.py +++ b/lbry/wallet/header.py @@ -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)))