Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
3
votes
0answers
59 views

Getting up to sync with the network [duplicate]

At this point I've given up any hope. I've tried syncing with geth --fast --cache=1024. I have ~99% synchronization and the remaining ~1% (the last 1000-2000 blocks) is taking forever. With Parity ...
4
votes
1answer
1k views

How do I set up 2 private mining nodes on the same computer?

I am trying to setup a private ethereum network. I started two nodes in the same machine (Windows 7) in two different ports. I am unable to add one node as the peer of the other node. What I have ...
2
votes
0answers
67 views

Use testnet chain config when starting node

I'm following the instructions for creating an Android mobile client from here. I have successfully started a node but I'm not sure which chain I'm connected to. My guess is its mainnet instead of ...
2
votes
1answer
179 views

Ethereum redownloading entire blockchain after using geth [duplicate]

As you can see from the image above Ethereum is redownloading the entire blockchain despite it being present in ".ethereum/chaindata". This has happened after using Geth for the first time and ...
4
votes
0answers
194 views

Whisper protocol: Version conflict between geth and ethereumj

I am trying to use whisper in a permissioned network with both geth and ethereumj nodes. The Java nodes detect the capability shh version 2 of their geth peers, but only check for nodes with ...
3
votes
0answers
146 views

Geth bus fatal error

My geth node (v1.4.18 on testnet) has unexpectedly go down throwing an error like this: I1028 04:46:29.305710 ethash.go:259] Generating DAG for epoch 44 (size 1442839168) (...
3
votes
1answer
349 views

web3.personal.signAndSendTransaction as a Contract method?

As web3.personal.signAndSendTransaction method, Is there any such method available for Contract functions? for example: MyContract.storeName.signAndSendTransaction("name", {from:web3.eth.accounts[...
3
votes
2answers
115 views

Can't get this contract to work

pragma solidity ^0.4.0; contract DataStore { struct DataModel { uint id; bytes32 string1; bytes32 string2; bytes32 string3; uint actorId; bytes32 ...
4
votes
1answer
217 views

Contract storage not changing on calling function

contract SimpleStorage { mapping(bytes32 => string) storedData; function set(bytes32 key, string value) { storedData[key] = value; } function get(bytes32 key) constant ...
4
votes
2answers
845 views

Using Rust to call Geth's RPC interface

Given the code below, geth returns: {"jsonrpc":"2.0","id":"1","error":{"code":-32602,"message": "json: cannot unmarshal object into Go value of type []interface {}"}} The code connects to geth, but ...
3
votes
0answers
82 views

How I will know if synchronization with testnet is finished [duplicate]

How I will come to know that synchronization is complete. Also what is potential rewrite attack? I am using geth --testnet --fast --cache=1024 last couple of results I1026 08:43:50.011852 eth/...
7
votes
2answers
780 views

Is there any limitation for the number of the return values from Solidity functions?

Answer of this question (https://ethereum.stackexchange.com/a/3590/4575) says that: "I am not allowed to return dynamic arrays from Solidity functions yet." On the other hand, Solidity supports ...
1
vote
0answers
156 views

Issue contract outside of Geth (using Node.js) returns empty error

I want to issue a contract with constructor parameters, without running a Geth node. Technically, I run a Geth node with a websocket proxy: Light client (Node.js) <-- WebSocket --> Proxy (Node.js, ...
3
votes
0answers
191 views

Error installing parity

I had worked with geth, but getting lots of errors like last 1000+ blocks not syncing, so I have decided to switch to parity. I was following One-line Binary Installer, but was hit by: /bin/sh: 1: ...
11
votes
1answer
2k views

Does “delete” on mapping really frees the memory space?

I have the following mapping(uint => Foo[]) data structure. I have mapped 10 unique ids with 10 Foo structs, where each Foo is an arraylist of 10 items. Step 1: for(int i = 0; i < 10; i++) ...
6
votes
2answers
1k views

No Space Left on device error

I am absolutely new to this stuff, please help on below error, shall be thankful ubuntu@ip-172-31-18-75:~$ geth --testnet I1025 10:12:44.731831 ethdb/database.go:83] Alloted 128MB cache and 1024 ...
1
vote
0answers
154 views

Geth does nothing but listening

I want to setup a simple testnet, and mind some ether to deploy my first contract so I follow the official geth tutorial, but I'm stuck at the "run" part and the instructions don't do what I expect. ...
4
votes
2answers
159 views

Upgrading geth after EIP150 Hardfork

Due to the recent EIP150 Hardfork in Ethereum my Geth node needed an upgrade from v1.4.10 to v1.4.18: cd ethereum wget "https://github.com/ethereum/go-ethereum/releases/download/v1.4.18/geth-linux-...
3
votes
1answer
52 views

RPC: Asking for TX info while blockchain still not synced

I am wondering whether geth looks inside the network to search for the Tx. Or is it doing everything locally (i.e. looks inside blockchain on disk)? For example, consider this UseCase: 1) I have ...
1
vote
0answers
304 views

How can I setup up Ethereum Wallet to launch geth with flags for ethminer?

I see that Ethereum Wallet uses its own geth.exe binary which it looks for in %AppData%\Roaming\Ethereum Wallet\binaries\Geth\unpacked, on Windows. It seems this is only one of the processes that are ...
1
vote
1answer
908 views

web3 sendTransaction returns tx but getTransaction retuns undefined when Geth is restarted

js code: const Web3 = require('web3'); const web3 = new Web3(); const {eth, personal} = web3; web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); personal.unlockAccount(eth....
6
votes
1answer
1k views

Bad block, gas used error, Synchronisation failed

I'm new to ETH. Just downloaded Mist 0.8.6 + Geth 1.4.18 and started geth.exe with these parameters: geth --datadir C:\TMP\data --fast --cache=1024 --jitvm --jitcache 128 In Mist I saw a sync to 100%...
4
votes
1answer
794 views

How to return dynamic sized array's original address on the memory of Solidity?

On the following source code, memOffset returns local values such as 96, 128 as the address value. How could I make it return the original address that is located on the memory, is it possible? After ...
2
votes
1answer
121 views

Ethereum wallet synced but will not close

I am running xtogo gui on ubuntu vps. The blockchain has synced. However, when I try to deploy a contract, the window says that the gas cannot be computed, because the account needs at least 1 eth. ...
5
votes
1answer
538 views

How to replay a transaction on classic?

I have looked to split and sell my etc and have successfully split with test transactions replaying on classic, however the main transaction has not replayed for 24 hours and I would like to force a ...
4
votes
1answer
2k views

Node's IP exposed

I've run an Ethereum full node using Geth. I want to know if my public IP is exposed? Could hackers target my machine through the Internet?
4
votes
1answer
213 views

Is it possible to get an address of a struct in the Library or Contract without using mapping?

[Q] I was wondering is it possible to get an address of a struct on the memory space? Inside initialise() function after the Node object creation, I want to get is address if it is possible. Since ...
3
votes
0answers
559 views

Private network with 2 servers on scaleway

first of all thank you for the great discussions and solution that I've found here. I'm trying to create a private ethereum network to which I want to access with 2 different servers. I am able to ...
8
votes
1answer
656 views

Will I be able to get past contract events through rpc if I use geth --fast?

Or in other words, will geth --fast download the events logs?
12
votes
2answers
5k views

Calling debug_traceTransaction from web3 API

I want to use debug.traceTransaction to get internal transactions from NodeJS using web3 API. I'm using web3 0.17 beta and I don't see any debug_traceTransaction on the code. Am I missing something or ...
3
votes
2answers
196 views

What is the easiest way to check the storage size of the full state DB?

What is the easiest way to check the current size of the ethereum blockchain? I'm thinking it would be: cd <datadir> du -sh chaindata Just would like to confirm.
5
votes
1answer
528 views

return (bytes32,bytes32) , returns actual transaction address instead of the real data

I have attached my contract, which works fine on populus and compiles on geth. It is a simple source code: Test() function appends data into my linkedlist that is defined in my library. And get() ...
3
votes
1answer
2k views

Ethereum wallet with running geth

I was trying to use the running geth, i used the wallet app to connect to this. nonetheless, i cannot seem to get the wallet to use the running instance of geth, even though i have the running ...
3
votes
1answer
291 views

Having trouble syncing testnet post HF

I'm having issues syncing my geth node to the Morden testnet after the recent protocol change. Everything was working fine on Monday - today I downloaded geth-1.4.18 and attempted to sync but any ...
3
votes
1answer
3k views

How to configure go-ethereum? (Config File)

I setup an exchange with ethereum, I have installed ethereum as documented here. But I can't find config file of the go-ethereum client, in bitcoin core it's ./bitcoin/bitcoin.conf Because i wanted ...
2
votes
1answer
437 views

Setting up a private network with one node per VM with TestRPC?

I wonder if I can set up a private test network with 4 nodes (4 Linux VMs) on the same network with testRPC. TestRPC is really easy to use (create a blockchain, no need of mining etc etc) when ...
5
votes
1answer
817 views

geth: can not resend transaction - transaction not found

I'm trying to resend a transaction unrecognized by network with increased gas price: tx = eth.pendingTransactions[0] eth.resend(tx, web3.toWei(0.5, "szabo")) What I'm getting is: Transaction ...
2
votes
1answer
1k views

Any idea why geth --fast is taking so much CPU *AFTER* sync is done

I'm running geth 1.4.17-stable. Also running Mist 0.8.6. While geth finished fast syncing up a few hours ago, it's still eating away at my laptop's CPU. Note I'm not trying to mine. Is that normal ...
2
votes
0answers
77 views

Multiple arguments and return params

Sorry for a newbie question. I'm designing a smart contract wherein I need to send in many( around 50) arguments to a setter method and return a list of same number of arguments in a getter. So ...
2
votes
1answer
821 views

Access contract by address, without knowing implementation

I want to access and interact with a deployed contract. My restriction: Knowing the API (functions, fields), but not the implementation. I was looking at the Ethereum documentation "Accessing ...
17
votes
1answer
5k views

What is the difference between testRPC and geth?

I wonder what is the difference between testRPC and geth (on private network) because, they both can create: blockchains nodes accounts The "only" difference I see, is that the testRPC has almost ...
9
votes
1answer
2k views

RPC error “invalid or missing value for params” when calling contract constant void functions

My contract has a function defined like this: {"constant":true,"inputs":[],"name":"queryNumEscrows","outputs": [{"name":"","type":"uint256"}],"payable":false,"type":"function"} Having no inputs. Its ...
4
votes
1answer
463 views

All transactions sent from Mist failing

I'm brand new to Ethereum, and come from the Bitcoin world. I installed geth and Mist today (0.8.5, 64-bit builds for Windows), and successfully sent some Ethereum to my Etherbase account from an ...
1
vote
0answers
29 views

How to I update Mist [duplicate]

I would like to update Mist to the latest version. In the github GitHub page i ve found the latest Windows installer but there is no updater. How do I go about updating Mist?
3
votes
1answer
929 views

Deploy a contract from Solidity Browser or geth on an external node(connected into private ethereum blockchain)

I am trying to deploy a Contract from Solidity browser || geth. On my server machine, inside solidity browser || geth I am able to deploy a contract. But from my external node, which is connected into ...
1
vote
1answer
118 views

Need help in setting up ethereum blockchain

Sorry for a newbie question. I am learning etheream and would like to know if it's possible to setup ethereum blockchain where tokens represent database records and not currrency for e.g. user ...
3
votes
2answers
775 views

Using home brew to install ethereum but it keeps returning a make error

I am using home brew to install ethereum but it keeps returning this error. Is there anyway I can fix it?
4
votes
1answer
440 views

web3 api in eth

Since, I am not able to use the go client in the multi node mode due to a bug (Multi node private local ethereum and send transaction), I tried to use the c++ client eth. Tried using the go client ...
6
votes
2answers
3k views

how to make the list of peers permanent on a private network

I have joined a private network and it works fine when I add the peers with admin.addPeer but I have to add the peers every time I launch geth. How can I make the list of peers permanent?
2
votes
1answer
122 views

Clarification on ethereum block number

When we are searching to update the balance on ethereum we got this link Click here. But now in our server the latest block number is above 1900000 but till now we didn't get update the balance. When ...

1
86 87
88
89 90
101