We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90541cc commit f7832fbCopy full SHA for f7832fb
turbo/rpchelper/rpc_block.go
@@ -37,7 +37,7 @@ func GetLatestBlockNumber(tx kv.Tx) (uint64, error) {
37
forkchoiceHeadHash := rawdb.ReadForkchoiceHead(tx)
38
if forkchoiceHeadHash != (libcommon.Hash{}) {
39
forkchoiceHeadNum := rawdb.ReadHeaderNumber(tx, forkchoiceHeadHash)
40
- if forkchoiceHeadNum != nil {
+ if forkchoiceHeadNum != nil && *forkchoiceHeadNum > 0 {
41
return *forkchoiceHeadNum, nil
42
}
43
@@ -91,5 +91,6 @@ func GetLatestExecutedBlockNumber(tx kv.Tx) (uint64, error) {
91
if err != nil {
92
return 0, err
93
94
+ fmt.Println("latestExecutedBn", blockNum)
95
return blockNum, err
96
0 commit comments