-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
EthGetTransactionCount ignores input #10357
Comments
I’ll like to work in this. @aarshkshah1992 |
@aarshkshah1992, I'd like to share my proposed implementation for handling the "pending" block case: if blkParam.PredefinedBlock != nil && *blkParam.PredefinedBlock == "pending" {
nonce, err := a.MpoolAPI.MpoolGetNonce(ctx, addr)
if err != nil {
return ethtypes.EthUint64(0), xerrors.Errorf("failed to get nonce from mpool: %w", err)
}
return ethtypes.EthUint64(nonce), nil
}
If it isn't "pending", |
As far as my understanding of |
The blkParam argument is ignored by EthGetTransactionCount, which instead always returns nonce based on the mempool. We should:
The text was updated successfully, but these errors were encountered: