Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
15
votes
3answers
18k views

How can I get my accounts into metamask or vice versa?

I need my accounts in Metamask to match my local machine so I can deploy from the machine (using truffle), and test in a browser. How can I either: Upload my local geth accounts to Metamask Bring ...
6
votes
2answers
884 views

Should correct transaction nonce be one less than account transaction count?

I am trying to solve the 'Why am i getting “removed tx from pool: low tx nonce or out of funds”?' problem on my private test net. I seem to have enough funds however the rejected transaction nonce ...
4
votes
1answer
5k views

Why is the geth ipc file not being created, even though it says “endpoint opened”?

I had some test code working fine over IPC using out-of-the-box geth. I tried to set up a test network and it broke the IPC client. I want to run two processes -- a miner geth process, which stands ...
7
votes
6answers
9k views

How do I change/move the .ethash (DAG) directory to a different location?

When mining, the ~/.ethash folder is quickly fielded. This is annoying as my home directory is on a SSD with no large empty space. Furthermore, mining is writing/reading a lot on the SSD, which is not ...
3
votes
1answer
885 views

Set up Mist browser for a private go-ethereum docker cluster

Consider a base set up consisting of 'n' docker containers (within a VM running on OSX), each running a geth instance. Thanks to the guidance from @BokkyPooBah, in a different thread, I have been able ...
7
votes
1answer
126 views

Any Detailed Documentation On The New Geth v1.4.0 JSON-RPC Protocol Revisions Yet?

I read that geth v1.4.0 had a complete overhaul related to the JSON-RPC protocol. Now that v1.4.0 is nearly a stable release, I am curious to find out if any of these latest revisions have been ...
14
votes
1answer
16k views

How to enable and mine Testnet (Morden)?

I have installed Ethereum Wallet on Ubuntu 14.04. After the installation was completed, I realized that my Testnet (Morden) mode was disabled. Looking in the Develop -> Network menu, the Main network ...
4
votes
1answer
556 views

How do you provide a GasPrice and GasLimit to overcome the “low tx nonce or out of funds” log message

I am getting the following logged by my private chain geth node when running a test in truffle: removed tx ( TX(ff8ec4f713e64fb25df07d153607e29629c9276b57e0b7e331f17b5a3c31fdd1) Contract: ...
18
votes
3answers
22k views

How to attach geth to a local Parity RPC port 8545?

I'm running parity with the --jsonrpc flag which listens on port 8545 by default. I'm trying to attach a geth instance, like described in the the docs: Attach a console to a running geth instance. By ...
5
votes
1answer
591 views

why is my connected peers so few and blocks syncronising so slow even it stops

it took so much time to do the syncronising but still not completed, I want know if the syncronising is always this slow, or is there some way to make it quicker?
12
votes
3answers
2k views

is there an easy way to get the full state of a contract?

I'm developing a quite complex contract with many state variables of all kinds. (mappings, arrays, uint, strings, bytes, etc). For testing, it would be very useful to get a JSON (or similar) with the ...
6
votes
1answer
8k views

Solo mining on geth: Libcurl error 7

Trying to setup solo mining using Geth, but every time I try to start mining I get: X Failed to submit hashrate. X Dynamic exception type: class jsonprc::JsonRpcException std::exception::what: ...
5
votes
2answers
308 views

Importing presale wallet into Geth without downloading all the blockchain

Importing presale wallet into Geth without downloading all the blockchain I was wondering if it is possible to import a presale wallet into Geth without downloading the whole blockchain. I mean, is ...
5
votes
1answer
986 views

web3 API not returning instance of contract when used with eth-lightwallet and hookedweb3provider

I have managed to get a hooked web3 provider with eth-lightwallet creating a contract on a private geth node. I see the tx on the geth logs and see it get added to a block when mined. However I am ...
5
votes
2answers
3k views

How to communicate with the JSON RPC server programmatically using Go?

Is there a way to interact with the JSON RPC server directly in Go? I tried the following: Starting the RPC Server with "geth --rpc" Running the following code: package main import ( "fmt" ...
5
votes
2answers
1k views

Regarding Adding Peers on two local machine nodes

I am new to Ethereum and tried everything to connect testnet from two local machine nodes. I have a geth node running on a small server. I want to connect to it via geth attach from my local computer....
5
votes
1answer
441 views

Error in download full data with Geth ( transaction field in Block is empty)

I'm trying to download full data of ethereum block chain. But when I check the result, I found an error. From block 1 to 46146, field tx is empty,it means that there is no data for transaction. Does ...
3
votes
1answer
741 views

How do you configure eth-lightwallet txutils example_usage.js to use a local eth node?

The example code for eth-lightwallet that shows how to use it with the hooked web3 provider can be configured to use the local node as follows: var ethClient = "http://localhost:1111"; var web3 = new ...
5
votes
1answer
769 views

How to send bytes in combination with array to contract

I see strange behavior when I try to execute some test contracts. I have made 2 test contracts, contract TestContract1 { uint public n; uint public testValue1; bytes6 public ...
3
votes
1answer
8k views

geth, what happened to --logfile?

I just compiled 1.4rc and got this error. I failed at seeing how to use --logfile now, it seems it's been removed but I'm not able to find an alternative. ➜ go-ethereum git:(release/1.4) build/bin/...
14
votes
2answers
5k 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/...
5
votes
2answers
745 views

Blockchain sync on geth stalls at block 1.1 million

I saw the responses on a few issues regarding ethereum and blockchain sync on this site, and was wondering if anyone could help me with a problem I'm facing. I've been trying to sync the blockchain ...
26
votes
3answers
22k views

How can I expose Geth's RPC server to external connections?

I want to set up a private network of applications which can connect to a single Geth node. What options do I have for exposing the RPC server? I'm running this: geth --rpc --testnet (sometimes I use ...
6
votes
3answers
2k views

Personal API documentation for JSON RPC

Is there documentation and examples for using the personal api via JSON-RPC? I found this. However it does not say what the method would be in JSON-RPC.
2
votes
2answers
295 views

What is the XETH Wallet / Bitprofile?

What is the XETH Wallet? I see it's some kind of wallet dapp on top of a geth instance. But what is the Bitprofile and what makes it different to other wallets like Mist?
27
votes
6answers
9k views

How to make miner to mine only when there are Pending Transactions?

As of now the geth miner running on my system mines even empty blocks. All i wanted is miner should mine only when there are Transactions to mine, after mining the miner should immediately sleep. ...
3
votes
0answers
40 views

Geth: how to unlock an account via json rpc [duplicate]

I am running geth and have my api calls all setup but some are useless as I can't sendtransaction without first unlocking the related account. The unlock needs to be over the wire as the caller is ...
6
votes
1answer
2k views

How do I manage unlocking accounts in a test in Truffle

I have a test that exercises a contract function across different accounts. How do I unlock these accounts in the context of the test? contract('MyContract', function (accounts) { it("should ...
5
votes
2answers
1k views

How can I force geth to create accounts in a different keystore?

In geth using Mist I noticed that I have 2 keystores in two different places. One for the main blockchain in Users/<user>/Library/Ethereum/keystore/ (OS X) and on testnet in Users/<user>/...
7
votes
2answers
4k views

Does the number of geth's maxpeers option include it's own node?

In geth's parameters there is a --maxpeers option. Does this option number includes it's own node? --maxpeers "25" Maximum number of network peers (network disabled if set to 0) Does --maxpeers "1"...
6
votes
1answer
495 views

Oraclize API not returning anything in Morden testnet

I use Geth 1.3.6 and a Morden testnet. I am trying to test the Oraclize API for my Ethereum smart contracts. First, I have compiled and deployed the simple smart contracts as DieselPricePeg.sol and ...
7
votes
3answers
25k views

Sent ether from wallet to bittrex, 12 hours later no balance on bittrex [closed]

So I made an account on bittrex and I created a hex address so I could transfer over my ether, I went into my wallet and sent 0.1 ether to bittrex, 12 hours later my bittrex account still shows a 0 ...
8
votes
2answers
2k views

How do I know if a submitted block became an uncle?

We need to detect that the submitted work became an uncle. How would I do this with geth api? I thought of checking the submitted block number later for any uncles that match my block's hash. Is there ...
5
votes
2answers
2k views

Should I avoid CLI geth and Ethereum-Wallet both using the same data dir

I've been running Ethereum-Wallet as my wallet on OSX for a while, and it's fine. It's using /Users/myname/Library/Ethereum as it's data dir. I've just installed geth via homebrew with a view to ...
9
votes
1answer
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 ...
25
votes
1answer
30k views

Geth node starts to sync from the beginning after fast sync

I have synced using the --fast command. Now how should I proceed? I tried stopping it, and then running geth --rpc but it says: Last Header #1311471 Last Block #0 Fast Block #1310224 What should I ...
6
votes
1answer
392 views

Getting segmentation fault while compiling solidity contract

Getting segmentation fault when compiling a simple contract on geth on OSX Yosemite web3.eth.getCompilers(); ["Solidity"] source = "contract test { function multiply(uint a) returns(uint d) { return ...
2
votes
0answers
199 views

Do you need the fully synced node before sending a transaction to the network? [duplicate]

I'm trying to create a wallet locally. I can create an externally owned account using geth that is connected to a local test chain. Now I would like to "push" that account to the real blockchain. Does ...
8
votes
1answer
1k views

How can I generate a V3 of the Ethereum wallet file format in js, from strings: 'Passphrase' and 'Email or username' required by Quorumwallet?

Quorum Wallet prompts for a Passphrase and a Email or username to generate the account. On the FAQs there is a description of the algorithm to generate the account: What is the algorithm used to ...
20
votes
2answers
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" ...
8
votes
1answer
1k 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: _______ ...
12
votes
1answer
4k 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 ...
3
votes
1answer
1k views

Dangling hash node ref: too many open files

I'm running two supernodes with the geth client. At peak times they have 500-800 connections and handle around 16GB traffic per hour. This is how I run the node: geth --networkid "1" --identity "...
4
votes
2answers
1k views

truffle deploy to geth failing, generating “receipt not found” repeatedly from geth

I've just installed truffle on an ubuntu virtualbox, and it is failing to deploy to a geth dev setup. Geth gives me a never-ending receipt not found for transaction ...
8
votes
1answer
5k views

How to unlock accounts programmatically after the node has started?

Is there any way of just unlocking accounts without opening the console with geth? I'm writing some scripts to automate cluster generation and I wish I could just call geth to unlocking some accounts ...
1
vote
0answers
80 views

Where to put message (=data, payload) in geth transaction [duplicate]

Basic transaction in geth is eth.sendTransaction({from:sender, to:receiver, value: amount}) if I want to put some HEX message (eg.FF) to this transaction, where do I put it?
13
votes
1answer
10k views

geth init, what are the arguments?

this command works but yields a warning of future removal so I'd like to use new option init : ➜ ~ go-ethereum/build/bin/geth --datadir="~/testgeth/" --genesis ~/testgeth/customgenesis.json --port ...
1
vote
0answers
24 views

Help with downloading the network [duplicate]

I'm trying to download the network in a different drive of my computer, not my C drive, because I don't have much space left on that one. I change the directory, H drive, while in the command prompt ...
4
votes
1answer
1k views

MIX dapp IDE - how to run your dapp after deployment, error web3 is not defined

I managed to run a personal test chain. I deploy the Sample contract and everything is ok. Transactions included. Now how can I run the dapp? I go to the local package folder inside www I open the ...
13
votes
2answers
4k views

How to load Solidity source file into geth

Is it possible to load Solidity source file .sol file to go-ethereum. I am using the 'loadScript' method by saving a .js file like the following and loads it. source = "contract test {\n" + " /// ...

1
98 99
100
101 102
104