Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Real-time data of the exchange rate between Ethereum and the US dollar

I want to get the real-time data between Ethereum and US dollar exchange rate as shown in the figure. Is there any way to achieve it?
muxi's user avatar
  • 1
0 votes
1 answer
14 views

Go-Ethereum/core-geth: Consensus engine interface, on changing coinbase via Prepare method

I assumed the coinbase could be altered from Prepare, so that transaction fees could be paid out to a custom coinbase. But, it seems like worker.go simply ignores the header.Coinbase after calling ...
BipedalJoe's user avatar
0 votes
0 answers
9 views

Cant unlock account and find a Txs in the geth through clef(POA private chain in Centos 7)

about the question(POA private ) 1.Cant not using clef's personal.unlockAccount method to unlock the account in the geth,but can use the personal.listWallets method to list the accounts 2.to use the ...
afHu's user avatar
  • 1
0 votes
1 answer
17 views

Geth: can't run eth.Ethereum in light sync mode, light mode has been deprecated

I have just downloaded freshly new version of Geth on Ubuntu and get this error: Fatal: Failed to register the Ethereum service: can't run eth.Ethereum in light sync mode, light mode has been ...
sirjay's user avatar
  • 121
0 votes
0 answers
14 views

Error: *** Deployment Failed *** "IdentityVerification" -- unknown account. Migrating a smart contract on Truffle connecting to Geth nodes

I have created a test blockchain network and created a smart contract for validators to verify members, which I am trying to deploy with truffle. A bootnode serves as the Host on the main network: ...
Matt's user avatar
  • 1
0 votes
0 answers
9 views

Run a node for a noob

I'd like to ask you for your best advice on running an ETH node. I want to start investing in it. What are the best tips for a beginner ?
user135316's user avatar
1 vote
0 answers
17 views

Web3.js returning out-of-gas on local node with high --rpc.gascap

I have a local Fantom API node (lachesis) that I start with a really high --rpc.gascap (over 5 billion), which should not be hit in theory. However, when I make an eth_call using Web3.js, it always ...
tim's user avatar
  • 21
0 votes
1 answer
31 views

Runtime ABI-encoded contract method

I am building an application that gets tokens at runtime, I need to transfer some of them and I am attempting to calculate the required gas. Below is a example of the gas calculation code, but it ...
pigfox's user avatar
  • 71
0 votes
0 answers
13 views

IPC Endpoint closes immediately after it opens GETH

I am attempting to establish communication between a bootstrap and member node on the same device using GETH on Windows. Initialising both nodes with my genesis.json file works fine. geth --datadir ...
Matt's user avatar
  • 1
0 votes
0 answers
12 views

tx.from.Store in types.Sender does not leave, CPU 100%

This is a follow up of this post. I nailed it down to the code in the official sync atomic Store() procedure, called by geths types.Sender function. In short, in rare cases Store() never leaves, and ...
flo's user avatar
  • 105
1 vote
0 answers
14 views

High efficiency method to query chain db

I am running two archive nodes, one is using Geth and the other Erigon. I have to run a pretty heavy duty indexing process, and making JSON-RPC calls to fetch the data is not fast enough, even if the ...
Riccardo Perego's user avatar
1 vote
2 answers
37 views

How concurrency works on Ethereum?

If 2 persons call the function deposit in my smart contract at the same time, sending 100 USDC each, and in my deposit function I use balanceOf(address(this)) to check the balance of my contract in ...
Ryan Holanda's user avatar
0 votes
2 answers
22 views

How can I efficiently handle gas costs when deploying Ethereum smart contracts?"

I'm relatively new to Ethereum development and I'm currently working on deploying smart contracts to the Ethereum mainnet. One concern I have is managing gas costs effectively to ensure that my ...
Ian Park's user avatar
0 votes
0 answers
7 views

--syncmode snap vs --syncmode full for debug_traceTransaction

I am finding conflicting information on whether I can use debug_traceTransaction on a geth node synced in snap mode. If yes, what is the difference between full and snap? Would it be faster to fetch ...
Riccardo Perego's user avatar
0 votes
0 answers
5 views

If ethereum is completely p2p then how do we efficiently discover network-scoped (gloal) info like no of peers in the network?

In order to query an info like the no of peers in the network it would take an order of magnitude of O(n2) where n is the no of peers in the network since each peer would sent the req of no of peers ...
Geek's user avatar
  • 31
0 votes
1 answer
24 views

How to Implement a Minimum Funding Requirement in a Solidity Smart Contract?

I'm currently developing a Solidity smart contract named FundMe, where users can contribute funds in Ether (ETH). I'm aiming to enforce a minimum funding requirement of $50 USD equivalent. However, I'...
Kuldeep Sonara's user avatar
0 votes
0 answers
12 views

Start Native address took my Ethereum instead of my Remix bot [duplicate]

After watching a youtube video on a certain ethereum bot I followed the instructions and somehow found that the money was sent to some start native address and wasn't being used by my bot. I was ...
Graham Losken's user avatar
0 votes
1 answer
16 views

How do I find my Ethereum I bought in 2018... I think I took it offline at the time. I have the address I seem to have transferred it to

Total crypto dummie here. I bought some Ethereum in 2018, and remember using MetaMask to try and take it offline. I haven't the faintest idea what I did after it went to MetaMask...but this is the ...
Sophie's user avatar
  • 1
0 votes
1 answer
55 views

Execution reverted using go-ethereum

When im using the remix ide (and in js with web3 lib) to interact with the smart contract there's no problem, but in golang with geth always return me "execution reverted" in call function (...
Victor Bernardes's user avatar
1 vote
1 answer
27 views

Abigen from flattened contract files

I have a file that is composed of 5 imports, too much code to drop here so I will illustrate my question with a very simplified example. My Test.sol file: // SPDX-License-Identifier: MIT pragma ...
pigfox's user avatar
  • 71
1 vote
1 answer
31 views

How to setup a private GoEthereum network

I'm studying Ethreum by creating by own private ethereum network. I have three basic question. I will give as much information as I can to help to get great responses. My network setup is very simple: ...
JDN's user avatar
  • 11
1 vote
0 answers
38 views

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

After updating go-etherum from github.com/ethereum/go-ethereum v1.10.22 to v1.13.15 My contracts started printing out error abi: attempting to unmarshal an empty string while arguments are expected ...
Mikheil Janiashvili's user avatar
1 vote
0 answers
19 views

Ether Presale json file extracting different ethereum address

I bought Ethereum using three wallets and was able to access two of them, but I can't access the last one. When I opened the third JSON file, I could see the Ether address. I also checked on Etherscan ...
TCR's user avatar
  • 11
0 votes
0 answers
10 views

Ethereum Private Network Upgrade Help

I want to mimic the Dencun upgrade on my private network which is currently running the Shanghai version. I want to understand how to upgrade the ethereum network without stopping it / restarting it / ...
Vidhan Mangla's user avatar
0 votes
1 answer
27 views

Merkle Patricia Trie pad and prefix concept

I understand <> it is used for empty slots, rootHash is 16 for hex. and hashB placed 5th position because of '4', but how does perhaps padding work? i.e. in hashA: 20, hashB: 00, hashE: <17&...
RASEL MAHMUD's user avatar
0 votes
0 answers
20 views

public key recovery failed intermittently with go-ethereum

I am trying to recover public key from signature and digest. below is my code. It's failing sometimes with error recovery failed package main import ( "crypto/ecdsa" "crypto/...
Pankaj Kumar's user avatar
0 votes
1 answer
29 views

State healing taking over a month, faster way to sync etherium for transfer?

For context I last used geth and Etherium when it was PoW, then I left it for several years with a small amount of eth (~$80) in my wallet. With the recent increase in price, I was reminded of this, ...
byteit101's user avatar
  • 103
1 vote
0 answers
73 views

Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks

I installed the latest version of Geth for windows on my computer from the official website(https://geth.ethereum.org/downloads), but when I open the terminal and execute the geth command i get the ...
John's user avatar
  • 11
0 votes
0 answers
40 views

core-geth: peers stuck in handshake forever

I'm running a custom consensus engine and launching a network for it. The nodes I have are making handshakes with other networks, but then not peering since they are not compatible. But, the handshake ...
BipedalJoe's user avatar
0 votes
2 answers
25 views

Help with calling multicall contract via golang

I have the correct address and exact bytes but my result is always an empty byte split I'm using a custom multicall where the function is a view function and the expected data returned is of the same ...
FudgyDRS's user avatar
  • 371
0 votes
0 answers
22 views

Geth Private Network - Account management

I'm building a private blockchain using Geth. I created 2 accounts with command geth --datadir miner-node account new and geth --datadir rpc-node account new, then I added their address to genesis....
revSurfer's user avatar
0 votes
0 answers
13 views

Go-Ethereum: shut down fails in handler.Stop(), anyone know why?

I'm running etclabscore/core-geth with my custom consensus engine (but reproduced the issue with Clique too). The shutdown process in handler.Stop() fails, and stops at h.wg.Wait(). func (h *handler) ...
BipedalJoe's user avatar
0 votes
1 answer
15 views

deflationary tokens vs inflationary tokens

Why do deflationary tokens exist? What are the advantages? How they are different from inflationary tokens?
Saikat Karmakar's user avatar
3 votes
1 answer
82 views

for loop containing types.Sender sometimes does not leave and consumes 100% CPU

I have this simplified code here: signer := types.LatestSignerForChainID(s.ethApiBackend.ChainConfig().ChainID) log.Info("Before msg generation", "txsLen", len(txs)) msgs := make([]...
flo's user avatar
  • 105
1 vote
0 answers
23 views

Geth with Clef: "account_new" method fails, despite established IPC connection and namespace

Have extablished communication between Geth and Clef over IPC. Clef is popping-up manual confirmation on "eth_accounts", I hit "y" and receive valid empty array response on my end. ...
jurijus01's user avatar
0 votes
0 answers
7 views

Is VerifyHeader in consensus engine interface run on the genesis block?

Clique in VerifyHeader checks so that the block is not block 0, // The genesis block is the always valid dead-end number := header.Number.Uint64() if number == 0 { return nil } whereas Ethash ...
BipedalJoe's user avatar
0 votes
0 answers
31 views

Gas estimation failed - remix.ethereum.org

Why i cant deploy my contract ? it show me every time this. I am sure i do everything right. Before i try force sending but TX failed and i burn some eth... here is tx https://etherscan.io/tx/...
Lukáš Kubala's user avatar
0 votes
1 answer
114 views

Go-Ethereum "transaction type not supported" Error When Fetching Blocks on BaseChain

I'm working with Go-Ethereum (Geth) to interact with the Base blockchain, and I'm encountering an issue when trying to fetch block information using the BlockByNumber method. My code is ...
Moon soon's user avatar
  • 173
0 votes
1 answer
37 views

Geth version 1.14.4-stable Error: authentication needed: password or unlock. Transfer issue?

I want to make a transfer between two wallets; one is the address I set up on my private blockchain, and the other is my Metamask address. However, I keep encountering the same error. I have attached ...
yukara's user avatar
  • 3
0 votes
0 answers
10 views

Adding a new precompile to a local modified Ethereum (geth) node

Trying to add a new precompile on the core/vm/contracts.go but after re-building the go-ethereum project with make geth it doesn't work as it should. More precisely, I'm following the Adding a ...
Gabriel Stoica's user avatar
0 votes
0 answers
23 views

How to build my own blockchain

I have been doing some theoretical reading on blockchain security for a while. To improve myself in this field, I want to develop a small-scale laboratory environment with my own computer and an old ...
yukara's user avatar
  • 3
0 votes
0 answers
10 views

How to monitor geth synchronized data?

I am using snapshot synchronization mode and have been synchronizing for almost a week. The geth client output is as follows: and the lighthouse client output is as follows: I checked that 1.5T of ...
muxi's user avatar
  • 1
1 vote
0 answers
48 views

Geth changing discovery port to 1024 shortly after start

I'm running geth 1.13.14 My startup command is ./geth --port 30303 --discovery.port 30304 --http --http.api eth,net,engine,admin --authrpc.jwtsecret ~/myhex.hex --datadir='~/ethereum/execution/data I'...
jamesdlivesinatree's user avatar
0 votes
0 answers
19 views

Geth private network security

I'm implementing a private network with Geth, which is expected to go into production for a client. What are the most important points to focus on regarding the security of my blockchain? I was ...
revSurfer's user avatar
1 vote
1 answer
22 views

Go-Ethereum: What is the story behind the "bad hashes" in core/blocks.go

Go-Ethereum tracks a few "bad hashes". What is the story behind them? Why are they bad? I understand they are "usually hard forks" but it would be interesting to hear more about ...
BipedalJoe's user avatar
2 votes
0 answers
12 views

What will happen if the most influential individual stake-holder STOP responding?

I'm new to the community and I'm trying to do some research for my college project with respect to the Ethereum topic. I'm curious how influential the highest stake-holder would be. From my ...
Zen T's user avatar
  • 21
0 votes
0 answers
22 views

Why (historically in PoW) is total difficulty not stored in the block header?

The system for managing total difficulty is that it is computed and stored on each node, but not in the block header. The way it has been stored has undergone revisions, back in 2015 (in Go-Ethereum) ...
BipedalJoe's user avatar
2 votes
0 answers
22 views

How execution client get synced after the Merge?

I learned that after the Merge, execution client like geth only gets new blocks from the consensus client, while I noticed the geth client still has its own p2p network and snap sync also works as ...
cifer's user avatar
  • 163
0 votes
0 answers
9 views

Dial bootstrap nodes with devp2p(js)

I'm trying to use devp2p dpt.bootstrap to connect to Ethereum bootstrap nodes my dpt config is like this: const dpt = new DPT(PRIVATE_KEY, { timeout: 10000, endpoint: { address: '0.0.0....
colonel balthazar's user avatar
0 votes
0 answers
7 views

For a custom trie that uses the state trie methods and functionality, can triestate.Set be skipped?

The Update method in the Database class in trie package, takes a parameter *triestate.Set. Is it possible to skip this variable, and simply pass &triestate.Set{} to it? I am using Update method ...
BipedalJoe's user avatar

1
2 3 4 5
128