Open 1aBcD1234aBcD1 opened 10 hours ago
Thanks for this report. Data in archive are updated asynchronously to the head state. It may happen (and is likely to happen) that there is a delay between the head state is available and the block in the archive is available.
Describe the bug A clear and concise description of what the bug is. Hello everyone. Im a developing some stuff that needs real time on chain execution and I just encountered this error when making requests using my local archive node.
The error can be reproduce just by subscribing to new heads using the standard goethereum client, and just requesting onchain information of that block, which should be the latest one. Maybe is something intended, however when you try to ask information from the received header I always get as an example
panic: block 94922164 is not present in the archive (non-empty archive, last block 94922163)
To Reproduce Steps to reproduce the behavior:
import ( "context" "fmt" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethclient" )
func main() { ethClient, err := ethclient.Dial("/opt/sonic/data/opera.ipc") if err != nil { panic(err) }
}
Desktop (please complete the following information):