Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
4
votes
1answer
4k views

How to use miner.start(2) from javascript

Refering to "Common useful JavaScript snippets for geth" Got Following example to run miner from javascript: Mine only when there are transactions! var mining_threads = 1 function ...
4
votes
2answers
299 views

geth and macOS Sierra Beta issues

Has anybody had luck running geth on macOS sierra beta? I get constant crashes after upgrading and trying it out. Each time in the crash log the reason seems to be different. Here is one example: ...
1
vote
1answer
844 views

Geth rpc unlock account [duplicate]

a bit of overview: I'm in the process of learning ethereum, and am using geth (1.4.10). following some examples, I am able to launch a web page using web3. my directives in geth was to start it with ...
7
votes
2answers
1k views

Using eth_newFilter

referenced by https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newFilter. I am confused by topic parameter. Could give some examples? some information referenced by the following,but I still do not ...
1
vote
2answers
1k views

Hosting Ethereum on Digital Ocean

I am not quite sure whether this is right place to ask this question but let's carry it forward. I wanted to host Ethereum on Digital ocean. Has anyone ever tried that? Any HowTos on hosting ethereum ...
4
votes
0answers
452 views

geth throwing header invalid error all the time

lately my ethereum node is repeatedly throwing this error: E0811 16:44:00.646126 core/blockchain.go:1128] uncle[0](30508438) header invalid: nonce for #2004585 [...
1
vote
0answers
135 views

chaindata data structure [duplicate]

What are the schema and data stored in geth's chaindata directory? There are blockchain data under datadir/chaindata in geth. What is kind of data is stored in LevelDB? What are the actual key and ...
13
votes
3answers
937 views

Why do constant state variables get initialised every time?

I was working with constant variables in a contract contract X{ uint constant var1=now; uint var2=now; function checkConstant() returns(uint,uint){ return (var1,var2); }} I was wondered each ...
4
votes
1answer
1k views

Ethereum event log removed field

In the JSORRPC wiki page, we can obtain a log with these format For filters created with eth_newFilter logs are objects with following params: removed: TAG - true when the log was removed, due to a ...
7
votes
2answers
574 views

Custom Exceptions in Solidity

In solidity, is there any way to throw custom Exceptions along with error messages? I am using throw to prevent further execution of my code but this always results in invalid JUMP(in geth console, ...
2
votes
2answers
252 views

Does anyone know how I can get this to sync to the network - no blocks downloading

I have been trying to get my Mist application to sync to the Ethereum network. I tried running geth directly also, screen shots below. Blockchain not syncing
2
votes
0answers
76 views

how can we get ledger way of Debits/Credits happened on blockchain

i am using geth and want to have a list of all the transactions (debits/credits) happened on my privatenet. like the way ledger is being used. is there any way to do this? and how to get all the ...
3
votes
2answers
508 views

How to maintain/administer nodes of a private network?

I might be wrong here, but I'm really trying to find out how to effectively control admission to a private Blockchain instance. Sure, I can put the IP + PubKey into the static-nodes.js or trusted-...
2
votes
1answer
131 views

Pending Transactions after crash - recovery?

I have a question, is it possible to recover somehow pending transactions if the geth node crash ? Right now I assume that there is now recovery mechanism. In this case if transactions enter the ...
3
votes
2answers
1k views

How can I have two contracts in truffle test

I'm using a contract to manage my contracts, and am not sure how to write a test. The problem I'm facing is that I can't see how to get my coolerDb contract address. This is my test.js contract('...
3
votes
0answers
166 views

How can i detect the blockchain fork event?

How should I handle blockchain forks in my DApp? In this question, a module named reflux-tx is introduced, which can help to trace the transaction state and watch for the blockchain fork event. But ...
4
votes
1answer
571 views

Details of mining

When i write miner.start() on my testnet geth node, it shows Starting mining operation (CPU=4 TOT=6). What is the meaning of "CPU = 4 , TOT =6" and what does the changing value of these parameter ...
1
vote
0answers
108 views

Specification of PC for being a miner [duplicate]

Is there any specific software/hardware requirement for being a: 1- Miner 2- Node on a public network or any system configuration will work? Are there any recommendations? What specification most ...
8
votes
1answer
205 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
92 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 ...
8
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
725 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 ...
11
votes
5answers
14k 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
2k 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
180 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
807 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
110 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 ...
7
votes
4answers
2k 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
1k 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
55 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
294 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
305 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
894 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
381 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
90 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
246 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
139 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
1k 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
72 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
836 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
1k 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
87 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
396 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
165 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
330 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 "...

1
88 89
90
91 92
100