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
636 views

What to do after running geth?

I'm new to ethereum, I followed the installation guide and chose to go with the Geth Go-implementation. The first command i run was geth --console that downloaded all the blocks, one issue though is ...
4
votes
0answers
472 views

sendTransaction and events not working in NodeJS app

I have a contract deployed on the testnet, I can do the following within geth: reference.transfer.sendTransaction(bob, 467, {from:me}) However I can't do this within my node console (with web3 etc. ...
8
votes
2answers
2k views

contract event not firing in web3 node console

It appears my events are not being fired in my node application when I transact the contract in the ethereum wallet gui. I deployed a custom contract via ethereum-wallet I have fired up geth attach ...
8
votes
1answer
13k views

Error: Invalid JSON RPC response: undefined from node web3.js app

I'm getting Error: Invalid JSON RPC response: undefined from my node.js application when it tries to execute a function. My steps: ethereum wallet 0.5.1 to deploy a contract to the testnet. start the ...
7
votes
1answer
2k views

How can I do a fast geth sync without consuming too much memory?

My problem is this. The recommended advice in order for geth to run a faster initial sync is to use the option --fast plus a non-default value for the option --cache. The option --cache appears to be ...
2
votes
3answers
3k views

How to update Geth on Ubuntu without using the PPA

I originally downloaded Geth using the instructions on the original (read: old) Ethereum homepage, using a curl command in a Bash one-liner. I now want to update to a version that will support ...
10
votes
2answers
3k views

Is it possible to call Ethereum API from a Software Application without running an ETH node?

I was wondering if it's possible to make a call to Ethereum blockchain from a software application on my computer without having to run an ethereum node ? for example, I want to make calls from a ...
21
votes
4answers
16k views

How can I empty the blockchain?

I am trying to do a fast sync using geth --fast but I am getting this message: blockchain not empty, fast sync disabled How can I empty the blockchain to allow for fast sync?
5
votes
1answer
1k views

testnet mining extremely slow

I'm trying to run a private testnet (OSX, geth v1.3.5) but finding that mining is either not starting properly or is extremely slow. I am using a custom genesis json as follows: { "nonce": "...
2
votes
1answer
349 views

Geth Sent the Transaction to the Wrong Address?

I just followed the guide, and I made the same mistake as someone else, found here. Essentially if you use the syntax to:eth.accounts[0xXXXXXX....] instead of to:"0xXXXXXX....", Geth will create its ...
1
vote
1answer
546 views

“code”:-32600,“message”:“Could not decode request”

I am trying to send requests to the jsonrpc server as instructed in this link https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getblocktransactioncountbynumber The command works fine in the ...
6
votes
1answer
8k views

How to fork my own version of ETH?

I would like to understand the basics of Ethereum and i would like to clone it and make my own local currency based on Ethereum to experiment at most its capabilities. Is there anyone that can give me ...
2
votes
1answer
840 views

Possible to make a REST call within geth console?

I want to listen to events on a contract and then send them to a rest endpoint. Is it possible to make a REST call within the geth console? Alternatively, if I have a node application and I load web3,...
4
votes
1answer
230 views

Importing paper wallet using geth gives encoding error

Importing from a paper wallet(myetherwallet) gives: Could not create the account: encoding/hex: invalid byte: U+007B '{' I am using the private unencrypted key. go 1.5.3, Geth 1.3.5, Waller 0.5.1,
14
votes
0answers
4k views

What is the difference between “geth” and “geth --fast”? [duplicate]

EDIT : I hadn't see the other question but this one ain't a duplicate because I'm asking here, precisely, if the state differs and if it does, what are the implications. The answer to that question ...
8
votes
4answers
2k views

web3.eth.getStorageAt for mapping

How can I get contract mapping storage? Considering this simple contract contract Currency{ mapping(address=>uint) public balances; function deposit(){ balances[tx.origin]++; } } ...
3
votes
1answer
174 views

How can I avoid trusting any one node?

I read with interest the status of the light client protocol. However, I do not see addressed anywhere I can find how to implement a system where I don't have to trust any one single node such as a ...
4
votes
1answer
1k views

Block header broke chain ordering - Geth 1.3.5

I noticed the following log entry from Geth 1.3.5: queue.go:331] Header #1118680 [a94d89ec] broke chain ordering, expected 1118747 yet the log shows that block #1118680 was successfully downloaded ...
10
votes
5answers
3k views

Geth Console - Sleep after mining a block?

I am running a local testnet with a low mining difficulty to test my contracts, and I am conscious that when I start another mining geth instance the total computation will hog my CPU. My question ...
34
votes
3answers
63k views

How to delete or reset the blockchain in geth? (OSX)

I have a currupt Blockchain and want to hard reset the chain. what do I need to delete in order to start downloading the chain from scratch? I know that there are 2 ethereum folders (I am on OSX): $...
5
votes
1answer
14k views

Is there a way to track block synchronization progress in geth? [duplicate]

I just started up geth after importing my presale wallet. I'm getting a lot of block import messages like this: I0305 17:40:03.815435 10833 blockchain.go:1251] imported 256 block(s) (0 queued 0 ...
4
votes
2answers
366 views

Mist 0.5.1 synchronization problem on Windows

I'm running Mist on Windows 10. I have been trying to download the blockchain since yesterday and the process is too slow and cumbersome. I switched off the firewall and I set the clock and I started ...
4
votes
1answer
816 views

Account that was unlockable is now locked

I've got the dreaded "Could not unlock signer account" with the latest geth on a wallet. It was an offline wallet but I made sure it was unlockable before sending funds to it, by trying it offline, ...
4
votes
1answer
769 views

Can I do a pruned fast sync?

I would like to do a fast bootstrap of the Ethereum blockchain with minimal disk space usage. Can geth do a pruned fast sync?
11
votes
1answer
4k views

Why isn't fast sync the default?

As I understand, fast sync has all the security guarantees of a full sync, but is faster. Is that correct? If so, why isn't fast sync the default?
3
votes
1answer
170 views

Why does syncing the blockchain continually evict the DAG?

During a long blockchain update, there are messages such as "Evicting DAG for epoch X in favor of DAG for epoch X+3." My understanding is that a DAG is not required until actually mining, so the only ...
5
votes
2answers
833 views

Regtest mode on Ethereum

I'd like to use regtest mode on Ethereum. Does it exist? If so, how can I use it?
4
votes
2answers
5k views

I do mining on testnet, but cannot get ether

I'm doing mining on testnet as following, but I could not get any ether. Did I make any fault? Could you tell me how can I get ether on testnet? $ build/bin/geth --testnet console >miner.start() &...
21
votes
4answers
34k views

Can't send transaction — “Exceeds block gas limit” or “Intrinsic gas too low”

I'm trying to send Ether using geth 1.3.5, like this: eth.sendTransaction({from:eth.accounts[0], to:'0x[ADDRESS_HERE]', value: web3.toWei(5, "ether"), gas:21000}); And I'm getting "Exceeds block gas ...
4
votes
2answers
1k views

Anatomy of a Geth Wallet File

Just want to make sure I can fully recover a geth wallet. There are many parts to a typical wallet file: {"address":"ethaddress", "Crypto":{"cipher":"..aes","ciphertext... So basically theres the : ...
5
votes
2answers
2k views

How to update Geth to Homestead (1.3.4)?

How can u update geth to Homestead version? Found this github link, but there is nothing specified about installation.
6
votes
1answer
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 ...
15
votes
2answers
7k views

Geth - How to clear queued transactions?

When typing txpool on Geth I get: { status: { pending: 15, queued: 714 }, getStatus: function() } I don't even know why there are 714 queued transactions when there should be none. I ...
4
votes
3answers
13k views

Add existing wallet to geth with address and password

A few months ago I mined some Ethereum. I do not have the .json file anymore. But I do have the address and the password. Currently I'm running Geth (for the past 12 hours) but I'm not able to put in ...
2
votes
1answer
859 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
752 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 ...
7
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
955 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
163 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:
14
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
15
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 ...
14
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
406 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
325 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
895 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
44k 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 ...