Questions tagged [geth-debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
43 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 ...
0
votes
0answers
19 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/...
1
vote
1answer
13 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: ...
0
votes
1answer
500 views

Geth: Genesis block mismatch & subprotocol error

I'm using Geth 1.7.3 in MacOS 10.13.2 High Sierra. When I'm running Geth to sync the main network, the verbose log (verbosity=4) tells there are quite a few errors: subprotocol error Genesis block ...
0
votes
1answer
195 views

Geth syncing - Jan 18, how much time should wait before I call it quits. (First time miner)

After 3 days; current status: > eth.syncing { currentBlock: 4829460, highestBlock: 4829665, knownStates: 19675738, pulledStates: 19646971, startingBlock: 4828906 } Getting ti
2
votes
1answer
281 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
0
votes
1answer
2k views

CONNECTION ERROR: Couldn't connect to node http://localhost:8545

I have started geth using below: geth --rpc --rpccorsdomain * --rpcport 8545 --rpcapi personal,web3,eth,net and this is my web3.js code: <script src="/bower_components/web3/dist/web3.min.js">&...
0
votes
2answers
98 views

Golang - alloc large Wei amount to address

Im modifying the puppeth genesis wizard file for my own use case. I want to be able to assign a pre-set amount in Wei to a few chosen addresses.. Im having some trouble figuring out how to format the ...
1
vote
1answer
254 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 ...
0
votes
0answers
38 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
1answer
25 views

Web3.py cannot connect to geth --dev node via IPC

I've launched a geth client over IPC: geth --dev --allow-insecure-unlock --ipcpath ipc://$HOME/Library/Ethereum/geth.ipc And trying to connect using a Web3 IPC provider: my_provider = Web3....
2
votes
2answers
911 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 "...
0
votes
1answer
36 views

How big is the Geth Fast Node Currently?

I am trying to embark on getting all the contract addresses pulled from the Ethereum blockchain. From what I read, a fast node is all that is required for this (getting blocks->txns->contractAddress ...
0
votes
0answers
14 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 ...
1
vote
1answer
103 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 ...
1
vote
0answers
29 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="...
0
votes
1answer
710 views

getting --> Fatal: invalid genesis file: invalid character '/' looking for beginning of object key string

I'm just getting started with this. I started by reading this collection of articles: https://medium.com/m/global-identity?redirectUrl=https://hackernoon.com/heres-how-i-built-a-private-blockchain-...
0
votes
0answers
23 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. ...
2
votes
1answer
51 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?
0
votes
0answers
24 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 ...
1
vote
2answers
386 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 ...
0
votes
1answer
58 views

How to handle exceptions in ethreum private network using revert(),throw

I am running a private ethereum network using geth --rpc --rpccorsdomain "*" --datadir ./chaindata --port "30330" --nodiscover --rpcapi "db,th,net,web3" --networkid 2010 init genesis.json and ...
0
votes
1answer
139 views

creating and array using type Big.Int and counting the sum of all integers inside it

Im communicating with a smart contract trying to get the balances from a list of addresses. I then want to get the sum of all balances but I am stuck on actually creating the array to store all the ...
0
votes
1answer
65 views

eth.contract gives undefined error

I have a private ethereum system with a couple of nodes. I'm trying to deploy a contract on one of them. To begin with, I am trying to just deploy a sample contract from the net. This is what I'm ...
0
votes
1answer
127 views

solidity contract leveldb

I'm trying to add a simple string and store it in the Ethereum database as a key-value pair. (ID as key and a string as value) What would be the best way to do that? I have setup multiple geth ...
0
votes
0answers
29 views

Geth returning balance 0 [duplicate]

I started my geth using fast sync first and then normal sync once it was almost synced. 'currentBlock' is not increasing since hour and 'highestBlock' keep on increasing. geth --testnet --rpc --cache=...
1
vote
1answer
43 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 ...
0
votes
1answer
83 views

Ropsten Block Height is different than Block Height on local GETH instance

I am running a GETH instance on my machine geth --testnet --syncmode "fast" --ipcpath /home/ubuntu/.ethereum/geth.ipc --rpc --rpcapi db,eth,net,web3,personal --cache=2048 --rpcport 8545 --rpcaddr 127....
0
votes
1answer
201 views

Private Ethereum Chain and Web3 js API

I've developed my own private chain for testnet using geth and CLique and i have some issues with web3.js environment. I starts my nodes using the console parameter in order to get to the Web3 console ...
0
votes
1answer
130 views

How do I start to write a function to debug Transaction?

I want to write a program that will do: for the given txhash debug TraceTransaction and return that What can i do in Go ? Do you have any materials, a tutorial or can you give me tips on how to ...
1
vote
1answer
168 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 ...
0
votes
2answers
143 views

Does running a Geth RPC server locally also require having a full Ethereum node?

I've been trying to learn about smart contracts and attempting to work through a few examples. Specifically, I found this one about creating an Oracle -- https://github.com/axic/tinyoracle. The ...
1
vote
0answers
37 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 ...
0
votes
1answer
322 views

Port number for connecting web3 to mainnet using Geth

I am trying to connect web3j object to the mainnet using geth. I can't use infura because i am working with replay transaction observable function which doesn't work with infura. To connect with the ...
1
vote
1answer
442 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,...
3
votes
2answers
289 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 ...
0
votes
1answer
171 views

How to start GETH console?

I'm getting the following: ➜ voting_truffle geth console WARN [11-29|22:53:43] No etherbase set and no accounts found as default Fatal: Error starting protocol stack: datadir already used by another ...
1
vote
0answers
26 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 ...
0
votes
3answers
334 views

How To Sync Ethereum Node?

I want to run full ethereum mainnet node on ubuntu, what dependencies are required to install and run geth on ubuntu?
0
votes
0answers
25 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 ...
7
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 (...
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 ...
4
votes
0answers
101 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 ...
0
votes
1answer
555 views

Reference Error while debugging

In the geth console attached to localhost: debug.traceTransaction("Transaction hash"); ReferenceError: 'debug' is not defined at :1:1
0
votes
0answers
67 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
1answer
25 views

How does one go about implementing the ContractTransactor interface from the bind package in go-ethereum?

Hey guys thanks in advance! Here is the interface provided by the go-ethereum library in the bin package. I need an example on how to implement this interface please :) // ContractTransactor ...
0
votes
0answers
74 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
0answers
100 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 ...
0
votes
2answers
1k views

MetaMask cannot send transaction on local network

I'm running Geth in dev mode locally, like this: geth --ipcpath test-chain-directory/geth.ipc --datadir test-chain-directory --dev --rpc --rpccorsdomain "*" console I can send a transaction from the ...
0
votes
0answers
26 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 --...