Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
3
votes
2answers
1k views

Connection Error - Couldn't connect to ethereum node on AWS at http://xx.xxx.xx.xxx:8545

We setup ethereum node on AWS Ubuntu Server 16.04 LTS (HVM) EC2 instance and configured it in the standard way before launching the geth console using the below command: sudo geth --identity "...
3
votes
1answer
516 views

DDOS attack against Ethereum

Ethereum project has become a victime of Ddos attack, slowing down the transactions and giving priviliges to attackers to mine blocks. So instead correcting bugs in geth or parity is there any robust ...
3
votes
2answers
522 views

Verifying Modular exponentiation operation in etherum

I have Alice who should do some cryptographic operations off-chain. Then a smart contact has to verify equality by performing Modular exponentiation operation. I attached an image of the off-chain ...
1
vote
1answer
938 views

What happens if the block time changes to 5 seconds?

Related to this and this. The difficulty adjustment algorithm is: block_diff = parent_diff + parent_diff // 2048 * max(1 - (block_timestamp - parent_timestamp) // 10, -99) + int(...
7
votes
2answers
4k views

How to switch from Morden to Ropsten?

I installed a v.0.8.7 client and tried switching to Ropsten, following these instructions. Namely, I typed in: dyn906-29:~ sam$ geth -- datadir /Users/sam/Library/Ethereum/testnet/geth/chaindata/ ...
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?
5
votes
1answer
820 views

Why is fast sync not working with geth 1.1?

When I run geth --fast I get: Incorrect Usage. geth [global options] command [command options] [arguments...] VERSION: 1.1.0 [...] flag provided but not defined: -fast How do I fix this?
5
votes
3answers
2k views

Why is my Greeter contract not mined on --testnet?

I'm working on the contracts tutorial. Here's the code (including contract): var greeterSource = 'contract mortal { address owner; function mortal() { owner = msg.sender; } function kill() { if (msg....
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 ...
4
votes
1answer
5k views

How can I import geth accounts into eth?

I had two accounts under ~/.ethereum/keystore when I used geth a while ago. I got a new PC, recompiled only the C++ version and I can't see my two accounts in eth. web3.admin.eth.allAccounts() ...
3
votes
1answer
771 views

How to use a customised Data Directory in Dev mode(private blockchain)

I have created the data directory in /home/ubuntu/ethchain. Then I created two accounts in this directory using the command (ran the command twice) geth -datadir "/home/ubuntu/ethchain" -dev account ...
2
votes
3answers
2k views

How to receive ether in wallet address and forward to another address on successful deposit?

I want to implement a feature in which users will send ether to wallet address(0x123) and on successful deposit, it needs to automatically transfer to my cold wallet(0x983). I can able to achieve ...
2
votes
1answer
811 views

where are solidity contracts stored?

I am using geth for running my blockchain node. I wrote my contract in the console itself and it got deployed and mined perfectly. I could invoke the functions of the contract in the terminal. I want ...
2
votes
1answer
2k views

What does the difficulty value represent in a Geth genesis block config?

If you want to start a private net with Geth, then you need to create a Genesis Block. You specify the attributes of this block through a config file. One of these configurations is 'difficulty'. An ...
2
votes
1answer
406 views

smart contract variable storage

Referring to this post, the value stored in variables of smart contract, can someone (not authorized) read it. Say I store "secret code" for each user on a map. Contract needs this value for whatever ...
2
votes
1answer
1k views

Minimize mining times for private blockchain

a title is pretty straightforward. I need to set up miners on a private blockchain to mine blocks as fast as possible. I have compiled a go-ethereum client with a constant value of difficulty but ...
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 ...
2
votes
1answer
1k views

How to manually switch Mist to Ropsten?

I am new to Ethereum. I have the v.0.8.7 client. It is fully synchronized with the blockchain (see screenshot below: last block seen a minute ago). I am basing myself on this post. If I understood ...
2
votes
1answer
664 views

Why did the Fast sync stop at 2.4 million blocks when updating my Geth?

My goal is to be able to access my Mist Wallet on my iMac (which I installed 8 months ago, and bought some Ether on then). I deleted my Blockchain and ran Geth through the Terminal, with this: ./geth -...
35
votes
1answer
26k views

What are ipc and rpc?

The question is quite simple , I have only basic Idea of RPC but none of IPC. AFAIK, if I connect to ethereum node via ipc then the my geth should be running on same machine. and If I connect via ...
16
votes
3answers
26k views

How to set up a Private network and connect peers in geth?

I am trying to setup a private network and trying to connect peers. Currently I'm trying it on my laptop and desktop (both of them are connected to different internet). I run the below command in ...
12
votes
7answers
14k views

How to add peers on a private network?

I have created a private blockchain on two different machines. Now I want these nodes to connect with each other as "peers". I am using geth console. I have tried the following command: > admin....
16
votes
6answers
5k 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
9
votes
4answers
3k views

Geth RPC connections securely

I have read everywhere that exposing personal over rpc is dangerous and is vulnerable. The question is HOW? Is it possible for anyone to send transactions to my geth console, if my ipaddress and port ...
33
votes
6answers
34k views

How to check my sync status on Geth 1.5.5, Raspberry Pi 3

Have a Geth 1.5.5 node running on a raspberry pi 3. When I type in sudo systemctl status geth I'll get ever changing time and block information. Neat, but how do I know when I am synced up? Is ...
17
votes
2answers
8k views

web3.eth.sendRawTransaction: cannot unmarshal hex string without 0x prefix

When I call sendRawTransaction, I got "[Error: invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go value of type hexutil.Bytes]" I think all of params have "0x" ...
17
votes
2answers
11k 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 ...
15
votes
4answers
21k views

unable to connect Ethereum node even RPC port: 8545 is open

I have created my private Ethereum blockchain network. From different servers I am able to connected and added into the network as peer without any problem. The way I run my server: geth --...
5
votes
1answer
5k views

The ERC-20 Token Transfer might have Failed (ErrCode: unable to locate corresponding Transfer event log), check with sender

EtherScan.io is showing error: The ERC-20 Token Transfer might have Failed (ErrCode: unable to locate corresponding Transfer event log), check with sender. Transactions are successful but users are ...
4
votes
3answers
1k views

Will be a ring signature scheme possible to implement at Ethereum?

It's been quite a few days I'm wondering if a Ring Signature Scheme (like Monero (XMR) has) can be implemented on Ethereum blockchains. As far as I know, that will be so nice in order to increase ...
23
votes
6answers
32k views

How do you stop a running geth node?

I can not figure out how to stop a running geth node without killing the process. I tried to lookup geth help but there is no mention of stopping, halting or any shutdown command. How to shutdown ...
19
votes
4answers
37k views

How can I find my `chaindata` folder?

Someone referred me to the chaindata folder to troubleshoot a problem I am having with Ethereum-Wallet/Mist. How can I find it?
12
votes
3answers
2k views

is there an easy way to get the full state of a contract?

I'm developing a quite complex contract with many state variables of all kinds. (mappings, arrays, uint, strings, bytes, etc). For testing, it would be very useful to get a JSON (or similar) with the ...
7
votes
2answers
5k views

How can I run scripted geth commands with specified command line parameters?

I have a contract running on the testnet, and every time I need to call a function, after opening Geth I have to type (or paste): primary = eth.accounts[0]; personal.unlockAccount(primary, '...
6
votes
5answers
4k views

How many concurrent requests can an Ethereum node handle?

This is a fairly simple question which (I suspect) has a more complex answer. I would like to find out that answer now rather than the hard way down the line. How many concurrent requests can an ...
4
votes
3answers
4k views

Where can I find the source code for Quorum, the permissioned implementation of Ethereum supporting data privacy?

Where can I find the source code for Quorum, the permissioned Go implementation of Ethereum supporting data privacy?
22
votes
3answers
7k views

What is knownStates?

I am using geth client (VERSION: 1.4.12-stable-421df866) to sync to the Ethereum testnet. To check the status of the sync, I ran web3.eth.syncing in the geth console. This is the output I see: { ...
12
votes
1answer
7k views

Defining constructors as functions with the same name as the contract is deprecated. Use “constructor(…) { … }” instead [duplicate]

The warning is from running sample code from Mastering Ethereum, I get the above error and it says Use "constructor(...) { ... }" instead. function Migrations() public {
11
votes
2answers
10k views

Invalid sender error on private chain

I created a transaction in Go, signed it with a EIP155Signer signer, but when I try to publish the transaction through the Go client to the private blockchain, I get the error Invalid sender. Any idea ...
9
votes
2answers
52k 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 ...
8
votes
2answers
10k views

What is the bootnode command in the go-ethereum documentation?

In the go-ethereum docs there is reference to a bootnode command: Creating the rendezvous point With all nodes that you want to run initialized to the desired genesis state, you'll need to ...
8
votes
1answer
1k views

What are the files in my go-ethereum configuration directory?

When I look into my go-ethereum (geth) configuration directory, I see the following files and directories: $ ls -alF ~/.ethereum/ total 176 drwxr-xr-x 8 pi pi 4096 Jan 20 07:19 ./ drwxr-xr-x 17 ...
7
votes
1answer
4k views

Executing a Smart Contract in a Mobile App

I am new to the world of Blockchain and Ethereum has indeed become a second name for open source Blockchain. Right now I am trying to grasp the concepts and there are really many wonderful blogs but ...
7
votes
3answers
26k views

Sent ether from wallet to bittrex, 12 hours later no balance on bittrex [closed]

So I made an account on bittrex and I created a hex address so I could transfer over my ether, I went into my wallet and sent 0.1 ether to bittrex, 12 hours later my bittrex account still shows a 0 ...
4
votes
1answer
350 views

Why exposing the personal API is unsafe?

From what I am reading in various places such as here ,here or here, it is not safe to expose the personal api to the front-end Dapp via RPC. Hence asking the users to run geth --rpc --rpcapi "eth,...
3
votes
1answer
3k views

How to run your own bootstrap node in Ethereum?

How do I run my own bootstrap node? I mean how do I make my geth only provide peers information not the blockchain. And also how does geth know whether a node is a bootstrap node or regular node? Becz ...
2
votes
2answers
7k views

Generate private key and address using web3j

How can i generate private key and address using web3j instead of creating keystore json file
14
votes
1answer
16k views

How to enable and mine Testnet (Morden)?

I have installed Ethereum Wallet on Ubuntu 14.04. After the installation was completed, I realized that my Testnet (Morden) mode was disabled. Looking in the Develop -> Network menu, the Main network ...
9
votes
1answer
1k views

How can I stop the block gas limit on a private chain dropping to the public chain default?

I've got a little private chain running which occasionally runs some rather labour-intensive transactions. I was able to set the initial block gas limit using the "gasLimit" parameter in genesis.json ...
9
votes
1answer
2k views

Is it possible to call debug_traceTransaction from nodejs?

Following answer (https://ethereum.stackexchange.com/a/9437/4575) [ 1 ] guide us to call debug_trace through using geth: As documented in debug.traceTransaction(...), you can only access this API ...

1 2 3
4
5
14