Questions tagged [go-ethereum]

go-ethereum, also known as geth, is a Go implementation of the Ethereum protocol. Use this tag for questions about creating or writing code for a geth-based Ethereum service.

go-ethereum is the most widely used client implementation for Ethereum.

Command Line Options

Install on Mac

Install brew...

brew update
brew upgrade

Install Ethereum

brew tap ethereum/ethereum
brew install ethereum

Install on Windows

Download the latest stable binary, extract it, download the zip file, extract geth.exe from zip, open a command terminal and type:

chdir <path to extracted binary>
open geth.exe

Install on Linux

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
430 questions
0
votes
1 answer

bootnode: command not found

I am attempting to start a PoA network on my local machine using a Geth Clique PoA network. When I go to initialize bootnode via a bash script, I receive the following error: ./bootnode/bootnode-start-local.sh: line 1: bootnode: command not found I…
toro
  • 1
0
votes
1 answer

Can't use SSD as datadir for geth on a PI 4 running ubuntu

I'm trying to set up a Medalla test net validator on a Raspberry Pi 4 using this tutorial, with the difference that I've pulled the ARM64 Ethereum package from here. I'm running Ubuntu v20.04 (LTS) x64 I managed to sync the testnet this morning, but…
brianfit
  • 1,829
  • 1
  • 19
  • 34
0
votes
2 answers

I am getting an error while trying to connect with node using geth tool

I am having an error while trying to attach to the quorum node, using the following command :-- geth attach --datadir new-node-1/geth.ipc then I get this error Unable to attach to remote geth: dial unix new-node-1/geth.ipc: connect: no such file…
rest17
  • 25
  • 1
  • 6
0
votes
0 answers

Ethereum representation on OSI layers

I need support with Ethereum Networking. A potential enterprise client is asking about the networking of Ethereum Node Peering. We have given them a lot of information about RLPx protocol and how it rides in Transport Layer being TCP based (Layer 4…
Manoj Kumar
  • 123
  • 5
0
votes
1 answer

Why my geth node's pending queue in txpool is empty but miner.start() works?

OS = Ubuntu 16.04 Geth version = v1.9.13-stable-cbc4ac26 Go version = go1.14.2 My node's syncmode is fast sync , it's blockNumber = 1 and mined 5 Eth in Ethereum public chain(network). So does it mean that the node already synced successfully? If it…
0
votes
1 answer

Generating dataset DAG for ethereum

I have chfast/ethash [https://github.com/chfast/ethash.git] repo ======================================= chfast/ethash : output [root@localhost build]# ./bin/ethash-fakeminer Fakeminer Benchmark Parameters: dataset: full threads: …
0
votes
2 answers

Can I use golang to develop on Ethereum?

I am a newbee in ethereum and I get a little confused after reading some tutorails. My question is How Can I use golang to develop on Ethereum? And I found goAPI demo like: client, err := ethclient.Dial("http://192.168.1.14:8545") err =…
Frank
  • 1
0
votes
1 answer

How can one obtain the message from state-reverting exception using ethereum clients, when self did not broadcast transaction?

Suppose an ethereum smart contract has external function "foo" whose logic has state-reverting exception require(1 == 0, 'error: you broke the simulation!');. If ethereum-client A broadcasts transaction "txA" which is a function call on foo, how can…
0
votes
1 answer

Sign a transaction to smart contract from migrations

I want to call smart contract method via sendTransaction from one of migrations. I'm using Truffle. During this migration I create a new wallet with a mnemonic. const seed = bip39.mnemonicToSeed(mnemonic) const hdk = hdkey.fromMasterSeed(seed) const…
Oleg Korban
  • 249
  • 3
  • 14
0
votes
1 answer

Simulate a double spend on a local ethereum blockchain

What would be an easy way to simulate a double spend on a locally running ethereum blockchain? Could ganache help with this? Could someone please point in the right direction? We are trying to build a monitoring tool to detect double spend but don't…
sat
  • 5,489
  • 10
  • 63
  • 81
0
votes
2 answers

geth states eth_submitHashrate while mining with Claymore on Windows 10 with 2 GPU's

I am aiming on GPU-mining Ethereum on a Windows 10 PC with 2 Radeon RX590. geth version is 1.9.9-stable-01744997 cmd call to start geth: geth --rpc --syncmode "fast" --cache 4096 --etherbase [ADR] --datadir "[MyDataDir]" --mine --minerthreads…
user3440145
  • 793
  • 10
  • 34
0
votes
1 answer

How can I Transfer ERC20 tokens from a smart contract without transfer to base account

I have some ERC20 tokens in a smart contract which created by an account A. I want to transfer ERC20 Token to another address using the gas from A, Without transfer ERC20 Tokens to A . Is there any way to solve my issue
0
votes
1 answer

abi: attempting to unmarshall an empty string while arguments are expected

I have a simple solidity code pragma solidity >0.4.24; contract Store { event ItemSet(bytes32 key, bytes32 value); string public version; mapping (bytes32 => bytes32) public items; constructor(string memory…
0
votes
0 answers

crashed with lots of error response "authentication needed: password or unlock"

Our ethereum network node crashed on oct 24, with lots of error response "authentication needed: password or unlock". The QPS is about 1~2, which is very low. According to our ab test, the node can support at most 60 QPS invalid request. here are…
dj Wang
  • 1
  • 1
0
votes
1 answer

Geth (go-ethereum) uses 100% CPU during mining even with 1 thread is specified

Steps to reproduce: Run geth with parameters --mine --minerthreads "1" or --mine --minerthreads 1 Expected behaviour: Only 1 thread is used. Actual behaviour: All CPU threads (8) are used with a 100% load. System information: Geth version: 1.9.6 OS…