Skip to content
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

ots_getTransactionBySenderAndNonce returns null for most recent transaction #13238

Open
sealer3 opened this issue Dec 26, 2024 · 0 comments
Open
Assignees
Labels
erigon3 imp2 Medium importance

Comments

@sealer3
Copy link
Contributor

sealer3 commented Dec 26, 2024

System information

Erigon version: Most recent 3.x

OS & Version: Linux

Commit hash: ba0129d

Erigon Command (with flags/config): (Erigon with an HTTP rpc server and the ots namespace enabled)

Consensus Layer: (any)

Consensus Layer Command (with flags/config):

Chain/Network: Ethereum mainnet

Expected behaviour

ots_getTransactionBySenderAndNonce returns the correct transaction hash for the latest nonce sent by address addr, as in Erigon 2.x.

Actual behaviour

ots_getTransactionBySenderAndNonce returns null for the latest-nonce transaction of a given sender.

Steps to reproduce the behaviour

  1. Find any Ethereum transaction sender
  2. Find the last nonce of an included transaction by this sender
  3. Call Erigon via JSON-RPC using that sender and the last nonce of the sender (this example might become out of date but is the one that was used for testing):
curl -X POST \
 http://localhost:8545 \
  -H 'Content-Type: application/json' \
  -d '{
        "jsonrpc": "2.0",
        "method": "ots_getTransactionBySenderAndNonce",
        "params": ["0x58B79418e46327E2269AB8A14D309D8C3a2a57Da", 233],
        "id": 1
      }'

@wmitsuda

@AskAlexSharov AskAlexSharov added imp2 Medium importance erigon3 labels Dec 26, 2024
@wmitsuda wmitsuda self-assigned this Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
erigon3 imp2 Medium importance
Projects
None yet
Development

No branches or pull requests

3 participants