Questions tagged [go-ethereum]

Go Ethereum (short: Geth) is a Golang implementation of the Ethereum protocol.

2,094 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
25 votes
2 answers
939 views

E/Go: fatal error: thread exhaustion

I am experimenting with the geth-android library with light-client and in-process node from @karalabe. I could successfully sync with the testnet node from @phonikg, unfortunately this one is down now....
ligi's user avatar
  • 1,183
9 votes
1 answer
2k views

getting started with geth and ENS commands: Error: invalid address

I'm starting from square zero, sorry. I'm just trying to get a javascript console up and running so that I can learn more about ENS: http://docs.ens.domains/en/latest/userguide.html#resolving I've ...
Pointy Haired Boss's user avatar
9 votes
1 answer
595 views

Installing go-ethereum nodes using docker swarm?

Has anybody installed and configured go-ethereum nodes using dockerswarm ? Appreciate if anybody could share any docs or relevant information.
Raj's user avatar
  • 149
7 votes
1 answer
216 views

Is go-ethereum performance much affected by linux filesystem choice?

Storage performance often seems to be a bottleneck when running a geth node, even when running on SSDs. Does anyone know of performance comparisons under different linux filesystem choices? By ...
Steve Waldman's user avatar
7 votes
1 answer
1k views

How to Catch Connection Issues to Web3 Provider using Web3.js

My node.js script is able to successfully connect to the Web3 provider when both the private key (using truffle-privatekey-provider) and the provider host URL are correct. let privateKey = ..., ...
Nyxynyx's user avatar
  • 1,167
7 votes
0 answers
518 views

Unable to Add 3rd Proof-of-Authority Sealer Node

I have a geth POA private blockchain setup and running with 2 sealer nodes. Now I have setup a 3rd node as a sealer, and ran the following command on the both existing sealer nodes clique.propose(&...
Nyxynyx's user avatar
  • 1,167
7 votes
0 answers
302 views

Can I `eth_call` a non constant function from javascript?

I know that I can't get the return value from a transaction (How to get values returned by non constant transaction functions?), and non-constant functions have return value because they can be called ...
Ismael's user avatar
  • 31k
6 votes
0 answers
179 views

Kademlia: How does Ethereum uses node discovery protocol to avoid sybil/eclipse attacks?

I want to describe a case that's not clear to me. let's say we have 10 peer validator nodes who reach consensus and agree to store some blocks on their chain. Let's say now that a wallet wants to sync ...
Panagiotis Drakatos's user avatar
6 votes
1 answer
2k views

Geth keep truncating ancient chain + rewind blockchain ? Why ? 😥

Maybe it's a newbe question but I notice that when I restart Geth it always "rewind blockchain" ? Why is this ? Here is example output: INFO [11-08|22:02:47.152] Starting Geth on Ethereum ...
Alex F's user avatar
  • 161
6 votes
0 answers
2k views

Why is my geth node stuck on "Looking for peers"?

I created a private test network using Puppeth and two nodes using Geth: geth account new --datadir node1 geth account new --datadir node2 geth init mynetwork.json --datadir node1 geth init mynetwork....
Peter Lawson's user avatar
6 votes
0 answers
1k views

Why does Ethereum use JSON-RPC and not gRPC?

I am fairly new to networking protocols especially JSON-RPC and gRPC as they are not nearly as common in web development as REST. I was reading around and seems like gRPC generally performs better. So ...
RhinoBomb's user avatar
  • 161
6 votes
0 answers
481 views

Does Geth store trace data for later calls (after full-sync with pruning + reexec)?

The wisdom is that having a full node is enough to reconstruct all past information the archive nodes keeps readily constructured, hence available faster. I was reading the Geth IceBerg 1.8 release ...
Veksi's user avatar
  • 161
6 votes
0 answers
532 views

PoA network with half million blocks, sealers stopped

System information Geth Version: 1.8.17-stable Git Commit: 8bbe72075e4e16442c4e28d999edee12e294329e Architecture: amd64 Protocol Versions: [63 62] Network Id: 1 Go Version: go1.10.1 Operating System: ...
Marcos Martínez's user avatar
6 votes
0 answers
226 views

Does Geth and Parity store blockchain in level db in same format?

If not, what are the diffrences?, for example geth db format is: var databaseVerisionKey = new Buffer("DatabaseVersion"); // databaseVerisionKey tracks the current database version. var headHeaderKey ...
jabone's user avatar
  • 241
6 votes
2 answers
2k views

Geth: bootnode tool and --nodiscover

In Geth, if I use the --nodiscover option, my node won't be discovered by default from other nodes. Conversely, with bootnode tool implemented in geth, first I have to generate a key, then I have to ...
ActuallyLZ's user avatar
6 votes
0 answers
855 views

Section processing failed

I am trying to connect a geth node to the network for several days with light sync, and I have encountered a lot of problems. The last to date is there are a lot (like > 100) of error messages that ...
Distic's user avatar
  • 870
6 votes
2 answers
2k views

Smart contract erc20 code snippet to prevent buyer token transfers

I´m going to start a token pre-sale and I want to be able to send the tokens to the buyer but prevent the buyer to send tokens to another wallet. I tried the following in my ERC20 smart contract but ...
Jabaco's user avatar
  • 95
6 votes
0 answers
1k views

Error: missing trie node 60c376cdb14aec... (path)

I'm trying to start a geth node to connect to the Rinkeby test network by running geth --networkid=4 --datadir=$HOME/.rinkeby --verbosity 0 --syncmode=light --bootnodes=enode://...
mcansado's user avatar
  • 841
6 votes
2 answers
217 views

Writing GBytes of data to disk, despite no network activity - what, precisely, is geth doing?

I'm watching geth 1.4.17 on Activity Monitor. Judging by the Network page, it's not doing anything. Rcvd Bytes is 5.9MBytes, and Sent Bytes is 2.6MBytes, and it's been that way for a while now. But ...
Tom Seddon's user avatar
5 votes
2 answers
2k views

Private network nodes can't find peers

I have 4 nodes (each on a separate droplet on digital ocean) in a private network: bootnode miner1 miner2 jsonrpc Each node is initialized with geth --datadir ./data init ./genesis.json using the ...
Darth Thanatus's user avatar
5 votes
0 answers
560 views

How to use geth devp2p to find nodes on non-ethereum chains?

Non-ethereum chains: other chains use geth such as BSC or ethereum layer2 chains such as Polygon. I can find ethereum nodes with devp2p discv4 crawl -timeout 30m all-nodes.json But can't find Polygon ...
Cloud's user avatar
  • 161
5 votes
0 answers
263 views

How to handle Ropsten's chain split with geth 1.10.8

I upgraded and restarted geth connected to Ropsten to 1.10.8, but the content is different from Ethrscan and infura.io from 10920274 block. And my geth has the latest block number of about 7,000 ...
takatoshi's user avatar
5 votes
1 answer
1k views

How can I connect to a local geth node from docker container?

In this case, I run a geth node in local env, and A app in docker, How can I connect to geth from docker?
Junbao Wang's user avatar
5 votes
1 answer
2k views

Bootnode public address

I am trying to deploy an small private Ethereum network using geth. I have a server running geth configured as a miner in my local network. In the other side I have a droplet in DigitalOcean that I ...
Oscar Ramírez's user avatar
5 votes
1 answer
1k views

Extremely slow geth mining and synchronization for private blockchain

I am constructing a very simple 2 nodes private Ethereum network to study the mining behaviour. The consensus algorithm is ethash. In order for the 2 nodes to discover each other, I also setup a ...
Thomas's user avatar
  • 447
5 votes
0 answers
378 views

Geth LES Client. Only synchronize the last 50 headers?

Using a LES client, is it possible to only synchronize only some of the last headers on first run ? I am not interested in the chain history. I understand the security implications of not validating ...
Bruno Grieder's user avatar
4 votes
1 answer
747 views

geth: does --gcmode=archive require --syncmode=full?

I can't seem to find a straight answer to this question since snap is relatively new. I'm currently running geth 1.10.3 with --syncmode snap and --gcmode archive, but i'm beginning to think that ...
The Unique Paul Smith's user avatar
4 votes
1 answer
442 views

eth_call, testing multiple transactions

want to test multiple transactions which are changing state and are dependent of each other. Is that possible using geth? Example: (1) First transaction will send 1 eth to account a (2) Second ...
Slawek's user avatar
  • 156
4 votes
1 answer
809 views

Stuck at "Allocated cache and file handles"

I've been running a synced geth full node for months without problems. Today I suddenly got an issue. Geth starts, but gets stuck after printing into log this line: Allocated cache and file handles ...
El Sampsa's user avatar
  • 333
4 votes
0 answers
506 views

GETH node maxpeers performance and benefit

I'm trying to optimize my node for transaction propagation speed. Expanding on this question: Can we improve the performance of Geth server by setting maxpeers to 0? Are there any data available ...
ceds's user avatar
  • 245
4 votes
0 answers
200 views

Question on initial sync and Freezer (SSD and HDD)

I've kicked off a fresh fast sync of Geth v1.9.2 and after 3 weeks it's still pulling states (state trie). As per the documentation you can use the Freezer with a HDD as it references old data so ...
user1894814's user avatar
4 votes
0 answers
167 views

VM revert on Scalar Multiplication in pre-compiled contracts

I tried to build a wrapper around the precompiled contracts as follows: https://gist.github.com/AlexXiong97/9c24bbd4541323a61fa63100860a5f89 If you paste it into Remix and deploy it, inputting any (...
Alex Xiong's user avatar
4 votes
0 answers
293 views

Error trying to synchronize geth clique client after shutdown

I'm working with a private network using geth clique clients. Each time a node shut downs, (after a power cut, or just killing the geth process), if a try to put it to work again, the node can't ...
Federico Caccia's user avatar
4 votes
0 answers
500 views

How to access txpool pending transactions using Netherum?

I want to get list of transactions which are in pending state & queued state in txpool. I can see these transactions in pool using txpool.inspect command. I tried code given in nethereum sample ...
Vinayak M's user avatar
  • 108
4 votes
0 answers
2k views

Mining hangs on Generating DAG in progress

I am trying to initialize rpc using the below command and start miner using miner.start(1); geth --rpcapi eth,web3,personal --rpc --networkid=15 Mining starts successfully with below logs but it ...
Alien's user avatar
  • 415
4 votes
0 answers
413 views

Backup blockchain from a running geth fullnode

I need to make backups from my running node to be able to start a second node quickly or to restore the node quickly if it gets corrupted. Does geth export work on a running node? is it a good option ...
jeff's user avatar
  • 603
4 votes
2 answers
675 views

Smart Contract firing send ether transaction that's not in the contract

I need some help with my smart contract, here's the smart contract code pragma solidity ^0.4.18; contract UserToken { mapping (bytes32 => uint8) public tokenBalance; bytes32[] public ...
user794468's user avatar
4 votes
0 answers
98 views

How to do a disaster recovery in private chains?

How can I do a disaster recovery on a private chain running ethereum, say for instance Quorum ?
NaN's user avatar
  • 194
4 votes
1 answer
486 views

How can I use swarm with metamask or parity node?

I want to use swarm, but I wan't to download the all blockchain data. Is it possible to use metamask or parity node instead?
dingdang's user avatar
  • 175
4 votes
1 answer
484 views

Can't get geth to connect to own fullnode via --bootnodes param

I'm running a full node with LES protocol enabled which I want my light clients to connect to and sync from. I tried to do this by starting the light client with geth --light --bootnodes <my_enode&...
didi_X8's user avatar
  • 213
4 votes
2 answers
268 views

After a successful geth fast sync, Mist began to sync all the db again

After 3 days of syncing with geth --fast, finally I got the last block synced I started Mist and it began syncing again from -3,800,xxx The DB folders were correctly set - I double checked them. Where ...
Sergey Tsiperson's user avatar
4 votes
1 answer
5k views

UTC/json wallet file: deleted -> recovered -> corrupted. 0.1 ETH REWARD

--EDIT-- I have advanced in my research. The UTC/JSON file in question is a 491 byte file. There are 256 random characters in the file with each 16 possible characters. Like a 256-number long ...
BuckField's user avatar
4 votes
1 answer
489 views

Why does geth -light start importing block headers from 3297471

I've been using geth to download the blockchain (on full) and one of the requirements for my research involves the use of light clients. I used 2 computers to download the blockchain on the -light ...
Brandon's user avatar
  • 43
4 votes
0 answers
392 views

Why are there discrepancies between client message signatures?

I have been investigating message signing using an Ethereum account, and have become somewhat bemused by the different signatures that I receive from different clients and different libraries. I have ...
Thomas Clowes's user avatar
4 votes
1 answer
556 views

Create new account over IPC

I want to create a new account over IPC so I have started private chain with the below command geth --networkid=5 --datadir DataDir --ipcapi "db,eth,net,web3,personal" --ipcpath "/Users/smartSense/....
comeback4you's user avatar
4 votes
0 answers
107 views

Testnet blockchain inconsistencies - geth diverged from original blockchain?

I'm using go-ethereum instance: Geth/v1.5.9-unstable-fa999861/linux/go1.7.4. I cloned it from github (commit: fa99986143fe3dec08cdffcff9185e3700719edd). On Feb, 6th I synchronized with testnet via ./...
harpun's user avatar
  • 141
4 votes
0 answers
337 views

geth shows last block 0, but on import says all blocks present

I'm trying to restore a corrupt geth DB to a previous version, when I run geth it says I1109 17:36:34.009514 core/blockchain.go:213] Last header: #0 [d4e56740…] TD=17179869184 I1109 17:36:34.009547 ...
Zack Newsham's user avatar
4 votes
0 answers
207 views

Whisper protocol: Version conflict between geth and ethereumj

I am trying to use whisper in a permissioned network with both geth and ethereumj nodes. The Java nodes detect the capability shh version 2 of their geth peers, but only check for nodes with ...
jmr's user avatar
  • 41
4 votes
2 answers
620 views

web3 api in eth

Since, I am not able to use the go client in the multi node mode due to a bug (Multi node private local ethereum and send transaction), I tried to use the c++ client eth. Tried using the go client ...
S.Bhaskar's user avatar
  • 101
4 votes
0 answers
613 views

How come my geth require to sync blocks from beginning after update to geth 1.4.12

I was running geth under a user call 'ethereum' with this command: geth --datadir=/home/ethereum/.ethereum It was up to date until today there have a quickfix on geth so I compiled the source code ...
Roy Pun's user avatar
  • 209

1
2 3 4 5
42