Questions tagged [geth-debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

Go Ethereum (GETH) Node Error

I'm trying to get smarter on blockchain broadly so downloaded Bitcoin Core / Geth nodes recently and got them both working but admittedly I hardly know what I'm doing. I didn't realize that I needed ...
2
votes
0answers
30 views

Local full node is one block behind mainnet after sync is completed

I just created a local Binance Smart Chain full node on my PC with the following specs: OS: Linux running on Windows Subsystem for Linux Storage: 1TB SSD (Samsung 980 Pro) CPU: AMD Ryzen 7 5800x Ram: ...
0
votes
0answers
13 views

(Geth Study) Doubt about throttleThreshold in /eth/downloader

this question relates to download part of gethv1.9.25. to reach checking of throttle, follow the path queue.reverseHeaders(...) > resultstore.AddFetch(...) > resultstore.getFetchResult(...) show ...
0
votes
1answer
5 views

New miner warnings and errors, dropping nodes and peers

Im new to mining. I had several older blades sitting around not doing anything so I thought why not have them doing something. Anyway these are all CPU based miners. I understand its not effecient, ...
0
votes
0answers
19 views

Ethereum balance is not showing in my Ethereum node

I have set my ethereum node in Amazon Ec2. I start syncing through this command sudo geth --datadir /home/ubuntu/data/ --cache=512 --allow-insecure-unlock --rpcapi "web3,eth,personal" --rpc ...
0
votes
0answers
131 views

Geth bsc node install problem

I'm trying to install a bsc fullnode, i'm following the bsc tutorial (https://docs.binance.org/smart-chain/developer/fullnode.html). But i ran into a problem. At the last step when i launch the node ...
0
votes
0answers
10 views

How to print logs such as peer.Log().Debug(“”) in geth?

I want to check logs such as peer.Log().Debug() in geth.But I haven't find it in my log.txt .It seems that Geth does not log this in log.txt.Only log.logger (), log.dubug ().... are logged in log.txt....
0
votes
0answers
17 views

Returned values aren't valid, did it run Out of Gas?

I am having a mapping like struct Invoice { uint256 unitPrice; uint256 totalCost; uint256 discount; uint256 CostAfterDiscount; bool isConfirmedByBuyer; } mapping(bytes32 => ...
0
votes
0answers
15 views

easier way to debug a NPM truffle project?

I'm using open zepplin to try to code these forks and contracts and i cant seem to get NPM to configure correctly. I have tried all of these types of things. 1. Uninstall and global reinstall NPM ...
0
votes
0answers
10 views

geth peering between GCP VM and RPI failed

I have configured 3 ethereum nodes 2 in GCP VMS 1 in RPI All are Ubuntu based Miner1: geth --identity "miner1" --networkid 42 --datadir "~/RPI/miner1" --nodiscover --mine --rpc --...
0
votes
0answers
13 views

eth_call, testing multiple transactions

want to test multiple transactions which are changing state and are dependent of each other. Is that possible using geth? Example: (1) First transaction will send 1 eth to account a (2) Second ...
0
votes
0answers
59 views

Invalid response at function call from time to time

I am continuously trying to fetch all pair addresses from a PancakeSwap contract but while doing so it always fails after some time saying: Error: invalid response - 0 at exports.XMLHttpRequest....
0
votes
1answer
72 views

There is an address that is hacked, the bot is monitoring it and payments are received regularly!

So, the bot instantly cancels these payments by sending, for example, 0.01 eth with a commission (fee) of 0.009 to another wallet, or even canceling everything through self - sending 0 to the same ...
0
votes
0answers
25 views

Geth stucks on event requests

I have a loop that requests past events to my geth instance by batches of 5000 blocks. It always stucks after precisely 628 request and I get a timeout. Anyone knows why ? Thank you !
0
votes
0answers
15 views

Geth python node no transactions / no data

I want to get transaction information on the blockchain ethereum using Go Ethereum (GETH) with web3 and python. I am running eth node on windows using the following command : geth --http --syncmode ...
2
votes
2answers
42 views

why does it matter to sync nodes with time?

As we know, time gets set on a block's header as the miner's current local time. Each node while accepting a block, checks if the new block's time is more than parent 's time and is not also in the ...
0
votes
0answers
20 views

geth.exe checksum is differant than what is writen on the website but the installers checksum is correct. is this an issue?

I started syncing geth with this command he command: geth --rpc --etherbase <pulbic wallet adrress> --syncmode=fast --cache=2048 and about 25 hours later, the syncing stopped and this error ...
1
vote
0answers
50 views

ERC20 contract estimates gas used

I'm new in blockchain and ethereum, And I tried to transfer contract tokens and estimate needs gas(eth) there was the error response when address ETH balance not enough > eth.estimateGas({from:&...
0
votes
1answer
82 views

Force geth to continue using fast sync

My Ethereum node was fast synced one year ago and then ran for 10 months, before that computer was shut down. I have turned on that computer and I want to continue catching up, but Geth keeps ...
0
votes
1answer
29 views

what happened to geth verbose option?

I am trying to launch GETH with --verbosity 4, however it says that it is not a valid argument. geth help shows that the --verbosity option is there, but when I try to run it, it does not work. It ...
0
votes
0answers
31 views

Remove pending tx from Geth

I have setup my Geth node and started it with 200.000 maximum pending tx and 5000 max queued tx. Now it reached 190k pending Tx although other nodes are showing a total of 150k (etherscan) or 155k (...
2
votes
1answer
567 views

geth method eth_getBalance does not exist

I'm unable to run any commands after setting up clef and geth on the Görli chain. geth attach /path/to/clef.ipc Welcome to the Geth JavaScript console! modules: account:1.0 rpc:1.0 > eth....
1
vote
0answers
41 views

GETH - Pending Transactions Performance

I'm currently making use of my own GETH node to get pending transactions and process them as follows: this.web3.eth .subscribe('pendingTransactions', function (error, result) {}) ...
1
vote
1answer
197 views

Geth keeps changing coinbase / miner account and stops working. (POA Network)

I have set up a Geth POA network of 2 nodes on different cloud instances. Network was running good for 2 months but now suddenly it's getting connections from unknown peers and mining stops working. ...
0
votes
0answers
88 views

Properly Exposing Geth RPC in 2020

With the default allowed ["net", "web3", "eth"], I want to expose Geth 1.9.21-stable RPC to another machine. In config.html I set HTTPVirtualHosts = ["*"]. The ...
0
votes
1answer
59 views

I am getting a error when trying to set up a local raft network

When I try to run the command geth attach $nodeName/geth.ipc It shows the following error 'Incorrect Usage. flag provided but not defined: -raft' I am not able to understand what went wrong exactly, ...
0
votes
0answers
187 views

Ethereum geth mainnet blocked on “Looking for peers”

I installed Geth for setup a ethereum node on my linux server and use it on my RPC API. The problem is, Geth is posting "Looking for peers" forever, I don't really understand why. This is ...
0
votes
0answers
201 views

Geth behind mainnet during fast sync on an SSD

I'm trying to sync a full node on my desktop but I'm not able to get past the state download phase. After the block download phase completes (64 blocks behind mainnet) geth is not able to keep up with ...
1
vote
1answer
586 views

Run Geth with a configuration file

I've created a config.toml for Ropsten (NetworkId =3) that looks like this: https://pastebin.com/raw/2DxWE1jf But when I run geth --config /home/path-to-config From the cli I get: (Note ChainID:1, ...
0
votes
0answers
60 views

Geth won't sync because I cannot connect to peers

I have already explicitly allowed tcp in and out on port 30303 through windows firewall. Other people were told previously to use geth attach ipc:\\.\pipe\geth.ipc or geth attach http://127.0.0.1:...
0
votes
0answers
75 views

Where does DappNode ubuntu installer download the .ethereum files?

I am currently using DappNode and syncing the blockchain. When I used GETH directly there used to be .ethereum folder where all the chaindata and keystore was present. But when I use DAPPNODE the ....
0
votes
1answer
172 views

POA: Geth node (miner) automatically stops after 3-4 hours which results in primary node pausing and looking for peers

I have set up 2 Geth nodes with POA on different machines. After starting bootnode and starting Geth nodes, they sync well and starts mining alternately. If I manually stop a node, other node keeps ...
1
vote
0answers
91 views

How to Backup a GETH synced full node?

I was able to sync a complete GETH fast node but the server crashed and the node did not work. So, now I am downloading again. But I have worries that the samething can happen again. My question is: ...
0
votes
1answer
120 views

What will happen to GETH node once Ethereum 2.0 releases?

I have a full GETH node running and looks like Ethereum 2.0 is about to release. My question is: Will I need to do tweak anything in my node once Ethereum 2.0 releases? Will my GETH full node be able ...
0
votes
0answers
89 views

Best way to sync a node to use traceTransaction in go-ethereum

I'm syncing a go-ethereum node. Now I'm syncing my node in full mode, with gcmode=archive enabled. However after a full week-end, I have around 500GB of disk space eaten and 2y7m left. My questions: ...
0
votes
0answers
89 views

Disabling nonce check for go-ethereum for a private test net when using web3js batch requests to send tx

I am using web3js batch.add and batch.execute to send tx for an ethereum private testnet that I have created. I send tx using batch.add and batch.execute (don't prefer to use promises since they ...
0
votes
0answers
79 views

GETH full node genesis mismatch

I was running a full node GETH client for main net Ethereum in a server. The server crashed and was shut for around 8 hours. But after fixing the server and running the full node the GETH doesnt run. ...
0
votes
0answers
14 views

Require function does not work in geth

I have a smart contract that uses require to validate the parameters inside some functions and I have noticed that geth 1.9.13 and 1.9.14 do not enforce the condition in require. I could reproduce the ...
2
votes
2answers
197 views

Gas price data from GETH

I am able to get gas price data as follows from some oracles (i.e., ethgasstation.info, etherscan.io): { "fast":50.0, "fastest":200.0, "safeLow":10.0, "average":20.0, "block_time":13....
0
votes
1answer
209 views

Geth trace transaction int old block

I start geth without setting gcmode=archive at the beginning. But when i realized that if i want to get all the internal transactions in ethereum blockchain, geth has synced at the blockheight of ...
3
votes
1answer
856 views

How to collect geth's metrics?

I am trying to measure chain insert rates in a Geth node. In a deprecated Go-ethereum blog, it says I can use debug.metrics(false) to get all available metrics (so I can use debug.metrics().chain....
1
vote
0answers
111 views

geth is returning call trace but does not count balance change

I send this command to my geth (I'm sure anyone's Geth would return the same): curl host:8545 -X POST --header 'Content-type: application/json' --data '{"jsonrpc":"2.0", "method":"...
2
votes
0answers
317 views

Script for opening a geth console for a node and running commands in it

I am trying to create a script running a couple of geth nodes, open a console for each of them and run a couple of commands such as admin.addPeer() and miner.start(). I read that i can use --exec to ...
0
votes
0answers
21 views

Transplanting Geth Data

I am wondering if it is possible to transplant a geth node from one computer by overwriting the .Ethereum folder with a full synced node's .Ethereum folder.
2
votes
2answers
61 views

Full Node Bigger Than Online Reports?

I am running a full node and I noticed that the amount of disk space it takes is larger than reports online. I use the command ./geth --syncmode full --rpcapi eth,web3,personal --rpc --rpcaddr 127.0....
8
votes
1answer
2k views

What mean “Deep froze chain segment”?

I have question My geth show me like that "Deep froze chain segment" repeatedly What mean??
2
votes
1answer
381 views

Build go-ethereum source code

I wanted to build go-ethereum source code in my local side and test it in geth. I have followed up the instructions in the github go-ethereum as it is. However, I have got fail with some errors when I ...
0
votes
0answers
46 views

Address not appending to array

I'm new to Ethereum and I communicate with my Solidity using Go language. I have a contract that allows user to join the lottery by adding the user's address to the array of addresses, but it's only ...
10
votes
2answers
7k views

Fatal: Failed to write genesis block: unsupported fork ordering: eip150Block not enabled, but eip155Block enabled at 0 genesis block

I am attempting to launch a private geth chain with the following command: geth --datadir=./test-private-blockchain/ init genesis.json I am receiving the following error: Fatal: Failed to write ...
1
vote
1answer
254 views

Can I start mining before my node is fully synced?

I'm trying to mine some Ether on Ropsten, using a Geth node configured as follows: --verbosity=3 --networkid=3 --testnet --mine --fast --cache=8192 --datadir=./data --etherbase=0xMyAccountAddress --...