23 votes
Accepted

Fatal: Failed to write genesis block: unsupported fork ordering: eip150Block not enabled, but eip155Block enabled at 0 genesis block

Answer is to update genesis.json to include eip150Block: { "config": { "chainId": 4777, "homesteadBlock": 0, "eip150Block": 0, "eip155Block": 0, "eip158Block"...
Leon Africa's user avatar
15 votes
Accepted

What is `--gcmode=archive` in geth

Archive mode means that all states of values in smart contracts as well as all balances of an account are stored. e.g. if the value of a string in a contract changes from XYZ in block 6000000 to ABC ...
n1cK's user avatar
  • 3,378
12 votes

How to retrieve revert() reason for past transactions?

In solidity 0.4.22 the require and revert reason were added. As can be seen here, they are abi-encoded as if it were a call to a function "Error(string)". This blog post gives an example: an eth_call ...
Maarten Dhondt's user avatar
9 votes

Trying to understand the difference between trace_call and debug_traceCall methods

API methods trace_* namespace was originally used in the openethereum client (which is currently unmaintained), some other clients such as erigon also provide this namespace. While debug_* namespace ...
hack3r-0m's user avatar
  • 1,899
8 votes

How to retrieve revert() reason for past transactions?

I created an NPM package to handle this: eth-revert-reason It is difficult to decode the revert reason in a general manner. Many different factors, such as Geth vs. Parity, web3.js vs ethers, etc. ...
Shane Fontaine's user avatar
7 votes

Fast syncing showing endless importing new state entries Geth 1.7.3

If you see that, you aren't yet synchronized, not even close. You are just done with the block download phase and still running the state downloads. You can see this yourself via the seemingly endless ...
MateMstar's user avatar
7 votes

How to retrieve revert() reason for past transactions?

Using eth_Call to execute function: Example.test(0x0000000000000000000000000000000000000000000000000000000000000002) of Example contract we will receive following reply from geth node: ...
user3184743's user avatar
6 votes

Why is Geth ignoring --nodiscover?

I've had the same issue. It appears that --nodiscover is just disabling your node from running node-discovering algorithm to find peers to connect, but it doesn't prevent others from discovering and ...
xiaoyao's user avatar
  • 273
6 votes
Accepted

Waiting for a contract to be mined

It looks like your code is written in ES6, but Geth does not support ES6 syntax. Geth uses otto as its JavaScript VM, which only supports ES5. You'll need to translate your code to ES5 first. ...
user19510's user avatar
  • 27.9k
6 votes

How to retrieve revert() reason for past transactions?

After being really annoyed for a long time I wrote a bash script to fetch the revert reason from geth by a tx hash: https://gist.github.com/gluk64/fdea559472d957f1138ed93bcbc6f78a
Alex's user avatar
  • 283
6 votes
Accepted

What mean "Deep froze chain segment"?

This is related to Geth's Freezer functionality, which "moves ancient chain segments out of the active database into immutable append-only flat files." The message you're seeing is informational, so ...
Richard Horrocks's user avatar
6 votes
Accepted

How to collect geth's metrics?

In Geth 1.9, there were many changes to how metrics a monitored. For example, the endpoint geth --monitor was completely removed. To get the metrics from your node: Run your geth node with the added ...
amanusk's user avatar
  • 266
5 votes
Accepted

Is the EVM memory model a word array or byte array?

I view it as a byte-addressed byte-array. It is certainly byte-addressed, in that consecutive integer addresses refer to consecutive bytes in memory. It is true that you can only read a 32 byte word ...
benjaminion's user avatar
  • 9,217
5 votes
Accepted

geth v1.8 unable to download the last 65 blocks for the mainnet

The "last 65 blocks" part is normal. When the "fast sync" mode was first introduced in eth/63, it was even more. I suggest you take a look at that PR for a general description on what geth's --...
Noel Maersk's user avatar
5 votes
Accepted

Weird error 'The method eth_accounts does not exist/is not available'

You must specify the parameters using --rpcapi="db,eth,net,web3,personal" Source
Shane Fontaine's user avatar
5 votes
Accepted

Geth: Checkpoint challenge timed out, dropping

In geth's code you'll find the snippet bellow https://github.com/ethereum/go-ethereum/blob/master/eth/handler.go // Start a timer to disconnect if the peer doesn't reply in time p.syncDrop = ...
Badr Bellaj's user avatar
  • 18.8k
4 votes

Gas price data from GETH

You can try to get pending transactions and calculate an average amount of gasprice. pending_transactions = web3.provider.make_request("parity_pendingTransactions", []) gas_prices = [] for ...
Nikita's user avatar
  • 41
4 votes

Geth State heal in process explanation

Taken from go-ethereum github - accounts: Number of accounts downloaded during the healing stage slots: Number of storage slots downloaded during the healing stage codes: Number of bytecodes ...
Kof's user avatar
  • 2,954
4 votes

Trying to understand the difference between trace_call and debug_traceCall methods

trace_call is an API method that allows you to execute the given call and returns the number of possible traces for it. These traces include transactions that have been mined or hypothetical ones not ...
Yongjian P.'s user avatar
  • 4,130
3 votes
Accepted

Go can't find common and types package when building Geth client node project?

The problem is that the setting of GOPATH is incorrect. You need to set the GOPATH in the IDE to: /home/robert/go and then open the project via Open Directory to /home/robert/go/src/github.com/...
dlsniper's user avatar
  • 191
3 votes
Accepted

Is there a way to debug live smart contracts on main network?

Truffle team recently released Portable Solidity Debugger that can be used to debug transactions on the main Ethereum network as they claim http://truffleframework.com/blog/announcing-full-portable-...
medvedev1088's user avatar
3 votes
Accepted

How to debug Geth's go code from within Intellij Webstorm?

First make sure you have the latest version, EAP 15, 173.2696.28, and you are using the latest version of Go, 1.9, as that's preferred for a better debugging experience due to the recent improvements ...
dlsniper's user avatar
  • 191
3 votes

Reference Error while debugging

You need to enable the debug api geth --rpc --rpcapi eth,web3,debug,admin,net ....
Ismael's user avatar
  • 30.5k
3 votes

eth.blockNumber does not match any network's current block

so, Ethereum has both a chain ID and network ID. Setting network ID only sets the latter, while passing in --rinkeby or --testnet correctly sets both
ambertch's user avatar
  • 151
3 votes

Error: Failed account unlock attempt, is this an attack?

This is a brute-force attack against your password. Besides potentially stealing all of your ETH, descryption is relatively expensive computationally and could be a DOS vector. You should never ...
Tjaden Hess's user avatar
  • 36.9k
3 votes

Is "geth debug trace_2" on "Etherscan.io" a native geth output?

I found it. According to https://github.com/ethereum/go-ethereum/issues/16408 I had to pass {"tracer":"callTracer"} to debug_traceTransaction
netaholic's user avatar
  • 151
3 votes
Accepted

Can I start mining before my node is fully synced?

Your problem is that you can start mining from whichever block and it's totally ok. At least in theory. If we are now at block 10 and you start mining from block 5 you may eventually get your own ...
Lauri Peltonen's user avatar
3 votes

Geth State heal in process explanation

I am certainly not an expert on this yet, but I would assume that the accounts figure will have to reach the total # of Ethereum accounts. I have not been able to find a good chart on the growth of ...
tosch's user avatar
  • 51
3 votes

What is the best way to create Binance Smart Chain (BSC) transactions via geth without a full node?

It look like BSC light node have issues since last update (see this GitHub issue for instance https://github.com/binance-chain/bsc/issues/452 ) As an alternative, Binance has free endpoint (https://...
DrGorilla.eth's user avatar
2 votes
Accepted

(anonymous): Line 1:20 Unexpected token : while adding node to private ethereum network

geth console it's plain javascript console. It's support javascript syntax, you're missing the quotes " ": admin.addpeer("enode://c32........9@[::]:30305") ^...
Roman Kiselenko's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible