All Questions
913 questions
76
votes
2
answers
40k
views
What does each genesis.json parameter mean?
I'm trying to setup genesis.json for my private network. What does each parameter mean and what value can I set in genesis.json?
nonce: any data?
timestamp: any time?
parentHash: any hash?
extraData: ...
37
votes
4
answers
48k
views
What is a chainID in Ethereum, how is it different than NetworkID, and how is it used?
Here it's described in Ethereum's go implementation.
type ChainConfig struct {
ChainId *big.Int `json:"chainId"` // Chain id identifies the current chain and is used for replay protection
A few ...
20
votes
2
answers
7k
views
Deploying the Greeter contract via the geth CLI is not registering in my private blockchain
I am running a local private Ethereum blockchain using:
geth --networkid 60098 --genesis CustomGenesis.json --nodiscover --maxpeers 0 --rpc --rpccorsdomain "http://localhost:3000" --datadir "./data" ...
17
votes
2
answers
7k
views
How to make Ethereum mining difficulty static for a private chain?
I have implemented private chain in ethereum but its difficulty level increases by time as a result the mining process slows down. Is it possible to make the difficulty static or disable it in testnet....
16
votes
3
answers
29k
views
How to set up a Private network and connect peers in geth?
I am trying to setup a private network and trying to connect peers. Currently I'm trying it on my laptop and desktop (both of them are connected to different internet).
I run the below command in ...
15
votes
3
answers
12k
views
Fatal: Failed to write genesis block: unsupported fork ordering: eip150Block not enabled, but eip155Block enabled at 0 genesis block
I am attempting to launch a private geth chain with the following command:
geth --datadir=./test-private-blockchain/ init genesis.json
I am receiving the following error:
Fatal: Failed to write ...
15
votes
5
answers
14k
views
getting error on max invalid genesis file: hex string has odd length
I am trying to create a genesis block on my mac for a local ethereum network but I am getting the error:
invalid genesis file: hex string has odd length
when i do it.
My code is the following:
{ ...
15
votes
2
answers
7k
views
Running a custom private go-ethereum node cluster using docker
Here is a set up I have been working on and am having issues with ability to create a private network with peers.
Basic set up: Used the dockerfile from https://github.com/ethereum/ethereum-dockers/...
15
votes
3
answers
6k
views
Mining with geth on private network hangs indefinitely
I've got a private test network running as per this article. In particular my difficulty is set to 0x400; the entire genesis file I'm using can be seen here.
Mining with geth does not seem to work ...
15
votes
2
answers
6k
views
Truffle Migrations Account Locked Error with --network command
I have started a private blockchain using the command,
geth --networkid 1337 --datadir ~/home/xyz/testnet --ipcpath /home/xyz/.ethereum/geth.ipc --rpc --rpcapi eth,web3 --rpcport 8545 --rpcaddr ...
14
votes
4
answers
7k
views
How to run Ethereum Wallet on a custom chain?
So I downloaded the Ethereum Wallet
I know you can use a custom directory by running geth first with the datadir flag set up, and then launching the wallet. But besides a custom directory, I want to ...
14
votes
3
answers
22k
views
Error "Snapshot extension registration failed" when connecting nodes
Description.
The error occurred during the process of building an Ethernet private chain, and I found that the node could not connect. The error message in the log is as follows.
INFO [07-24|09:06:36....
13
votes
2
answers
15k
views
What is an HD wallet for Ether and how to create one using node.js?
I know the basics of blockchain and how to use geth. However, I'm curious to know how to build a wallet using nodejs. What I understand is that you can create a account using geth console (private ...
12
votes
7
answers
18k
views
How to add peers on a private network?
I have created a private blockchain on two different machines. Now I want these nodes to connect with each other as "peers". I am using geth console.
I have tried the following command:
> admin....
12
votes
1
answer
6k
views
Peer discovery not working on private network
I'm running 3 nodes with the following command:
geth --verbosity 4 --autodag --nat any --genesis /opt/blockchain/genesis.json \
--datadir /opt/blockchain/data --networkid 4828 --port 30303 --rpc ...
11
votes
4
answers
18k
views
ethminer Failed to submit hashrate
I keep getting an error: ethminer Failed to submit hashrate :(
I am very new to this whole mining thing, and just want to learn more.
I am using:
Geth
Version: 1.5.0-unstable
ethminer version 1.2.7
...
11
votes
1
answer
4k
views
Sign raw transaction offline with C++ on arduino
I'm exploring the IoT side of the EVM. I've programmed Arduinos and ESP8266s to interact with a Geth JSON RPC. I'm trying to be minimalistic and avoid NodeJS on the Geth JSON server side. Currently ...
10
votes
2
answers
4k
views
How to connect etherwallet to my private blockchain?
I am unable to make etherwallet v3.4.2 to connect to my private blockchain.
The way I run my private network: (please note that it works perfectly fine)
geth --port 3000 --networkid 23422 --identity ...
9
votes
3
answers
7k
views
Convert an eth key to a geth key
I need to convert my eth key to a geth key.
eth put the key in %appdata%\roaming\Web3\keys, and I see it as a .json file. If I move that to the %appdata%\roaming\Ethereum\keystore directory, geth ...
9
votes
2
answers
15k
views
What is the bootnode command in the go-ethereum documentation?
In the go-ethereum docs there is reference to a bootnode command:
Creating the rendezvous point
With all nodes that you want to run initialized to the desired genesis
state, you'll need to ...
9
votes
2
answers
2k
views
Accessing off-chain data from a smart contract to make a decision
I just started studying about smart contracts and from what I understand, smart contracts only deal with the data present on the blockchain. While working on a private blockchain, I want to know ...
9
votes
1
answer
1k
views
How can I stop the block gas limit on a private chain dropping to the public chain default?
I've got a little private chain running which occasionally runs some rather labour-intensive transactions.
I was able to set the initial block gas limit using the "gasLimit" parameter in genesis.json ...
9
votes
1
answer
2k
views
Losing connection between nodes on private network
I have 3 nodes running on a private network.
After asking this question, I've manually added node1 as peer to node2 and node3, so my network looks like this:
_______ ...
9
votes
3
answers
7k
views
How could "ethereum block explorer" connect into geth that is already running on the main server securely?
I am working on private Ethereum Network. I run Ethereum boot-node and Ethereum Block Explorer app ( https://github.com/etherparty/explorer (A lightweight ethereum block explorer.) ) on the main ...
9
votes
2
answers
3k
views
How to preallocate multiple accounts with ether for geth --dev chain?
I'm trying to set up a private chain with geth using --dev that has several accounts with lots of ether. It seems unclear if this is possible anymore according to this.
Here's what I tried on geth 1....
9
votes
2
answers
2k
views
Geth will not start mining in private network!
Will somebody please help me out? I am stuck at this since hours; did the process +3 times, each time deleting the datadir content. Geth still will not start mining!!
Specs:
Geth 1.8.11, on macOS X
...
8
votes
3
answers
6k
views
CPU mining JSON_PARSE_ERROR
I just wanted to mine ETH with my CPU. I use Windows 7 64 Bit with ethminer.
I started the cpu miner with a batch
ethminer -t 6 -C -F http://ethereumpool.co/?miner=5@0x17C0Bea7c44*******...
8
votes
2
answers
5k
views
Getting more Ether on a private test net
I setup a local testnet using geth following these instructions. I was able to mine my initial Ether and all was working. After deploying some contracts I quickly spent all the Ether I had. Now it ...
8
votes
3
answers
5k
views
Mining ETH on HD 6950 DAG allocation problem
I have 2 HD6950's which I wanted to use for ETH mining - but I have the well known DAG allocation problem.
I can't find a solution for this problem - that's why I'm asking here. And please don't tell ...
8
votes
3
answers
4k
views
Truffle migration stuck
I am trying to migrate contract on a block chain network created using azure ethereum consortium blockchain, But when I am running the command Truffle migrate it stuck at
PS D:\sl\BCSLAC\bcdemo\sol&...
8
votes
1
answer
497
views
How to Debug geth Node that Won't Connect to Parity-based Private Network?
I have a private network consisting of two Parity nodes that know about each other from the chainspec file and seem to connect to each other just fine.
I have a third computer. From here, I can run ...
8
votes
1
answer
2k
views
Ethereum's definition of difficulty and hash rate
I'm trying to make sense of geth's hashrate and Ethereum's difficulty setting. I'm running a private test net and set the difficulty to a fixed value (to big.NewInt(250)) as described by https://...
8
votes
2
answers
4k
views
How to bind Go auto-generated code to a smart contract over IPC?
I wish to create a go-binding to my smart contract which was mined on a private blockchain.
I've looked at the Native Dapps : Go binding to Ethereum contracts tutorial (located here : https://github....
8
votes
1
answer
2k
views
**Updated** Ethminer - no such file or Directory error after building cpp-ethereum on Ubuntu 14.04
I am new to all of this, although I do some programming on Windows and the web.
I have a small rig I want to use for mining ethereum. It is a dell inspiron 560.
It has a new Nvidia GE-Force 610 ...
7
votes
2
answers
1k
views
How can I get a private geth instance on Azure to interact with the public blockchain?
So I am referring to Microsoft Azure's new blockchain as a service Ubuntu geth instance. I've set this up no problem and have run through the tutorial, but I'm trying to think of how I would get this ...
7
votes
1
answer
10k
views
ETH sent to ETC address
I accidentally sent ALL my ETH on ETC address :(
6 months of mining gone :(
I sent from one exchange to fresh address on another exchange, but on ETC ...
Is there ANY way to track those coins?
I'm ...
7
votes
3
answers
8k
views
Gas limit exceeded on private chain
I am currently running a private ethereum chain with 2 nodes. My coinbase address on the main node has plenty of ether so I went to make a transaction but got the error "Gas Limit exceeded". I noticed ...
7
votes
2
answers
6k
views
Can't join nodes/peers to private network
OBJECTION to duplicate problem: The supposed duplicate answer DOES NOT work. The problem wording is similar but the problem itself requires a different solution.
I created a local private chain like ...
7
votes
2
answers
2k
views
Verifying Modular exponentiation operation in etherum
I have Alice who should do some cryptographic operations off-chain. Then a smart contact has to verify equality by performing Modular exponentiation operation.
I attached an image of the off-chain ...
7
votes
1
answer
631
views
Is it possible to tell whether an address is mist, mew or parity?
How can I tell if an address is from Mist, MyEthereumWallet or Parity? Is there anyway to know? Are they encoded differently?
7
votes
3
answers
3k
views
Is there any c++ library for signing transactions?
I am working on light wallet in c++, and I am looking for a c++ library for signing transactions. I mean something where i will pass transaction and private key and it will return signed transaction ...
7
votes
1
answer
5k
views
Executing custom JavaScript Snippets through Non-Interactive console (geth --exec)
I have a JavaScript snippet to get the latest transaction to/from an account. After starting the geth instance, I did this in the interactive JS console:
jsFunction is a function in filename.js
&...
7
votes
1
answer
915
views
Is there any way to disable contract creation on a private network?
I want to use a private Ethereum chain for a specific purpose.
I want users to be able to execute contracts that I have created or that I have initialized the blockchain with, but I do not want users ...
7
votes
1
answer
6k
views
geth not connecting to private network
I am running a private blockchain and I have parity nodes that seem to be connecting just fine. I've gotten though some geth issues that I was having before but geth still won't connect.
HOWEVER ...
7
votes
1
answer
3k
views
geth: view all current contracts on a private testnet?
How can I query a list of all current contracts with geth?
Is there a way to see the contracts' class names?
7
votes
1
answer
1k
views
Gas limit won't change [duplicate]
I am currently running a private ethereum chain with 2 nodes. My coinbase address on the main node has plenty of ether so I went to make a transaction but got the error "Gas Limit exceeded". I noticed ...
7
votes
1
answer
3k
views
Is there a downloadable Ethereum bootstrap?
I am trying to synchronize a full node, and this is going very slowly, the progress alternates between bursts of high CPU usage (which is fine, it is heavy but importing), and long times with nothing ...
6
votes
1
answer
2k
views
Simple contract on private network is never mined
I'm trying to run the crowdsale example from the Frontier docs on a private network and local blockchain. I can create the contract, but do not seem to be able to mine it.
You can see a gist of the ...
6
votes
5
answers
11k
views
connect ethereum wallet(or mist) to to ethereum local private network
I would like to create a private network for test. And I would like to connect to this private network from commandline client or Ethereum wallet/mint.
I have created a private network as below.
...
6
votes
5
answers
8k
views
Minimum theoretical hardware requirement for geth
Is there any theoretical requirement for RAM, storage size etc. when I run geth? I mean the real necessary hardware required to get geth running at the very least, but not the optimal or profitable ...