Questions tagged [go-ethereum]

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

1,657 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
21
votes
0answers
578 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....
9
votes
1answer
396 views

Geth 1.4.10 — faild enc handshake: EOF

Geth suddenly stopped working for me - when I run it on verbosity level 5 I get repeating error messages like the following: dyn dial conn 120.27.122.174:30303 faild enc handshake: EOF Any thoughts ...
8
votes
0answers
534 views

Running a geth light client, how do I resolve the error: “No trusted canonical hash trie”?

I've been running a geth light client to deploy smart contracts through Truffle Migrations to mainnet. I'm getting: "Error: No trusted canonical hash trie". Any help in what this entails and how to ...
8
votes
1answer
438 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 ...
7
votes
0answers
3k views

Why is Geth's “fast” sync now the default, whereas before it wasn't?

As of version 1.6.0, the default method used by Geth for syncing the chaindata is "fast": The default sync mode is --syncmode=fast, for full sync please use --syncmode=full. Previously, the ...
7
votes
1answer
504 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.
7
votes
4answers
3k views

Sync done but latest block number 0

I am running geth 1.8.0 I have been running the node for over 24 hours > eth.syncing false > eth.getBlock("latest").number 0 Is this a valid state? Why is the number 0 even though syncing is ...
6
votes
0answers
38 views

Can we avoid the protocol overhead of JSON-RPC and directly connect to GETH through some interface?

I want to build a middleware that adds additional data to JSON RPC responses. This middleware would sit on the same hardware or machine as the GETH node. The traditional approach would be to simply ...
6
votes
1answer
256 views

What filesystem should I use for geth and leveldb?

I used old LGA775 machine for running geth node. Its mobo has older sata 3gb/s (benchmark showed that ssd bottlenecked there) and only 4gb of DDR2, with windows installed. So syncing is a real pain ...
6
votes
1answer
388 views

How to change Geth PoA Clique block sealing time?

I have used puppeth to generate genesis file in which I set sealing time to 30 seconds. I have set up one miner. Now, I want to change the sealing time to 5 seconds. How can I do that on same ...
6
votes
2answers
1k 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 ...
5
votes
1answer
713 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 ...
5
votes
2answers
613 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 ...
5
votes
0answers
197 views

Geth vs Parity Transaction propagation (1 / sqrt(n))

Is there a reason that geth propagates new txs to all peers but parity only propagates txs to 1/sqrt(n) (on average) peers? I see a comment in geth to the effect of //FIXME include this again: peers = ...
5
votes
1answer
703 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 ...
5
votes
0answers
202 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 ...
5
votes
1answer
858 views

Call write function, which doesn't change contract value

I'm new in smart contracts and faced with one problem. After deploying contract to my test local blockchain network, i try to set new value via setter, after that I call get method of contract and it ...
5
votes
0answers
468 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://...
5
votes
4answers
598 views

Can Ethereum DApps work without downloading all blocks in the network?

I've just downloaded Mist (the Ethereum wallet) and am waiting for all blocks to download. I'm on the test network and its been 24 hours with only 50% of the blocks downloaded. My question is, if one ...
5
votes
1answer
236 views

web3.eth.compile.solidity(source) throws me Invalid JSON RPC response

I am relatively new to Blockchains and when I execute the following command I am getting an error. contract mortal { address owner; function mortal() { owner = msg.sender; } ...
5
votes
2answers
186 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 ...
4
votes
0answers
40 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 ...
4
votes
0answers
88 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 ...
4
votes
0answers
70 views

Block Timestamps vs. Received Timestamp

I've been logging local timestamps when I receive blocks on two separate geth nodes to see which (if any) is consistently faster. But I just stumbled across something that I don't understand - in my ...
4
votes
0answers
159 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 ...
4
votes
0answers
278 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: ...
4
votes
0answers
359 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 = ..., ...
4
votes
0answers
508 views

What is the safest way to use WS-RPC server in geth?

In this answer, it is suggested that it is not safe to use --wsorigins="*" for security reasons. What are the security reasons? => How could I make WS-RPC server connection secure in geth?...
4
votes
0answers
310 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(&...
4
votes
1answer
231 views

DEVp2p Wire Protocol tutorial on geth or Web3.js/Web3.py

I was looking to develop an application using ÐΞVp2p Wire Protocol and I'm having trouble finding an example or tutorial. I was able to find only ÐΞVp2p Wire Protocol's wiki. [Q] Does anybody has a ...
4
votes
0answers
374 views

What are the ramifications of changing `--port` in geth?

If I'm running a full node with --lightserv enabled for several hundred clients, what are the ramifications of me running geth on a port other than 30303? If I change it to --port 2345 will I still be ...
4
votes
0answers
365 views

What is the current size of the Ethereum State?

What is the current size of Ethereum's state in bytes? I am not asking about the size of the blockchain with blocks headers, transactions and receipts. I am looking for the size of all the structure ...
4
votes
2answers
422 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 ...
4
votes
1answer
518 views

Contract transaction couldn't be found after 50 blocks in Kovan

When deploying contracts on the ledger I faced with issue Error encountered, bailing. Network state unknown. Review successful transactions manually. Error: Contract transaction couldn't be ...
4
votes
0answers
79 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 ?
4
votes
1answer
414 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?
4
votes
0answers
275 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 ...
4
votes
0answers
1k views

flag provided but not defined: -rpc

I'm using Geth to set up a private ethereum network and this is the command: $ geth --identity "MyTestNode" --datadir "SomeDir" init genesis.json --rpc --rpcaddr "localhost" --rpcport "8000" --...
4
votes
2answers
244 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 ...
4
votes
1answer
4k 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 ...
4
votes
1answer
344 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 ...
4
votes
0answers
299 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 ...
4
votes
1answer
381 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/....
4
votes
0answers
98 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 ./...
4
votes
0answers
195 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 ...
4
votes
1answer
452 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 ...
4
votes
0answers
779 views

Synchronisation using geth; DAO fork-check, dropping is the only message recieved

I'm attempting to synchronise with the blockchain using geth on Win7 64bit. Presently pretty much all I'm getting is repeats of the same message; timed out DAO fork-check, dropping (see bottom). ...
4
votes
0answers
480 views

Unstable connection between peers on a private network

I created a private net, I've been trying to connect two Ethereum nodes because I need one of them to mine the transaction made by the other. The two nodes are on different machines and networks. I ...
4
votes
0answers
477 views

geth throwing header invalid error all the time

lately my ethereum node is repeatedly throwing this error: E0811 16:44:00.646126 core/blockchain.go:1128] uncle[0](30508438) header invalid: nonce for #2004585 [...
4
votes
0answers
307 views

How to add additional parameters to Ethereum Wallet?

I wish to add a few more fields to the wallet file & save it in the keystore so that I can manage them better. For instance, consider the following: { "address": "...

1
2 3 4 5
34