Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
870 views

Getting TX hash back but transactions not showing on blockchain?

So I upgraded geth yesterday to 1.3.4. I've been trying to send ETH to my Poloniex wallet, and every time I attempt a deposit my terminal returns a TX hash, but this hash never shows up in the block ...
4
votes
2answers
770 views

Possible to run Geth offline?

I'm trying to start Geth from an offline machine. An answer in a related question seems to indicate this is possible. However, running the command $ geth hangs at Starting Server. Trying to attach an ...
8
votes
2answers
3k views

How can I get notification from geth when I receive ether?

I'd like to get notification from geth when my account receives ether. I'm thinking to type api command eth_getBalance in every minute, in order to check if my account receive ether or not. However, I ...
6
votes
1answer
965 views

Will I be able to mine having my whole blockchain imported using the --fast flag? (Geth)

Having the same problem as in this question: Corruption on data-block while synchronising I restarted my synchro on the fresh/empty data directory using the --fast flag. According to this answer: What ...
2
votes
1answer
168 views

Unable to install geth on my Azure Ubuntu 12.4

Somehow, I am unable to install from this location: bash <(curl -L https://install-geth.ethereum.org) getting the error below: error unable to install geth screenshot:
15
votes
4answers
4k views

Is there the start/stop script of geth after Debian/Ubuntu booting?

Is there any start/stop shell script for geth which is executed after Debian or Ubuntu OS boot up? For example, startup scripts usually located under /etc/init.d/ /etc/rc.local
16
votes
4answers
18k views

Possible to store the blockchain in a different directory?

I'm running geth on Linux within a Chromebook. The blockchain is being stored within ~/.ethereum, along with other important files. Problem is, the storage capacity on my Chromebook is quite limited ...
5
votes
1answer
2k views

How to update the web3 API version in geth?

I spent a couple of hours on upgrading web3 API to v0.15.3 in geth (on Mac OSX) with no effect. I installed the newest geth and it says: web3.version { api: "0.13.0", client: "Geth/v1.3.4/darwin/...
4
votes
0answers
66 views

Possible to sign offline transactions with Geth? [duplicate]

I'd like to set up a cold storage wallet that has the ability to create and sign transactions offline. It seems both Icebox and ethkey has this functionality, but I'd prefer to have the option to ...
15
votes
3answers
5k 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 ...
4
votes
2answers
409 views

Is it possible to mine slowly?

I'm developing a DAPP in a laptop. I setup a private test blockchain with one node to develop locally and do not have to spend real ethers. It works fine, but when I start mining, the laptop gets ...
10
votes
1answer
1k views

Geth Gas price too low for acceptance

Why is geth not letting me post a transaction with a low gasPrice? > ./geth console > eth.sendTransaction({ "from": "...", "to": "...", "gas": "30000", "gasPrice": "10", "value": "0.1" }) Gas ...
3
votes
1answer
332 views

Geth console output “short write”

I'm running geth with geth --rpc --rpccorsdomain "localhost" and ethminer 1.1.4 in a separate terminal, and I've noticed that in the geth console I'm getting a lot of messages that simply just say "...
4
votes
3answers
899 views

Mist does not start anymore? Error: connect ECONNREFUSED

Most recently, I get the following error after executing mist: CONNECT to IPC PATH: /home/santi/.ethereum/geth.ipc CONNECT to IPC PATH: /home/santi/.ethereum/geth.ipc NODECONNECTOR ERROR { [Error: ...
3
votes
2answers
244 views

How to invoke a contract function in the future (under 10 blocks)

This is not a duplicate question, as the alarm contract only allows function calls to be made in the future, over a period of at least 10+ blocks... The current thinking is to just use the alarm ...
8
votes
2answers
45k views

How do I check my mining hashrate?

I've wrangled an old altcoin mining machine into an ethereum mining rig, it has two Radeon 280X cards in it. I'm running geth, with two instances of ethminer, one per card. However the output of ...
3
votes
1answer
461 views

Node.js, Geth & Events

I've been tracking a case where my Node.Js server just stop receiving events, basically for each contract, when I do a contact.allEvents({ fromBlock: startblock }, (error, data) => { ... }); It ...
17
votes
5answers
13k views

geth import vs copying chaindata

I'm trying to sync my RPi 2 with the blockchain. geth import runs quite slowly, as well as syncing from scratch. What would be the problem in just copying the .ethereum/chaindata folder from ...
5
votes
1answer
2k views

How can I connect geth by IPC on rails?

I'd like to connect geth by IPC on rails. I start geth as follows. $build/bin/geth --datadir "/home/vagrant/.ethereum" --networkid "1" --ipcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3" ...
10
votes
1answer
2k views

Can I run Geth without syncing?

I want to test some api calls using web3.js and so I am using geth as HttpProvider. Can I start geth without the syncing? Is something like geth --nosync --rpc available?
1
vote
1answer
185 views

Is there a loadscript equivalent in eth?

I got this error in eth client : Error: Uncaught ReferenceError: loadscript is not defined is there a loadscript equivalent command in the cpp client eth?
6
votes
2answers
16k views

How can I install go-ethereum on CentOS?

I'd like to setup go-ethereum on centos6.5. However,this reference doesn't show how to install go-ethereum on centos. I tried [vagrant@vagrant-centos65 ~]$ bash <(curl -L https://install-geth....
2
votes
0answers
19 views

Block data duplication when moving from Geth to Eth (or vice versa) [duplicate]

I've so far been using Geth (the Go client) as my client of choice. I'm now interested in using the Mix IDE, a requirement of which is that I use Eth (the C++ client) instead. I've already synced the ...
10
votes
1answer
1k views

Why do some blocks contain no transactions?

While poking through my Geth logs I noticed that block 1,000,006 doesn't actually contain any transactions. Why is that?
12
votes
5answers
4k views

Sorting an Array of integer with Ethereum

I'm trying to have a simple array of integer sorted in Solidity but i couldn't find any real ressources so instead i'm trying to do it "the hard way" but so far with very little success. Is anyone ...
13
votes
3answers
3k views

How can I completely automate a Docker image and Dockerfile for a geth test network

I would like to create a Docker image for a test network that has everything ready to go - pre-created accounts with ether already allocated. The problem is there doesn't seem to be a way to do this ...
13
votes
2answers
18k views

When is the geth.ipc file produced?

I'd like to access geth.ipc file in order to connect geth via IPC. I've got an advice and it suggested me to access geth.ipc, but I've not found it on my mac. Could you tell me when that file is ...
2
votes
2answers
689 views

Transaction using geth is stuck

I have created a wallet using geth on my mac. I have sent a small amount from Kraken to that account but its stuck on "sending". Do I need to download the blockchain first on my node so it can be ...
4
votes
1answer
4k views

How can I import geth accounts into eth?

I had two accounts under ~/.ethereum/keystore when I used geth a while ago. I got a new PC, recompiled only the C++ version and I can't see my two accounts in eth. web3.admin.eth.allAccounts() ...
4
votes
2answers
383 views

How can I make an account in Ruby without using JSON-RPC?

I'd like to build an application with rails. I want to make an account through Ruby. I got the advice that, in order to make an account, I should not use JSON-RPC for security. Instead I should use ...
2
votes
1answer
197 views

Option to give passphrase via web interface

I am trying to run the sample web3.js code from here https://github.com/ethereum/web3.js/blob/master/example/event_inc.html I am running the geth node on testnet. However, when I try to create the ...
26
votes
3answers
16k views

How can I make new account by JSON-RPC?

I'd like to make new account by JSON-RPC.I've checked the wiki of Ethereum, however I could not find out how to do that. I've found call existed accounts, but it isn't what I want. eth_accounts ...
4
votes
2answers
4k views

I've been mining with geth but my balance is still 0. Why?

Today I started mining ether on the main network and I see new blocks being processed in the console but my balance is still zero ether. Why? This is the geth console output: I0214 20:15:47.234020 ...
6
votes
3answers
892 views

What is the difference between “eth.accounts” and “web3.eth.accounts”?

The instructions for creating a new account on the Geth console state: Tip: If you are using Geth then you can just use eth instead of web3.eth command. Meaning accounts can be referenced by ...
7
votes
4answers
6k views

How do I automatically run a geth startup script and get a console?

I would like to start geth using a startup script to automatically unlock the accounts and start the miner, and possibly other tasks (for my test network). I tried the --exec 'loadscript('sript.js')' ...
3
votes
1answer
2k views

Greeter variables are all undefined and contract doesn't run

I'm attempting to run the greeter contract on the live network. I'm following the commands as per the official tutorial, which worked on a test network when I tried it a while ago (on a different ...
18
votes
2answers
10k views

How do I remove accounts using the Geth console?

I have several accounts I've created in the Geth console using: personal.newAccount() I no longer use (nor have any intention of using) the first couple of accounts I created, meaning whenever I ...
2
votes
1answer
294 views

How to control which client mist is using as blockchain backend?

Whenever I run mist without any client, it launches a geth node in the background, connects to the network and syncs the blockchain. If I have a geth node running and start mist, it detects the ...
7
votes
2answers
916 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 ...
2
votes
1answer
267 views

How to import an Augur account in Geth?

I created an ethereum account on the sale.augur.net page. And now I've finally downloaded and installed Geth as well. How do I import that account into Geth?
1
vote
1answer
826 views

How to set and retrieve items to/from an array that is stored in smart contract memory/storage?

I am trying to add msg.value and msg.sender into an array using web3 for every client that invokes my contract. I would like this information to be stored on the contract for as long as possible, if ...
8
votes
1answer
3k views

How do I access member variables of a contract from web3.eth?

For example: enum Stages { AcceptingBookings, StopAcceptingBookings, Finished } Stages public stage = Stages.AcceptingBookings; function rand ( uint256 param) atStage(Stages....
6
votes
3answers
3k views

web3 methods not implemented

I'm running a geth node on the testnet and trying to run web3.js method from my node server code. Here's my code var Web3 = require("web3"); var web3 = new Web3(new Web3.providers.HttpProvider('http:...
6
votes
1answer
265 views

Is there a way to interchange between the Mist wallet and geth without having to redownload the whole blockchain?

I already have the ethereum wallet running on my laptop, when I exit it and go to run geth in terminal it redownloads the entire blockchain again? Same thing happens when I go from geth to the wallet. ...
9
votes
3answers
2k views

What's the fastest way to mine a transaction so I can test contracts quickly?

I am developing a solidity automated test framework in nodejs that uses events/logging extensively. The use of events eliminates (I believe) all the RPC simulators out there. It's also frustrating ...
5
votes
1answer
2k views

Making web3.js work from node server code

I'm running a geth node on the testnet and trying to run web3.js method from my node server code. var coinbase = web3.eth.coinbase; console.log(coinbase); However, I'm getting a provider not set or ...
7
votes
1answer
351 views

Why is homebrew downloading old geth version?

Im on mac OSX, so I go to terminal CLI and do brew install ethereum then I get ==> Downloading https://build.ethdev.com/builds/OSX%20Go%20master%20brew/193/bottle/ethereum-1.1.0.yosemite.bottle....
95
votes
2answers
86k views

What is Geth's “fast” sync, and why is it faster?

One of the answers to this question suggested using Geth's --fast flag to help quickly synchronise the block data. How does the flag work, and how does using it speed up the synchronisation? Are we ...
9
votes
2answers
6k views

Corruption on data-block while synchronising

My home server's been down for a couple of days while I do some upgrades. I'd had Geth running in one of the terminal windows, but shut it down gracefully using exit before taking the server offline. ...
5
votes
1answer
751 views

Why is fast sync not working with geth 1.1?

When I run geth --fast I get: Incorrect Usage. geth [global options] command [command options] [arguments...] VERSION: 1.1.0 [...] flag provided but not defined: -fast How do I fix this?