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

[RPC] New rpc endpoint to return mempool nonces #5139

Open
wileyj opened this issue Sep 4, 2024 · 0 comments
Open

[RPC] New rpc endpoint to return mempool nonces #5139

wileyj opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement Iterations on existing features or infrastructure. icebox Issues that are not being worked on ship future

Comments

@wileyj
Copy link
Contributor

wileyj commented Sep 4, 2024

similar to how the API currently returns the data, i think it would be a good addition if the stacks-node RPC also returned some nonce data about what's in the mempool.
api example:

➭ curl -sL localhost:3999/extended/v1/address/STG68569SAD11DAGZ3DJQ66N396R1CD91NSB660Z/nonces

{
  "last_executed_tx_nonce": 22,
  "last_mempool_tx_nonce": 49,
  "possible_next_nonce": 50,
  "detected_missing_nonces": [
    23
  ],
  "detected_mempool_nonces": [
    24,
    25,
    ...
  ]
}

in this case, it would be helpful to know there's a missing nonce in the mempool when only running a node locally (without having the extra overhead of running an API/postgres). I can see the benefit here mainly in local testing, where txs are being broadcast to localhost (i.e. on a regtest env where there's no need to run an API).

low priority, we can discuss after 3.0

@wileyj wileyj added enhancement Iterations on existing features or infrastructure. icebox Issues that are not being worked on ship future labels Sep 4, 2024
@saralab saralab added this to the Nakamoto-3.0.x milestone Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Iterations on existing features or infrastructure. icebox Issues that are not being worked on ship future
Projects
Status: Status: 🆕 New
Development

No branches or pull requests

2 participants