We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [geth-debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9
votes
2answers
1k views

Persistent “deep transaction reorg” whilst syncing full geth node

Whilst syncing a new full node using the geth comand "geth --syncmode full", every other line after a few hundred blocks I see the following: WARN [12-02|02:30:46] Skipping deep transaction reorg ...
8
votes
3answers
1k views

How to receive revert() reason for past transactions?

I run a geth/parity nodes for broadcasting user's transactions to Ethereum blockchain. Some of contract functions provide reasons for revert (see examble below): contract Example { function test (...
4
votes
1answer
341 views

Is there a way to debug live smart contracts on main network?

Debug button doesn't work on Remix when targeting a live smart contract. What are my other options? Can I copy the current main Ethereum network snapshot with ganache and then run my own transactions?...
4
votes
1answer
444 views

Geth signing stops after a period of time

I have 5 clients setup (1 boot, 1 geth, 3 signers using Clique) - Most of the time they work no problem and mining starts, sometimes mining just stops with no warning nor issue/error message. Another ...
4
votes
0answers
109 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
1answer
2k views

What is `--gcmode=archive` in geth

I have been running a geth node, mostly to see event logs fired by my contracts. I ran the node with syncmode=fast and finally the node is synced. I can successfully read the logs. Now, I read here ...
3
votes
2answers
1k views

Why is Geth ignoring --nodiscover?

I'm firing up a test network like so: geth --networkid=43766 --datadir ~/.ethereum/authchaintestnet/ --unlock b40474571297fd05ac82fd2994f45c977f3ca77a --password ~/.ethereum/authchaintestnet/...
3
votes
2answers
3k views

Fast syncing showing endless importing new state entries Geth 1.7.3

I used this command to sync to the chain geth --fast --cache=1024 --rpc --rpcaddr "localhost" --rpccorsdomain "*" --rpcport 8545 --rpcapi="db,eth,net,web3,personal,web3" upgradedb And then when I ...
3
votes
1answer
748 views

(anonymous): Line 1:20 Unexpected token : while adding node to private ethereum network

I'm trying to setup 2 node ethereum network in my local desktop one on port 30305 and another on 30305. set up Node 1 - $ ./build/bin/geth --datadir data/node1 --port 30304 --networkid 1234 init ...
3
votes
1answer
88 views

Error starting protocol stack

I am doing a tutorial and I get the following message. Fatal: Error starting protocol stack: listen udp :30334: bind: Only one usage of each socket address (protocol/network address/port) is ...
3
votes
1answer
424 views

Calling function in one contract from another contract in private blockchain by Geth

I have problem with smart contract development using Remix solidity in private blockchain by Geth. I have two smart contracts such as Factory contract and Contract contract. I create the Factory ...
3
votes
1answer
353 views

Creating new account from web3 showing error

while creating new account from angular using web3 personal.newAccount function() undefined import { Injectable } from '@angular/core'; import { User } from './login/user'; const Web3=...
3
votes
2answers
293 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
775 views

Waiting for a contract to be mined

I added the following code for implementing a wait logic after deploying the contract and before calling the functions from the contract. This is same as mentioned in some other posts in Stackexchange....
2
votes
1answer
1k views

geth v1.8 unable to download the last 65 blocks for the mainnet

Currently running geth 1.8 on Ubuntu 17.10 on an SSD. Anytime I start geth, it will always sync until it hits the last 65 blocks where it just hangs and looks like it stays stuck at downloading the ...
2
votes
1answer
183 views

eth.blockNumber does not match any network's current block

I set up a geth full node on Rinkeby with the following command: /usr/bin/geth --syncmode fast --nousb --cache 3072 --trie-cache-gens 1024 --rpc --rpcaddr 127.0.0.1 --rpcport 8545 --networkid 4 2>&...
2
votes
1answer
96 views

Geth: Checkpoint challenge timed out, dropping

I get a warning in Geth that I was not able to find any information on: Checkpoint challenge timed out, dropping What does this mean?
2
votes
1answer
495 views

Where is the function that rewards the miner address for mining the block?

I have recently been digging into go-ethereum and have 'plugged' my own consensus mechanism which requires a node to solve a simple equation (2+2) etc to seal a block. However, even after letting it ...
2
votes
1answer
386 views

Weird error 'The method eth_accounts does not exist/is not available'

I am trying to use truffle to migrate with the following command truffle migrate --network ropsten and I face the following error The method eth_accounts does not exist/is not available I tried to ...
2
votes
2answers
972 views

NO miner module in geth

I am new to ethereum. I installed mist on Mac(10.13.5), but did not "brew install ethereum". When try run ">geth attach" in Terminal, it does not show "miner" module. Below is what the screen shows "...
2
votes
1answer
76 views

Private Ethereum Cluster showing ENR Errors

I am trying to run a 3 node cluster, 1 among three is miner. When I try to make sendTransation its seems be signed but seems to halt forever with message signed and must wait for others. The logs ...
2
votes
1answer
398 views

How to fix “Fatal: Error starting protocol stack: listen udp :30303: bind: address already in use”?

I am referring this tutorial and miner.start(1) works fine and mining is started as expected like below. INFO [09-05|15:41:26.486] Commit new mining work number=221 sealhash=1892af…...
2
votes
1answer
110 views

geth web3 api with web3 version 1?

Due to security concerns with rpc, I'd like to tunnel into my geth instance and run ipc commands. However, all the scripts I've written use version 1 beta of web3, which geth does not yet support. I'...
2
votes
1answer
372 views

go lang installation error - raspberrypi

I needed to create privatenet in raspberrypi and installed go1.9. Cloned geth, extracted it. When 'make geth' command is passed I get following error. Please help me out github.com/ethereum/go-...
2
votes
1answer
292 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
2answers
341 views

Is the EVM memory model a word array or byte array?

The yellow paper says that the memory model for the EVM is a word-addressed byte array (YP 9.1), but when I run debug.traceTransaction in Geth, the memory looks more like an array of words, maybe a ...
1
vote
2answers
438 views

Error: Failed account unlock attempt, is this an attack?

If I use my geth --identity "MyNodeName" --rpc --rpcport "8545" --rpccorsdomain "*" --datadir Users/xxxx/TestChain1 --port "30303" --rpcaddr "127.0.0.1" --nodiscover --rpcapi "db,eth,net,web3,...
1
vote
1answer
25 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 --...
1
vote
1answer
106 views

automate geth setup: automate addition of enodeInfo url of other peers

I am trying to setup multiple geth nodes on multiple docker containers. I am using a script that can initialize a genesis json file and start geth. After that, I am doing the following manually (and I ...
1
vote
1answer
319 views

Creating wallets with Web3j

I generate a code to create wallets for a private chain made with ethereum. String password = unlockAccountParameter.getPass(); ECKeyPair keyPair = Keys.createEcKeyPair(); WalletFile ...
1
vote
1answer
214 views

What is the bucket list in geth?

I get the error below when starting my PoA network. I have no idea what defines a bucket list. Has anyone more details? DEBUG[06-01|10:58:47] Found seed node in database id=ed8b3be93192299f addr=...
1
vote
2answers
293 views

Unable to work with web3.js on geth

This is my code: function send() { Web3.providers.HttpProvider.prototype.sendAsync = Web3.providers.HttpProvider.prototype.send; var web3 = new Web3("http://localhost:8545"); var data =...
1
vote
1answer
138 views

Configuration settings for launching your own local Geth node for smart contract deployment & execution?

I need to know how to configure a Geth node that I am running locally for the purpose of deploying smart contracts to in a test net context. I have the Geth source project setup successfully in ...
1
vote
1answer
667 views

Go can't find common and types package when building Geth client node project?

I am trying to build the Ethereum Geth client node on an Ubuntu 14.04 LTS box. I am using the 2017.3 Goland client. When I try to compile the project I get the errors below: interfaces.go:25:2: ...
1
vote
1answer
20 views

Is “geth debug trace_2” on “Etherscan.io” a native geth output?

I am aware of the debug_traceTransaction function. On Etherscan.io there is an option to view transaction, called Geth Debug Trace_2, which produces output in a format that I need. The option is here: ...
1
vote
1answer
32 views

Ethereum transaction fails in simultaneous calls

I am making two calls simultaneous call with a single wallet. First I am making a contract call then I am making a ether transaction call. The first call succeeds, but the next call fails. I got this ...
1
vote
1answer
140 views

Connect different machines with PoA

i want to connect two different machines in a ethereum private network! I did it before with a normal PoW-Consesus but with PoA created by puppeth i cant see some Peers when i try: admin.peers ...
1
vote
1answer
234 views

TypeError: 'deploy' is not a function

When running the following code within geth console, I am recieving the following error: TypeError: 'deploy' is not a function var storageContractAbi = storageOutput.contracts['contracts/29.sol:...
1
vote
1answer
62 views

Starting multiple private network in one computer causes Fatal: Error starting protocol stack: Access is denied

Question: How to fix Fatal: Error starting protocol stack: Access is denied? Here is the steps that I try: geth --datadir block1 init /d/nodes/_ethereum/genesis.json geth --datadir block1 --...
1
vote
1answer
210 views

All geth nodes getting the same enode id

I have a script to setup a geth Ethereum node which has worked well for me most of the time. (been using it for the last 2-3 weeks). I have used it regularly to setup multiple geth instances on ...
1
vote
1answer
482 views

Ethereum gas limit issue while sending transaction from web3 client (private network)

I have setup a private Ethereum system using geth. And am running a client that uses a web3.js file to connect to the Ethereum system. While trying to send a transaction or call some contract function,...
1
vote
1answer
173 views

Geth Error: Cannot access contractAddress from the transaction receipt

I am trying to instantiate contracts via the geth console. Here are the instructions I am running: var bytecode = "0x6003600501600202600055" var createTx = eth.sendTransaction({ from: eth.accounts[...
1
vote
1answer
71 views

Get the amount of Smart Contracts hosted on the ETC blockchain

I have a couple of questions: How can I determine the amount of Smart Contracts that are hosted on the ETC blockchain? Of these smart contracts, how many of them have been verified? I guess geth is ...
1
vote
1answer
183 views

Solidity - function “now” result

I would like yo know what kind of format is returned by the function now. I am calling this function in a contract and sending the result like an event to my .js file. The structure that I see is ...
1
vote
1answer
37 views

How can an ethereum node read a contract call arguments?

I'm playing around with ethereum and I know that any data sent to a node must be processed by all nodes in the network. When I look into my geth terminal I don't see any of that data. Is there a way ...
1
vote
1answer
117 views

go-ethereum as daemon process / service on Ubuntu with Toml file

Created Daemon process from the Link The parameter in the config.toml Configuration file is not working in the System Service and geth configuration is working with default configuration. [Service] ...
1
vote
1answer
275 views

Simple single-node geth test network not mining

I have set up a test node with geth as described here. I followed the instructions exactly, except: I created a second account with personal.newAccount("password") and so use miner.setEtherbase(...
1
vote
1answer
136 views

What if there is an interruption in the geth sync process

I run geth attach command that s currently doing some sync with the blockchain. I can see the status in the geth JavaScript console like, When I execute the command of eth.syncing, The output is, ...
1
vote
1answer
1k views

What is bloombits?

I'm syncing my node with geth and I used the light mode. >start geth --syncmode "light" Then a parameter type="bloombits" appeared. What is bloombits?
1
vote
2answers
796 views

I am not sure if mining has started with ethminer

0:28 m 15:38:55|ethminer Got work package: #6c0f3492 m 15:38:56|ethminer Speed 0.00 Mh/s gpu/0 0.00 [A0+0:R0+0:F0] Time: 00:28 m 15:38:56|ethminer Speed 0.00 Mh/s gpu/0 0.00 [...