Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
94 views

slow start of block synchronization in geth [duplicate]

What can I improve or debug to find causes of a delayed start of the block synchronization in geth? I am running the latest geth (1.4.5-stable-a269a713) on Ubuntu 15.10, I noticed this behavior ...
5
votes
2answers
3k views

Geth Fast Sync imports blocks that have already been synced

I keep having this problem where geth fast syncs normally importing headers and receipts (not blocks) up until a certain point at which it starts importing blocks that I had already synced a long time ...
1
vote
0answers
45 views

admin.chainSyncStatus API doesn't work? [duplicate]

I've found a good API I want to use to see if my geth is in sync: admin.chainSyncStatus. However, when I call it through web3/nodejs, I get this error: /home/myuser/Documents/Code/Crypto/...
11
votes
3answers
18k views

how do you know your db is synced in geth?

In order to answer this question there is a need to get the timestamp of when the database is synced with geth. I can think of two ways of doing that : find the 1st occurrence of 1 block in the geth ...
2
votes
1answer
2k views

Downloading full blockchain again after using geth --fast on 0.7.4 [duplicate]

I've downloaded the newest mist browser on a new pc and used geth --fast. After fully syncing (which was about 1,5 hours) the syncing started from 0 again, but this time slow, downloading the whole ...
6
votes
2answers
482 views

How much faster is it to sync the FULL blockchain with --cache=1024?

Running Geth with --cache=1024 is recommended to be able to sync the blockchain faster (since the default is only --cache=16. I want to have the full blockchain (all past transaction data) so do not ...
3
votes
1answer
866 views

What optimizations does Geth's --jitvm do?

geth help has: VIRTUAL MACHINE OPTIONS: --jitvm Enable the JIT VM --forcejit Force the JIT VM to take precedence --jitcache "64" Amount of cached JIT VM programs What ...
15
votes
2answers
10k views

How much faster is it to sync with --jitvm?

geth help has: VIRTUAL MACHINE OPTIONS: --jitvm Enable the JIT VM The impact of --jitvm has been unanswered and I'm looking for answers to these 3 specifically: How much faster is geth ...
2
votes
2answers
392 views

Buliding geth from source does not make Solidity available

I've made a fresh install of go-ethereum from source on Ubuntu and Fedora, launched it and expected to find Solidity available when doing eth.getCompilers(), but I get an empty list instead. I have ...
20
votes
2answers
6k views

Is there a way to stop the Geth console from printing syncing information?

Is there a way to stop the Geth console from printing syncing information? I start Geth with geth console. Actually, I do not want to see all that syncing information constantly. Can I turn it off ...
4
votes
1answer
5k views

My geth node is taking ages to sync, can I still send ether?

It looks like I have to sync my blockchain at least until the block when my account was funded. Because as of right now the balance for my address is still zero. I'm runnig geth version 1.4.4-stable-...
7
votes
1answer
2k views

What is Geth's JIT VM?

Whilst downloading the blockchain which has taken me approximately a week to get to block 1.09 mil, I received a message from geth.exe after a reboot around 1050999 -1060888 You're one of the lucky ...
3
votes
3answers
171 views

How do I keep my Ethereum Wallet synchronised after the initial synchronisation

I have successfully installed and synchronised Ethereum Wallet and it has correctly brought in my test Ether purchase. How do I resynchronise to ensure more current transactions are recorded on my ...
8
votes
1answer
2k views

How to change verbosity without restarting geth? (admin.verbosity undefined)

Documentation of console API advertises admin.verbosity, but my node says it's undefined in Geth/v1.4.4-stable-8ea3c88e/linux/go1.6.2. So, how to change verbosity without restaring the node with a ...
5
votes
2answers
619 views

Geth private testnet: what's wrong?

I have downloaded geth and ethminer, and started running a testnet with 2 nodes - 1 mining and the other not. Here's my (noobish) problems: If I submit a txn to my non-mining node, it won't get ...
1
vote
0answers
25 views

Is there an easy way in the Geth console to see the current numbers of blocks in existence? [duplicate]

Is there an easy way in the Geth console to see the current numbers of blocks in existence? Same as "best block" at ethstats.net. I tried admin.chainSyncStatus but it just returns 'undefined'
28
votes
2answers
48k views

how to unlock the account with geth?

when I use the web3 interface to sign on msgs, it tell me that the account should be unlocked, how can I manage this with geth and what exactly does unlocking mean?
3
votes
0answers
275 views

Unable to receive ether in testnet account [closed]

I have set up a test net account using the ethereum wallet on my PC. I have left my miner on in the test environment for several hours and failed to mine test ether. I have also tried getting ether ...
5
votes
1answer
1k views

How to make synchronous web3.js function calls?

I am using the web3.js library directly in HTML, not via Node.js to interact with my local geth node. The following code gives me an error (web3.min.js:2 Uncaught TypeError: e is not a function) when ...
9
votes
1answer
2k views

Link solc with geth problem

After upgrading to geth 1.4.4 I am no longer able to from to reference the compiler from geth. The solc compiler is installed in /usr/local/bin but this is what I get when I check for available ...
7
votes
2answers
4k views

Sync blockchain while mining?

I'm new to ether mining. Do I have to sync with the blockchain while mining? Currently I'm using ethminer for solo mining with GPU and geth to sync with blockchain.
3
votes
2answers
3k views

TheDAO internal transactions

I need to get transaction list within theDAO system. Is it possible or it's the same case of getting the internal transactions in Ethereum? I want to know if there is a mechanism within theDAO to get ...
4
votes
1answer
1k views

Etherbase, Coinbase and Uncle [duplicate]

what is the main difference between etherbase and coinbase? And what is the meaning of "uncle" in a transaction?
4
votes
0answers
262 views

Error: Transaction not confirmed for sendTransaction at rpc connection through http

I am trying to send a transaction to a contract deployed on the testnet. I run the geth HTTP JSON-RPC, with unlock option and the necessary apis accessible. When I exec the web3.eth....
7
votes
2answers
3k views

Interact with smartcontracct via web3.js: Uncaught TypeError: MyContract.at is not a function

I'm trying to interact with my smartcontract but get the error: Uncaught TypeError: MyContract.at is not a function My Code: var web3 = require('ethereum.js'); web3.setProvider(...
2
votes
1answer
349 views

Dapp Communication using smart contract written in solidity in truffle framework [duplicate]

How will two Dapps, developed using truffle framework, will communicate with the contract deployed by one Dapp ( Consider testnet using geth)?
1
vote
0answers
192 views

Truffle Dapp Development [closed]

Is there anybody who has developed the Dapp using truffle framework and ethereum testnet ? I am getting some alien errors and i am not getting the solution on internet.So i need a person who has done ...
8
votes
2answers
5k views

Get smartcontract token balance via JSON RPC

Via Geth commandline I can get my smartcontract token balance with: var mytest = eth.contract([{interface}]).at(contract address); mytest.balanceOf(eth.accounts[0]) >998 I want to present the ...
9
votes
2answers
3k views

How to create private network with preallocated amount of ETH?

I am trying to create a private network for testing purposes. What I need is: Fast generating of DAG file. Fast mining of the first block. Address with some preallocated amount of Eth. I found that ...
4
votes
1answer
489 views

Why are there missing opcodes when using the disassembler on bytecode from the blockchain?

I'm using the disassembler from go-ethereum repo which fails on about 20% of the bytecode from the blockchain with missing/unknown opcodes. The disassembler on Etherscan fails as well. Is there an ...
4
votes
1answer
968 views

Are events in a contract triggered after that particular transaction is mined?

Let's say I have an event notify() in a function called buy(). event notify(); buy(){ //... notify(); } Problem here is that my the notify watch handle is triggered only after that ...
3
votes
0answers
390 views

geth client - cannot keep it in sync

I have an Ubuntu 16.04 instance on Amazon EC2 I can do: geth console 2>> ~/geth.log instance: Geth/v1.4.3-stable/linux/go1.6.1 > Everything looks fine: > eth.blockNumber 546120 > ...
4
votes
2answers
2k views

How do I delete the geth console history?

how do I delete the geth console history ? I'm concerned with this, especially in light of this recent Mist hack : On the console you can also unlock accounts (one at a time). personal....
46
votes
3answers
21k views

How to reduce the chances of your Ethereum wallet getting hacked?

Summary The hack that occurred on May 12 2016 to steal 7,218 ethers from Patrick only affects miners where: Incoming RPC connections from the Internet on TCP port 8545 are forwarded to the machine ...
3
votes
1answer
3k views

Import private key into ethereum wallet [duplicate]

Hi I am running the Ethereum Wallet Ethereum-Wallet-win64-0-7-2. 1. I want to import an unencrypted private key without running some additional software, is this possible ? 2. Is is possible to ...
3
votes
1answer
152 views

If geth sync is interrupted (network downtime), will restartin sync from where it left off cause a corrupt chain?

I'm on Ubuntu 14.04. MSI Z97 Gaming 5 board Haswell G3258 CPU Corsair Vengeance 8GB DDR3 RAM Sapphire Radeon 390 Tri-x OC GPU X5 EVGA 1000G PSU X2 Samsung EVO 120GB SSD I'm not sure what else to add ...
3
votes
1answer
603 views

Can I delete “address” field from the ethereum key file?

I don't like that anyone who reads my encrypted ethereum JSON key file knows my address and balance. Can I delete the "address" field and still be able to import that file into geth and MyEtherWallet?
4
votes
0answers
135 views

how to sign with the Ethereum private key and derive the the r, v, s it needs for verification [duplicate]

I know this kind of questions has been asked before, I want to know the detailed procedure to sign on msgs and derive the r, v, s(the command line), and the client and environment it needs to do the ...
3
votes
0answers
1k views

Any Idea Why Geth (1.4.1-rc-4b9de75) Is Such Heavy Disk I/O At Startup?

So I am trying to figure why geth is such heavy disk I/O at startup, even after the chain is fully synced? The problem is that on a normal non-SSD hard drive it doesn't matter how fast the CPU is, ...
13
votes
1answer
4k views

How can I create a listener for new transaction with Ethereum RPC calls?

I am trying to create mini-service which would allow me to subscribe for incoming Ethereum transactions (coinbase example). I thought that in Ethereum it could be done with eth_newFilter and ...
1
vote
0answers
40 views

Trying to sync fast but get “flag provided but not defined” [duplicate]

Blockchain sync was taking forever, so I tried running get --fast after extracting keychain keys and the chaindata folder and the running get --fast. I get "flag provided but not defined". How should ...
14
votes
2answers
19k views

How to view latest block number of a geth node in the console? [duplicate]

How to get information about the state of the blockchain on a geth node? There are mentions of admin.chainSyncStatus in the documentation, but it is undefined on my 1.4.0 node. The admin.nodeInfo ...
3
votes
1answer
177 views

Backslashes being removed and unable to set Solc in windows 10

I've installed Geth on win 10 and I'm trying to link solc but I'm not sure why the backslashes are being removed? How can I get past this error? > admin.setSolc("C:\Program Files\Ethereum\solc") ...
8
votes
1answer
349 views

Check if a contract implements specific ABI using JSON-RPC

In my Python web service, I'd like to confirm if a contract supports specific ABI (certain call methods). I am running get and communicating over JSON RPC. What are steps to for this? I am guessing ...
2
votes
0answers
121 views

Blockchain taking abnormally long time to download? [duplicate]

I'm a newbie to Ethereum. I initialized the download process for the Ethereum network blockchain using geth yesterday (geth --rpc). It's been nearly 20 hours and blocks are still being imported. Is ...
1
vote
0answers
85 views

My node lags behind, and more and more so [duplicate]

A few months ago, I had no problem to synchronize my Debian node. Now, I lag behind and I cannot catch up. There are long delays between blocks Here, a gap of several hours: I0507 03:40:13.321969 ...
6
votes
1answer
9k views

How to run geth --fast on OSX

I am having problems getting Mist to sync, so would like to run geth --fast. I can not find the folder to run geth from? Do I need to install it separately, I thought it was bundled with Mist? I am ...
7
votes
1answer
5k views

How to compile .sol file from the command-line?

How do I compile a solidity file (e.g. 05_greeter.sol) from the command-line into bytecode? Without using IDE such as Mix.
5
votes
1answer
617 views

How can I execute code locally at given address?

What's the simplest way of executing piece of code at specific address of the main blockchain locally using the command-line interface? In here it's demonstrated how to play mp3 file based on the ...
3
votes
1answer
350 views

geth --exec generates: error: TypeError: Cannot access member 'input' of null

I'm trying to run this command from this post, however when I run: $ geth --exec "eth.getTransaction('0xbb8ee9866ee67277986b6f40775469c7a674810ce99dce3caff0d1117c8dcdac').input" console it gives me ...