You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: 1.8.18-stable
Git Commit: 2d22fd0
Quorum Version: 2.2.3
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1337
Go Version: go1.10.4
Operating System: darwin
Description
When 'geth console' is executed, the console displays the timestamp of the latest block, e.g.:
Welcome to the Geth JavaScript console!
instance: Geth/v1.8.18-stable-2d22fd00(quorum-v2.2.3)/darwin-amd64/go1.10.4
coinbase: 0xed9d02e382b34818e88b88a309c7fe71e65f419d
at block: 5 (Fri, 28 Nov 49325133006 11:29:03 GMT)
As you can see, the timestamp is incorrect in the year.
This is because the console expects the block timestamp to be in seconds, but for Raft it is held in nanoseconds.
The relevant code is in console.console.go::Welcome(), where it has the code:
Hi @SatpalSandhu61, Console struct has a member client which is an rpc client, you should be able to call eth_getBlockByNumber on the client, and inspect the block that is returned to see if the timestamp is in the form you need and based on that, you can conditionally call c.jsre.Run
System information
Version: 1.8.18-stable
Git Commit: 2d22fd0
Quorum Version: 2.2.3
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1337
Go Version: go1.10.4
Operating System: darwin
Description
When 'geth console' is executed, the console displays the timestamp of the latest block, e.g.:
As you can see, the timestamp is incorrect in the year.
This is because the console expects the block timestamp to be in seconds, but for Raft it is held in nanoseconds.
The relevant code is in console.console.go::Welcome(), where it has the code:
Under Raft, this code should be:
However, I don't know how we could tell in the console that Raft consensus is being used.
The text was updated successfully, but these errors were encountered: