Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
8
votes
1answer
228 views

Contract only modifier

I am writing a smart contract which will contain an escrow service. The escrow is to be a smart contract and eventually I want to use it to transfer meta tokens from the escrows address to another ...
2
votes
1answer
96 views

Geth console does not seem to be reading the correct balance

I'm running a geth console on Windows with the following command: geth --fast --cache=512 console I've been playing around with Ethereum for a little bit, and want to do a little more. I want to ...
9
votes
2answers
2k 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....
4
votes
1answer
754 views

Can Mist communicate (via IPC) with a geth instance running by other user?

I'm aware that Mist cannot connect to a geth node in another computer, but how about to a geth instance running in the same computer but under a different user? My goal would be to have Alice and Bob ...
12
votes
5answers
15k views

Invalid JSON RPC response: “” In Browser-Solidity

I'd like to connect private geth node from browser-solidity, however it returned the error Invalid JSON RPC response: "". Please check the following picture for details. Could you tell me how to ...
3
votes
1answer
3k views

Cannot access geth by JSON-RPC. It returns {“jsonrpc”:“2.0”,“error”:{“code”:-32600,“message”:“EOF”}}

I've tried to access geth by rpc. $ geth --dev --datadir mydir --rpc --rpcaddr "localhost" --rpcport "8545" --rpccorsdomain "*" console However it has returned the error. Could you tell me how to ...
4
votes
2answers
3k views

Missing trie node only on some blocks > is it possible to resync a specific Block?

I'm trying to trace some transactions and I'm getting the "Missing trie node" warning only on some specific blocks, but not on others I've read a solution that suggests to delete the chaindata folder ...
7
votes
2answers
197 views

What are the relationships between Geth's different development branches?

While looking at this question I realised that I'm not too clued up on how Geth's different branches relate to each other. For example, the PPA pushes out v1.5.0-unstable, which doesn't contain the ...
2
votes
1answer
2k views

sending string parameter value to solidity method

I am trying to send string parameter value to a solidity method but i am not able to get the return value. this is my solidity code : contract Entity{ event Entities(string name); struct ...
3
votes
1answer
934 views

The method eth_syncing does not exist\/is not available

I am starting geth like the below command Geth "--ipcdisable --rpc --fast --datadir="path" --rpcapi personal" I want to get the blockchain synchronization details from geth. So I issue the ...
5
votes
1answer
116 views

Testnet tx reappears after 90 blocks

At some point, the local Geth node reported tx 2e7a57c55a7cb28d0e233d7745210dba93c09f14c5df4e879db1a530a79a842a in the block 1369316 on testnet. It then disappeared from the chain at some point during ...
1
vote
2answers
1k views

Not able to assign ethers to account in private chain

I am running a testnet with init property for genesis block i am able to create an account and its working fine only problem is that i am not able to assign any pre ethers to an account which i was ...
9
votes
4answers
3k views

Optimal way of waiting for transactions to be mined in geth

I'm currently checking if a transaction has been mined using the following function (using web3.js): function waitForTx(tx_hash) { var result = null; // This is not really efficient ...
11
votes
2answers
2k views

Is it possible to preload contracts in the genesis block?

Here's the setup I'm trying to use: A genesis.json with the alloc field set to include code. "alloc": { "0000000000000000000000000000000000000001": { "code": "...
1
vote
0answers
58 views

Trouble importing jaxxwallet into Mist

I cant´t import the keyfile from jaxx via geth into Mist. I know there are good answers here already. And i tried to solve it myself but it always says:" Fatal: keyfile must be given as argument". I`m ...
1
vote
1answer
300 views

Faster deployment of contracts using geth

I'm working with a fairly large contract (~12 KB) on a private test net and deployment times are quite large (not mining the contract, but copying the interface and creating the deployment transaction ...
4
votes
0answers
309 views

How to add additional parameters to Ethereum Wallet?

I wish to add a few more fields to the wallet file & save it in the keystore so that I can manage them better. For instance, consider the following: { "address": "...
3
votes
2answers
1k views

How to parse input data in a contract creation transaction?

When we create a contract, we always send a transaction to a empty account and with contract bytecode in input data. But sometime we need to call the constructor. So some params must be sent with ...
3
votes
1answer
492 views

JSON-RPC command to get blockchain synchronization status

Is there some json-rpc command, so that I can get the blockchain synchronization status from geth. I am trying to connect to the --testnet using get. Its taking forever to connect to the testnet, are ...
1
vote
1answer
95 views

geth obscure behavior

I thought that I had an error similar to this one, that the default account was not set (I was getting method undefined errors for all methods called in my contract).I've set it both in the geth ...
1
vote
0answers
291 views

How to parse the event data [duplicate]

The event logs can be obtain via getReceipt for specific transaction. However, the data is not friendly. How can i parse those topics , data and the event name ? the receipt of a specific ...
2
votes
1answer
1k views

Node script to sweep accounts

I have a rather large list of accounts (HD wallets) I want to sweep into one. They've all been imported into geth, and all have the same password. I wrote a script to do this in node but get this ...
3
votes
1answer
209 views

withdrawal function not working

I am writing a contract which allows a user to deposit ether into it but when it is time to withdraw only the owner can process the withdrawals and gets to decide the amount of ether taken from your ...
8
votes
2answers
2k views

Light clients for android

I am trying to develop an android wallet using Ethereum go and I ran the DroidGeth from this link. I tried to ran ethereum on the testnet, but its taking for ever to download the blockchain. How can ...
5
votes
1answer
2k views

How to add more Ether on a private blockchain

In geth 1.5 the --genesis option has been removed. What do I use instead to add ether to my account?
0
votes
1answer
74 views

Connecting 2 nodes [duplicate]

Unable to connect 2 nodes ,it was working fine . When i run the admin.addPeer("enode info of the 2 node") net.peerCount turns 1 for some time and returns 0 again . Any idea whats going wrong ?
2
votes
2answers
902 views

nethereum - transactions are ignored or disappearing?

I'm trying to create a transaction with Nethereum as below but I cant see the result anywhere. I've checked the wallet and queried from custom client. var proposalsFunction = contract.GetFunction("...
2
votes
1answer
2k views

Problem with ether mining, stuck in DAG generation loop

i am completely new to ether mining, recently attempted to mine some ether using my desktop. I came across a comprehensive guide from this link: https://www.cryptocompare.com/mining/guides/how-to-mine-...
3
votes
1answer
94 views

One contract to another contract interaction analysis

I tried contract interaction using following code: contract C2 { function aFunction(uint aParameter) returns(uint) { return (10); } } contract C1 { function call (uint aParameter) ...
2
votes
1answer
409 views

Create IPC Client

I just recently updated my local repo of go-ethereum to commit 8ec6ccc54d1da7bbaa87bd0b489b1778ea729c90 I previously used the IPC Client like this in my code: var client rpc.Client if len(...
2
votes
1answer
174 views

Compiling and deploying Registrar.sol in private network

I created a contract using go-ethereum console, I want to deploy registrar in private network. I found out a way to compile and deploy in https://github.com/ethereum/dapp-bin/tree/master/registrar ...
2
votes
1answer
352 views

Geth IPC endpoint unavailable after upgrading from 1.3.5 to 1.4.10

This question is somewhat related to this one. Following the suggestion in the comments from this one, I upgraded geth to v1.4.10 and launched it and launched it on a private net: geth --datadir "...
2
votes
2answers
437 views

How Come An Address Created On ETH Appears On ETC?

Just trying to get my head around this. I thought we forked? How is it that a transaction made in: geth --fast console 2>>~/geth.log also appears in: geth --fast --oppose-hard-fork console ...
1
vote
1answer
875 views

Geth 1.4.10 invalid command line parameters

I've upgraded my geth client to version 1.4.10-stable-5f55d95a (from 1.3.5) and now it won't run with the following command line arguments (the documentation is lackluster when it comes to describing ...
2
votes
1answer
371 views

How are addresses created if deploying a new bound contract

How exactly are the contract addresses created that are returned by the DeployNewXYZ() method a bound contracts? Is it possible that, if the method is called rapidly consecutively, the same address is ...
2
votes
1answer
216 views

Geth bug when working with address arrays?

I have the following contract that handles address arrays: contract C { address[] goodAddr; address[] badAddr; function initAddr() constant { if(goodAddr.length == 0) { ...
2
votes
1answer
91 views

How to automaticlly find the contract?

I created a private network using go-ethereum with 2 clien which are VMs(ubuntu 14.04). On VM1, I created a contract: N1greeterSource ='contract mortal { address owner; function mortal() { owner = ...
10
votes
4answers
7k views

Get raw transaction from hash

I wonder if there is an equivalent to bitcoind's getrawtransaction, i.e., a command to dump a raw transaction in hex format, given its hash id. I am working preferably in geth.
1
vote
1answer
1k views

How can I get contract public values with nethereum as the wallet does?

I'm fiddling around with this tutorial. After deploying and setting up the contract within the page, I created a proposal from the ethereum wallet which I could see after a few blocks. The read from ...
1
vote
1answer
1k views

Not able to add peers on geth private testnet

I have built geth from source code. Everything is fine but, when I am running a different node on same system and try to add a peer to the first one with the admin.addPeer method, the method is ...
2
votes
1answer
278 views

How to let Dapp connect to network from Mist browser (ver 0.8) without starting geth with rpc options manually?

After Mist 0.8, I made the following change on my Dapp so that it uses existing web3 connection if connected via Mist. https://github.com/makoto/blockparty/commit/...
4
votes
1answer
1k views

Syncing slow to a crawl (2048 blocks in 2 hours)

I had no issues before, but my syncing has gotten incredibly slow with geth. My system time and date are good (set by ntp) so that shouldn't be the issue and my Internet connexion works fine. It took ...
3
votes
1answer
1k views

How does (current block number - block number of a given transaction) gives the confirmation count?

I found a discussion here How do I get the number of confirmations on a transaction in geth or any other tool? that give the solution as: web3.eth.blockNumber-web3.eth.getTransaction(<txhash>)....
1
vote
0answers
60 views

Cannot vote on private chain. using dao tutorial

I'm trying to do a little extra with the ethereum dao tutorial on a private chain with several nodes having different etherbases. What I did is as follows, I created the contract, sent it some ...
1
vote
3answers
460 views

Synchronisation failed on private ethereum network

I created a private network using go-ethereum with 2 clien which are VMs(ubuntu 14.04). On VM1 (IP:192.168.217.131):,my command to create private network: ./geth --genesis private.json --port "...
1
vote
0answers
170 views

Convert DAO tokens to ether in ethereum wallet [duplicate]

I have DAO tokens which I can see on THE DAO account balance page. I'm hoping someone can explain in a step by step procedure how to take my tokens, convert and change them into effect her and deposit ...
15
votes
2answers
6k views

How to conditionally send ethers to another account post-hard-fork to protect yourself from replay attacks

The DAO contract was attacked on 17th June 2016 where the attacker drained about USD 50 million worth of ethers using a recursive call vulnerability in The DAO contract code. The attacker drained ...
6
votes
2answers
2k views

Restart Geth from another process

I want to make a script to restart my server and it's prerequisites, which one of them is geth. I don't see a command line to restart it. I want something like geth --restart --xxxx --yyyyy Does ...
1
vote
1answer
186 views

In simple ether transfer type transaction, does the balance of the sending address gets debited instantly?

As per What’s the role of the EVM in a plain ether transfer between Externally Owned Accounts?, one would expect that the sending account will get debited right after the transfer call. Yet, that does ...
6
votes
1answer
2k views

GETH is always stuck after attempting to sync

I want to mine Ether and I've been trying to sync blockchains for days. I've tried using geth --fast command and it always stuck as in the picture. My computer is running 64 bit Windows 10 with ...

1
99 100
101
102 103
110