Go-ethereum: err="waiting for transactions"

Created on 11 Dec 2017  路  4Comments  路  Source: ethereum/go-ethereum

System information

Geth version: 1.7.3-stable
OS & Version: OSX
Commit hash :

Expected behaviour

Occurs this error when I startup the geth client, I can't search the question in google

geth --datadir "~/Library/Ethereum/ethdev" --dev

WARN [12-11|11:31:52] Block sealing failed err="waiting for transactions"

Actual behaviour

geth --datadir "~/Library/Ethereum/ethdev" --dev

WARN [12-11|11:31:52] Block sealing failed err="waiting for transactions"

Steps to reproduce the behaviour

Backtrace

[backtrace]

Most helpful comment

In dev mode, the node only mines if there are transactions. Make a transaction and the node will mine it.

All 4 comments

In dev mode, the node only mines if there are transactions. Make a transaction and the node will mine it.

I know this is pretty old, but what can I do if I'd like to locally test code which relies on confirmations?

You can force dev mode to seal blocks periodically instead of waiting for transactions via --dev.period=3 (for a 3 second period). You lose instant transactions though. Would that be enough?

@karalabe Is it possible to get the instant-block functionality via genesis.json instead of --dev? I have a genesis.json that is setup a certain way for our project, but I am using clique which appears to have a minimum of 1 second blocks. If I try to use --dev geth complains because the rest of my settings are not compatible with that mode.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

keitaj picture keitaj  路  3Comments

vogelito picture vogelito  路  3Comments

VoR0220 picture VoR0220  路  3Comments

tymat picture tymat  路  3Comments

cheershendtco picture cheershendtco  路  3Comments