Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
22 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"...
user avatar
13 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 ...
user avatar
  • 3,282
9 votes

How to receive 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 ...
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 ...
user avatar
7 votes

How to receive 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. ...
user avatar
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. ...
user avatar
  • 26.3k
6 votes

How to receive 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: ...
user avatar
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 --...
user avatar
5 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 ...
user avatar
  • 263
5 votes

How to receive 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
user avatar
  • 253
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 = ...
user avatar
  • 17.4k
5 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 ...
user avatar
4 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 ...
user avatar
  • 8,622
4 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
user avatar
4 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 ...
user avatar
  • 216
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 ...
user avatar
  • 191
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/...
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-...
user avatar
  • 10.2k
3 votes

Reference Error while debugging

You need to enable the debug api geth --rpc --rpcapi eth,web3,debug,admin,net ....
user avatar
  • 29.3k
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
user avatar
  • 151
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
user avatar
  • 151
3 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 ...
user avatar
  • 31
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") ^...
user avatar
  • 875
2 votes
Accepted

What is bloombits?

At its simplest, from doc.go: // Package bloombits implements bloom filtering on batches of data. package bloombits Of interest: How does Ethereum make use of bloom filters? (In short, to allow ...
user avatar
2 votes

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

Memory is a word-addressed byte array. Storage is a word-addressed word array. Geth simply chooses to display the memory in 32-byte segments, which is a bit of an odd choice, but when reading and ...
user avatar
  • 33.9k
2 votes

Geth signing stops after a period of time

When you have 3 signers, at least 2 have to be online and have the eth.coinbase account unlocked to be able to continue sealing new blocks. Otherwise the sealing process stops with "Signed recently, ...
user avatar
  • 7,154
2 votes

Insufficient funds despite positive balance

I might have to look into this further...but this line: return web3.eth.sendTransaction({ from: bank, to: address, value: topUpWei, gas: defaultGasLimit, gasPrice: defaultGasPrice }) ...the promise ...
user avatar
  • 1,495
2 votes
Accepted

Ropsten Network - geth console does'nt give updated blocknumber

All I needed isto wait...allowing it to sync up for 1 day and night solved the issue. Ether I received via faucet is visible...eth.blockNumber gives 2894417.
user avatar
2 votes
Accepted

Configuration settings for launching your own local Geth node for smart contract deployment & execution?

With Truffle I use HTTP-RPC calls to deploy my contracts via geth: --rpc should be provided in the CLI when starting geth to enable the HTTP-RPC server by default the HTTP-RPC server will start on ...
user avatar
  • 1,170
2 votes

What is the bucket list in geth?

A bucket list is a list of things you'd like to do before you die, such as getting a private PoA network up and running. A bucket limit is an upper bound for the number of peer IP addresses that your ...
user avatar

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