Questions tagged [geth-debugging]
The geth-debugging tag has no usage guidance.
235
questions
0
votes
0
answers
34
views
GETH: Faster Dirty cache flushing to resist larger syncs on geth crashes (small POA network)
i'm currently running a set of 3x miner nodes, 2x RPC nodes and 1 bootnode on an AWS cluster (Proof of authority nodes) using GETH.
What i've noticed is that due to very small traffic on my network , ...
0
votes
0
answers
40
views
How to connect to Goerli console on Geth?
I'm in the attempt of simply connecting Geth to the Goerli testnet and and being able to use the web3 library in the console on the testnet. I tried opening a Goerli instance in Geth and then ...
1
vote
0
answers
11
views
How to run Ethereum light node by using Geth
after the ethereum merge (POS) how to run ethereum mainnet light node by using Geth, when I try to run light node I'm getting the error "Looking for peers"
1
vote
2
answers
25
views
What do the gas values mean in debug_traceTransaction?
I know the struct logs contain the gasCost and the gas limit for each opcode.
In some cases like CALL, the gas cost appears to be aggregated from the opcodes below it. Also, all of the gas costs (for ...
1
vote
0
answers
32
views
debug_traceTransaction return two CALLS when it was only only one
Here is tx: https://etherscan.io/tx/0x383753b4b7bba7d4bbdd94b1ad0c2f0ab7d6148de8178ad07eaf2cf28f57196d So we can see only one internal transfer to 0xeacd59712b496c9877244da25824b73cb5f6e94c When I ...
0
votes
0
answers
13
views
Can't call / read smart contract (1 year old) using web3js via RPC from own geth node running in snap mode
I have a question about reading / calling methods / properties from smart contract, which is 1 year old, via RPC using my own geth node, which is running in snap mode.
My config for running geth:
...
0
votes
0
answers
23
views
Under which condition "CALL" opcode does not increase the depth?
I'm currently researching EVM opcode trace data(data fetched from "debug_traceTransaction"), and I meet several cases where the opcode "CALL" does not increase the depth.
I already ...
0
votes
0
answers
44
views
Is it possible to prune ethereum full node without having to stop geth client?
Does anyone know how to prune ethereum geth full node for an application which requires a non-stop running full node ?somehow like the way bitcoin does pruning ( removing older blocks automatically ...
4
votes
3
answers
507
views
Trying to understand the difference between trace_call and debug_traceCall methods
can someone help me understand the difference between trace_call and debug_traceCall? From what I've read, trace_call is to see the opcodes executed and the gas used for a transaction. debug_traceCall ...
2
votes
1
answer
243
views
Geth has connected to 3+ peers but won't download blocks
I'm trying to run a geth node on my machine. Yesterday I had troubles with finding peers. Today for some reason I'm connecting to many more peers but none of them seem to be willing to serve me any ...
1
vote
0
answers
287
views
HardhatError: HH110: Invalid JSON-RPC response received: missing token when deploying to Görli (Gorli/Goerli) testnet
Summary
When I run yarn hardhat run scripts/deploy.js --network goerli, the following error is displayed in my terminal:
HardhatError: HH110: Invalid JSON-RPC response received: missing token
at ...
0
votes
0
answers
66
views
Geth Archive node does not maintain transactions
In a network archive nodes do not maintain full transaction history no matter what we did
/srv/www/go-ethereum/build/bin/geth --config /srv/www/go-ethereum/config.toml --datadir /data --cache 16384 --...
0
votes
0
answers
69
views
pending transaction doesnt exist on bsc fullnode
I am trying to get pending transactions via the full node in the binance smart chain.
My command to run geth is :
./geth --config ./config.toml --datadir ./node --cache 18000 --rpc.allow-...
0
votes
2
answers
264
views
I request ether from goerli faucet, it seem success, but eth.getbalance return 0
step1: I launch the Geth ➜ geth --datadir rinkeby --rinkeby --syncmode snap
step2: I request ether from goerli faucet from the site: https://fauceth.komputing.org/?address=...
1
vote
0
answers
29
views
Geth node accounts balances and contracts reset to 0 after 30,000 Blocks in POA private network
This is my geth node script
geth --datadir /root/data/data/ --networkid 1567134 --bootnodes enode://...
1
vote
1
answer
17
views
Tie-breaking implementation on geth
I'm analysing geth's source code for my undergraduate thesis, and I'm unable to locate the tie-breaking function, i.e. where blocks are compared and either become canonical or uncle. My final goal is ...
0
votes
0
answers
36
views
eth.syncing return false but eth.blockNumber return the latest block
eth.syncing return false but eth.blockNumber return the latest block
``
eth.syncing
false
eth.blockNumber
87367
eth.blockNumber
87368
``
And also I have 4 accounts in my private blockchain and the ...
0
votes
0
answers
7
views
different between latest and pending in call_trace
I want to get call_trace of some transactions that how not been mined yet.
what should I set block tag for call_trace api? (latest or pending)
what is the different?
0
votes
0
answers
168
views
Detecting internal transactions given a debug_traceTransaction response
Intro
Hello everyone, I am attempting to filter and recreate internal transactions given a debug_traceTransaction response and the {tracer: "callTracer"} tracer. An example transaction can ...
0
votes
1
answer
102
views
geth will not recognizw --mintme flag
I have been trying to run
geth --mintme however only get flag provided but not defined: -mintme
I have searched the documentation, here https://github.com/etclabscore/core-geth/blob/master/cmd/utils/...
1
vote
0
answers
471
views
How can I connect Geth to Goerli and view accounts (following Goerli Getting Started)
I am trying to connect the Geth Windows client to the Goerli Testnet and view accounts created using Clef (I am essentially following the Goerli Getting Started document, even though the basic ...
0
votes
0
answers
11
views
how to start geth with optional commands in goland IDE
When I right click on geth folder to run, it starts with defaults, but I want to run that with optional commands like geth --datadir datafolder --networkid 20007 --mine --unlock 0 --password pass.txt ...
0
votes
1
answer
219
views
How to connect AWS node with Metamask?
Sorry its really primitive and silly question but I'm very low on information about this area but from the things I've heard and I've seen I managed to create a node from "https://eu-west-2....
0
votes
1
answer
158
views
web3js getPastlog return empty array
i test web3js by geth,i build private net in local.i try to call getPastlog ,but return empty array.
const Web3 = require("web3");
// const web3 = new Web3(new Web3.providers.HttpProvider(&...
0
votes
0
answers
74
views
How to measure Gas consumption during a transaction?
I use geth network. I deployed a smart contract on the geth with a function. Then I sent several transactions with web3js.
Now for my research paper, I need to calculate the amount of gas cost for 10 ...
0
votes
0
answers
156
views
Geth javascript console how to subscribe using JSON RPC
I am running an go-ethereum client in light mode. I have connected to my node with ./geth attach /home/user/.ethereum/geth.ipc and have my geth console.
I want to use real-time subscriptions mentioned ...
0
votes
1
answer
128
views
how to setup up Gas Price POA network
I have setup POA Network with clique, 5 Node with Public RPC, everything working fine, but i would like to setup Gas Fee to 25 GWEI automatically Metamask pick this estimation, by Default POA has 1 ...
0
votes
0
answers
17
views
Unable to unlock my Ethereum account on Private chain [duplicate]
Error Msg :
GoError: Error: account unlock with HTTP access is forbidden at web3.js:6365:9(45)
at github.com/ethereum/go-ethereum/internal/jsre.MakeCallback.func1 (native)
at :1:1(5)
0
votes
1
answer
68
views
I can't figure out the reason for this error
There are no problems with the nodes.
but i keep getting this warning
What exactly is the reason for this?
err="signed recently, must wait for others"
0
votes
1
answer
26
views
Does calling a read function with input leave any trace?
I want to call a read function which does a calculation and returns a result. It is important that the input will not be saved on the blockchain.
If I were to use a write function then even if there ...
0
votes
0
answers
50
views
"geth attach server" fails with 401 but fine with `ethclient.Dial(server)` in GoLang
I want to trace transaction with debug.traceTransaction() in geth, I'm using free archive node from "moralis.io", the url looks like "https://speedy-nodes-nyc.moralis.io/...my_key.../...
0
votes
0
answers
19
views
Private network, Remix works fine, every other sendTransaction fails other than contract functions that are payable
Have a basic POW private network running with the latest geth. Things are half working and failing oddly.
If I use Remix IDE I can call every function (send and query) of a deployed contract and it ...
2
votes
1
answer
198
views
How can I get rid of the lock, which is giving " Failed to create the protocol stack: datadir already used by another process" as error
How can I get rid of the lock, which is giving " Failed to create the protocol stack: datadir already used by another process" as error.when geth is running in another tab.
0
votes
0
answers
54
views
The state of the contract does not change
I deployed the contract on my private geth network for testing.
pragma solidity ^0.4.26;
contract MyContract {
mapping (address => uint) private balances;
function depositFunds() public ...
1
vote
0
answers
58
views
Geth(clique): Getting the total initial supply on a geth private network
Using ethers/web3 is it possible to get the total initial supply (which is predetermined on clique) so I can get a hold of the data and display it somewhere..
I know how to get the total supply of an ...
2
votes
0
answers
3k
views
Geth state heal in progress - will it terminate?
This question is somewhat related to this one, but unfortunately I don't have enough reputation to post my thoughts there.
I have been tracking my state heal progress for some time now, and I have a ...
1
vote
0
answers
84
views
How to decode go ethereum leveldb key value pair
Just for test I tried to browse leveldb records of private go ethereum node and found following types of many keys and values one example key and value is below
Key :
\x48\x5c\x22\xd5\x23\x0f\x95\...
1
vote
1
answer
286
views
Connecting to Private Geth Blockchain network using MetaMask
I am new to Blockchain and created a private geth network in Aws EC2.
I need to connect my metmask wallet to that network. From my metamask wallet , I am not able to see that network.
Kindly let me ...
1
vote
0
answers
221
views
admin.addpeers is not working on geth
This is the info i get when i run admin.addpeer on geth . i have used same genesis file on both aws instances, also rpcport and ports are different on both instances. the info is as follows:
WARN [12-...
1
vote
0
answers
35
views
How to add both Geth ang Ganache to metamask?
I have been facing an issue. I want to connect Both Geth and Ganache (GUI) to Metamask one at a time for testing smart contract. But in Metamask it's already showing a network localhost RPC endpoint ...
1
vote
0
answers
96
views
Why is geth console returning me a transaction hash when I try to read my contract storage variable instead of actual value(uint256)?
Environment :
Running an Ethereum private network of one node using Geth
Connected to Remix-IDE at localhost:8545
Contract successfully deployed and tested via Remix
Contract Code :
// SPDX-License-...
0
votes
0
answers
1k
views
ethers provider.getLogs() missing an event?
In each onBlock I want to deterministically get the list of uniswap Pairs that changed in that block so I scan for Sync events (without an address filter).
I am running on my own geth node.
I do the ...
0
votes
1
answer
79
views
Start and HTTP JSON-RPC geth on android?
Is it possible to change the code in /mobile to allow for a json-rpc api to be spawned on an android?
Or is there something I need to do in Java with the NodeConfig?
I already managed to run a light-...
0
votes
1
answer
114
views
account defined in genesis.json has no existence when private node started using geth command
I copied go ethereum source from heco git repository compiled and used following genesis.json file
{
"config": {
"chainId": 24,
"homesteadBlock": 0,
"...
2
votes
0
answers
259
views
My geth node is stuck on "looking for peers"
I start the geth node with these parameters, "geth --ropsten --syncmode "light" --allow-insecure-unlock --http --http.api "eth,net,web3,personal" --http.addr '0.0.0.0' " ...
1
vote
1
answer
1k
views
What is the best way to create Binance Smart Chain (BSC) transactions via geth without a full node?
I currently run geth to create and query the ethereum blockchain for transactions in light mode. I don't have a eth full node running. I tried running the same similar setup for Binance Smart Chain in ...
0
votes
0
answers
85
views
why has my script stopped working after moving from ganache to geth?
I have built a web application that connects to a private blockchain, the app works like a private token exchange.
Everything works perfectly with ganache/truffle, however the below script i use to ...
16
votes
2
answers
5k
views
Geth State heal in process explanation
I had a synced geth node (syncmode default = snap).
After restarting the machine geth starts to sync again. Ten hours are passed but still syncing.
In the log file i see a lot of State heal in process....
0
votes
1
answer
603
views
BSC Transaction revert but no reason
I encountered a problem. My contract occasionally has execution exceptions, but there is no error prompt. I read the VM trace and found the following errors, but I don't understand why. Can someone ...
0
votes
0
answers
95
views
Could someone help me understand how this problem was solved?
Block sealing failed err="unauthorized signer"
The answers that are given still have me confused and I don't know how to interpret what's being said. Tried to search up some of the terms ...