-
Notifications
You must be signed in to change notification settings - Fork 20.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling the eth_getTransactionReceipt method yielded different results #28938
Labels
Comments
I have conducted tests, and all transactions at height 5228488(Sometimes it may be other blocks that are not fixed in height) have this issue. ethProvider, err := Get11935Client() // my private node
if err != nil {
slog.Error("get eth client err", err)
return
}
var blockNumber int64 = 5228488
block, err := ethProvider.BlockByNumber(context.TODO(), big.NewInt(blockNumber))
if err != nil {
slog.Error("BlockByNumber err", err)
}
blockHash := block.Hash().Hex()
for _, t := range block.Transactions() {
recipet, err := ethProvider.TransactionReceipt(context.TODO(), t.Hash())
if err != nil {
slog.Error("get recipet err", err)
}
if recipet.BlockHash.Hex() != blockHash {
slog.Warn("Block Hash not eqaul", "Block Number", blockNumber, "tx Hash", t.Hash().Hex(), "Block Hash", blockHash, "Recipet block hash", recipet.BlockHash.Hex())
}
} result
|
I started resyncing from block 0, and I switched to the Lighthouse client, but the same error persists.
lighthouse
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
geth: v1.13.11
prysm: v4.2.1
Question
Hi team, I deployed two sets of nodes on sepolia and called eth_getTransactionReceipt, resulting in two surprising outcomes. I checked the block height synchronization of both nodes, and they are in the latest state. Could it be a consensus issue between these two nodes?
The transaction hash I queried is: 0xc6268be12c9e8e2afaec8d92753646aef2121a019a883b8292b9f2b180a0d750.
When accessing different nodes, I obtained two sets of data:
A Node
B Node
etherscan: https://sepolia.etherscan.io/tx/0xc6268be12c9e8e2afaec8d92753646aef2121a019a883b8292b9f2b180a0d750
The results obtained contain discrepancies, and I'm unsure why such inconsistencies are occurring.
How can I avoid incorrect results, and are there alternative methods for verification?
The text was updated successfully, but these errors were encountered: