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

Transactions are not processed after debug_setHead #20078

Closed
ferranbt opened this issue Sep 16, 2019 · 3 comments
Closed

Transactions are not processed after debug_setHead #20078

ferranbt opened this issue Sep 16, 2019 · 3 comments
Assignees

Comments

@ferranbt
Copy link
Contributor

System information

Geth version: 1.9.3-unstable-22fdbee8-20190822
OS & Version: Ubuntu

Expected behaviour

During dev mode, after debug_setHead I should be able to send more transactions.

Actual behaviour

During dev mode, after debug_setHead I can send transactions but the call to eth_getTransactionsReceipt returns always "not found". There does not seem to be any block mined.

Steps to reproduce the behaviour

https://gist.github.com/ferranbt/4ab9730cf764eab0b44bae27cfc3b755

This gist reproduces the reported behavior. I send two transactions that create two new blocks, after that, I reset the blockchain with debug_setHead to the block number 1. Then, I send another transaction, it returns a hash but the transactions receipt returns always "not found".

This is the code I use to run geth in dev mode:

geth --dev --rpc --rpcapi eth,debug
@antazoey
Copy link

I am having a similar issue where I run deubg_setHead and everything seems fine... Nonce values for accounts seem correct, etc.... but then I try to make a new transaction and I get Nonce too low

@cawabunga
Copy link

I'm struggling with the same issue. Looks like I don't understand how geth works. I found that eth_getTransactionCount returns different value for latest and pending block after deubg_setHead called.

@holiman
Copy link
Contributor

holiman commented Nov 22, 2022

This ticket is an older version of #26154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants