We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3acb308 commit de1213bCopy full SHA for de1213b
test_upload_bundlr.py
@@ -16,8 +16,13 @@
16
txid = result['id']
17
18
peer = Peer()
19
-current_block = peer.current_block()
20
-eta = current_block['timestamp'] + (result['block'] - current_block['height']) * 60 * 2
+
+# bundlr used to return an expected block height but now seems to return some timestamp 2022-11
21
+# communicate with bundlr for details on their api.
22
+#current_block = peer.current_block()
23
+#eta = current_block['timestamp'] + (result['block'] - current_block['height']) * 60 * 2
24
+eta = int(result['timestamp']/1000)
25
26
eta = datetime.datetime.fromtimestamp(eta)
27
-print(f'{peer.api_url}/{result["id"]} should be mined by {eta.isoformat()} block {result["block"]} or so, at the very latest.')
28
+print(f'{peer.api_url}/{result["id"]} timestamp={eta.isoformat()}')
0 commit comments