Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [geth-debugging]

The tag has no usage guidance.

72 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
112 views

Error trying to synchronize geth clique client after shutdown

I'm working with a private network using geth clique clients. Each time a node shut downs, (after a power cut, or just killing the geth process), if a try to put it to work again, the node can't ...
3
votes
2answers
296 views

Smart Contract firing send ether transaction that's not in the contract

I need some help with my smart contract, here's the smart contract code pragma solidity ^0.4.18; contract UserToken { mapping (bytes32 => uint8) public tokenBalance; bytes32[] public ...
2
votes
1answer
113 views

Geth interface panic after weeks of being in sync

After weeks of being in sync and working fine, my Geth just stopped. Upon restart, what started as a long hang on FS Sync Time (repeat output with different values, no further movement beyond ...
2
votes
1answer
294 views

How to debug geth with delve?

When I run delve as below, it errors about internal packages. How to overcome it? $ dlv debug cmd/geth/main.go cmd/geth/main.go:35:2: use of internal package not allowed exit status 1
1
vote
0answers
45 views

Genesis Block mismatch with seemingly exact same file

I run a private Eth network with geth. I have two nodes on the network. I had these nodes connected over the last months. However, today when I try to connect one to the other I get an error: err="...
1
vote
0answers
53 views

Extra mining fees added in etherbase account

1st scenario - I have set miner.setEtherbase(eth.accounts[1]) and gasPrize is 0. 1 coin Transaction - And done transaction from 0th account to one random account. I expect 0 mining fees will add ...
1
vote
0answers
27 views

Can I run a javascript file using geth attach?

I want to automatize one thing. Aftert installing the Quorum nodes, I have to run: docker exec -it quorum_node1_1 geth attach /qdata/dd/geth.ipc Then I am pasting the JS code But I want to ...
1
vote
0answers
20 views

To store and retreive data using geth!

I am trying to deploy my contract using geth. Contract goes like this : pragma solidity ^0.5.0; contract hier { uint i; uint ur=0; bytes15[2][20] public UserRole; function ...
1
vote
0answers
111 views

why .call() in Truffle did not return results as expected?

I'm deploying a contract to my private chain and try to call the contract's function. After I got in the geth console and finished deploy contract, I called the function but it doesn't work ...
1
vote
2answers
56 views

Copy Geth full node onto external drive then continue syncing

My 1TB internal SSD on my mac doesn't appear to be enough for a full sync with state data. I know I can fast sync but I need full state data. I'm currently on block 5.2million and its at around 900GB ...
1
vote
0answers
117 views

Geth SWARM no peers found!

Synced via Geth lightnode to latest block --cache=2048. (7200RPM HDD with 8GB RAM) Then created new geth account and did swarm --bzzaccount $BZZ I'm am able to only browse localhost, upload to local ...
1
vote
0answers
101 views

Why is my geth node stuck on block 7130891?

My geth mainnet node (version 1.8.21) has stopped on block 7130891. Interestingly, eth.syncing returns false and eth.blockNumber constantly returns 7130891. It was working up until ~24 hours ago. ...
1
vote
0answers
56 views

How to interpret 'peer discarded announcement'?

I am having an private ethereum network consisting of 49 geth nodes running in docker containers. All geth nodes are miners. My topology is following: it's a tree with one root and having 48 leaves. I ...
1
vote
0answers
35 views

Geth and Private Blockchain Mining

I am trying to set up a private blockchain for the first time with a Geth client. After initializing my custom genesis json file, running the networkid in the console and setting up a couple of ...
1
vote
0answers
367 views

Understanding geth trie node pruning

My understanding of Geth's trie pruning is based off this geth v1.8 release blog post: https://blog.ethereum.org/2018/02/14/geth-1-8-iceberg%C2%B9/ Trie pruning is enabled on all --syncmode ...
1
vote
0answers
68 views

Ethereum geth node sync problem

I have to ethereum geth node runing as testnet syncmode=full on aws both running on same hardware and bandwidth why one is syncing very slow and other one is syncing fast? and if I will stop the ...
1
vote
0answers
126 views

Why is my private ethereum network stuck at “Recalculated downloader QoS values” while trying to mine?

I'm using Mac OS High Sierra version 10.13.6 My customgenesis.json file is this. {"config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 },"nonce": "0x0000000000000042","...
1
vote
2answers
414 views

miner.start(1) triggers but not starting the mining

I am creating my own private ethereum blockchain. sudo geth --rpcapi eth,web3,personal --rpc --networkid=15 Above command gives the below logs. INFO [09-18|10:16:42.151] Maximum peer count ...
1
vote
0answers
141 views

Getting error invalid command: “networkid=15”

geth --rpcapi eth,web3,personal --rpc networkid=15 2>&1 | tee -a blockchain.log while running the above command i get following error invalid command: "networkid=15" And the same ...
1
vote
0answers
1k views

eth.getBalance(eth.accounts[0]) always 0 on geth console

I want to deploy smart contract on rinkeby test network. I create account in Rinkeby test network.And connect with "Ethereum geth node".I successfully funded "https://faucet.rinkeby.io/". I also check ...
1
vote
0answers
77 views

Add custom block header for Clique

Is it possible to add a new header to ethereums block header without messing up go-ethereums core too much.. im looking at the block.go file specifically at this part... see the custom super header i ...
1
vote
1answer
176 views

Ethereum private chain not able to addPeer

I created a private chain with my friend with exactly the same genesis block and we wanted to connect through the admin.addPeer method. The problem is that for some reason they are able to connect to ...
1
vote
0answers
170 views

geth node pending transactions

Not really sure what information you need.. I am running geth with the following command: /usr/bin/geth --datadir /mnt/ethereum --fast --nousb --cache 4096 --trie-cache-gens 1024 --rpc --rpcaddr 0.0....
1
vote
0answers
218 views

Geth monitor graphics character encoding

I have a local network in which I start each node with both the --metrics flag and the debug api enabled. So I can attach a console and retrieve the metrics by running, for instance geth attach --...
1
vote
0answers
70 views

How to configure Geth for accepting future transactions without full sync?

I need to monitor a future (also known as pending or unconfirmed) transactions. First of all, let's start with the source code. In the core/tx_pool.go let's configure logging a little. Replace log....
1
vote
0answers
150 views

Can I curl a full node on initial sync?

I spun up a few node ~30 minutes ago and I'm not able to make a curl request, not sure if this is normal behaviour during initial sync or if something is somehow misconfigured. Request: curl -X ...
1
vote
1answer
270 views

Pending transactions Geth private Blockchain

I have an ethereum consortium blockchain based on Azure (Geth 1.7.3). I've been experimenting with an application which has a very simple smart contract. The contracts itself, stores data that comes ...
1
vote
0answers
87 views

How to change Go Ethereum ECC Curve

In Geth\crypto I found the default implementation of ECC curve (secp256k1). I would like to change it to secp256r1 curve for my private network. In normal circumstances, all I need to change is the ...
1
vote
0answers
320 views

Why does geth import block entries, receipts and headers when chainstate is up to date?

I initially ran geth --fast to sync the blockchain. Now at ~163GB, each time I restart geth (without fast), and do geth attach -> eth.syncing it starts from currentBlock:0. I do have --cache=1024 ...
1
vote
0answers
117 views

Remix: Contract exceeds gaslimit even tho blocks have a high enough gas limit

I am trying to deploy my smart contract to a blockchain that was setup for me. The genesisblock specifies the gaslimit (something around 4mil), however that was not enough for me. Instead of deleting ...
1
vote
0answers
266 views

Debug with geth

I'm trying to debug a failed ether transaction and to understand what went wrong. The transaction is this one: https://etherscan.io/tx/...
1
vote
0answers
127 views

How can I decode the output off geth --trace?

I've already gotten pretty acquainted with using the geth RPC commands to do block traces. However, I am looking for a way to do this more directly. Hopefully without directly from geth, so I don't ...
1
vote
0answers
313 views

Bad Block Error: Insufficient balance to pay for gas

I was syncing on full mode on my Ubuntu OS but when I was approaching the nearest latest block, I was shown this error: ########## BAD BLOCK ######### Chain config: {ChainID: 1 Homestead: 1150000 DAO:...
1
vote
0answers
359 views

Truffle delpoyment Error: unknown account

i am trying to deploy my smart contract on live network, i have successfully deployed the same contract on rinkeby but facing error while on live network, here is the detail 1 - Account balance 0....
1
vote
0answers
382 views

Geth diskspace outside of datadir

I am synchronising geth using geth --datadir "<mounted large drive>" --fast --cache 1024 --rpc --rpcaddr <publicip> --rpcport 8545 The chaindata folder in the mounted drive is ...
1
vote
0answers
108 views

How would one go about replaying transactions on Ethereum chains?

Ignoring EIP 155 and any other measures in place to prevent this, how would one technically replay a transaction on some other Ethereum chain? Context: I have two private chains and want to see if I ...
1
vote
0answers
276 views

Add new field 'message' for sending text message to specific address

I have created a private net following https://omarmetwally.blog/2017/07/25/how-to-create-a-private-ethereum-network/ holding 4 peers. I run Ethereum Block Explorer ( https://github.com/etherparty/...
1
vote
1answer
242 views

Constant function returns empty array + web3js

I have a simple solidity script where I tested in remix (injected Web3 using geth local environment) and worked fine returning an array of data from a constant method. pragma solidity ^0.4.11; ...
0
votes
0answers
23 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 ...
0
votes
2answers
50 views

Error: Invalid JSON RPC response: “” from web3

I run: geth --rinkeby --rpc --rpcport=8545 --rpcaddr=192.168.1.37 It works in console: geth attach http://192.168.1.37:8545 > eth.syncing false > eth.accounts ["...
0
votes
0answers
13 views

I get no data from geth console

I have installed ethereum and geth (1.9). It is running and geth --version the result is: > Geth > Version: 1.9.5-stable > Git Commit: a1c09b93871dd3770adffb177086abda1b2ff3af &...
0
votes
0answers
25 views

geth issues while running command

I am running the following command with added parameter miner.gastarget on a linux server since we had issues while developing, and have to increase gas limit sudo geth --ipcpath "/home/...
0
votes
0answers
121 views

Why my geth fast node suddenly stopped running?

Fatal: Error starting protocol stack: gap (#3) in the chain between ancients and leveldb when I run geth node for ropsten by : geth --testnet --syncmode "fast" --cache=512 --rpc --ws --shh console ...
0
votes
0answers
19 views

Geth stuck at Allocated cache and file handles

I am running a node that is synced with the Ropsten Testnetwork. Recently I run out of disk space and had to move the entire ~/.ethereum directory to a different disk. Now when I am trying to continue ...
0
votes
0answers
36 views

Where can I get list of peers to add to my geth node

My geth is running with peerCount=3 I want to add more peers to the node. I know using admin.peers() I can add but,from where I can get the list of responding/ good peers? Help is appreciated. ...
0
votes
0answers
26 views

How to send Extra data with smart contact transaction on geth server which data I will get after mining?

I have created smart contract in solidity using Remix IDE. I am doing smart contract transaction using geth server and it is working fine. But I want to send some keys (data) on geth server with ...
0
votes
0answers
29 views

Deploy contract in geth, call contract functions using go, no errors and Variable has no value. However test in remix sucessfully

My contract in remix runs ok, and I use truffle to deploy the contract successfully. When I call a contract function to assign values to mapping through the contract address using go, both geth ...
0
votes
0answers
77 views

How to capture opcode executed for a transaction

In remix debug mode, we can see opcodes executed line by line for a transaction, is there any way we can print the list of opcode and their corresponding line number(maybe memory address?) when ...
0
votes
0answers
28 views

Facing issue in starting geth client

I am using geth client(private network). When I try to start my network it shows "segmentation fault". Can you guide how to solve this issues? go-ethereum/build/bin/geth --mine --nodiscover --...
0
votes
0answers
15 views

transferAnyERC20Token on private network is not work,but on dev network is wrok

i start a geth window with this: then deploy a ERC20 contract : pragma solidity ^0.5.0; // ---------------------------------------------------------------------------- // Safe maths // -------------...