Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [geth-debugging]

The tag has no usage guidance.

0
votes
0answers
25 views

Why do my ETH and ETC geth nodes perform differently when using web3.py?

I have the same web3.py program running on both ETH and ETC that are connected to their respective geth nodes (that I am hosting). The ETC program has been performing as expected for days with no ...
1
vote
1answer
23 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 ...
2
votes
1answer
21 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 ...
1
vote
0answers
24 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 ...
0
votes
1answer
19 views

Transaction cannot found when using debug.traceTransaction

I am trying to use the debug.traceTransaction API but got the following error: >debug.traceTransaction("0x3684f071b34da1116282ee88a106a8f2a266d273ef7d8964957f65128fb58d77") Error: transaction ...
0
votes
0answers
24 views

Geth Go always crash after few rpc call

My node sometimes crash after I made few rpc call in a row. How can i make it not crash each time?
0
votes
0answers
25 views

How to re-compile geth.exe after source code changes?

I have cloned geth from https://github.com/ethereum/go-ethereum/ and followed the steps to install it. It runs fine, however, after editing the source code I am having difficulty getting changes to ...
0
votes
1answer
11 views

geth account import in gethjs console

I can´t execute geth account import command in gethjs console. What is the comand equivalent?? any help?? Thx
1
vote
1answer
42 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 ...
0
votes
0answers
16 views

How to modify existing geth commands

I am wondering if it is possible to modify existing commands on geth. For example the command $puppeth would produce this +-----------------------------------------------------------+ | Welcome to ...
0
votes
1answer
57 views

How long does it take to sync Rinkeby network with geth?

I am syncing the Rinkeby network with geth geth --rinkeby --rpc --rpcapi="personal,eth,network,web3,net" --ipcpath="~/.ethereum/geth.ipc" When I run eth syncing in geth console, it is showing { ...
1
vote
0answers
40 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 ...
0
votes
2answers
36 views

How to let evm execute one function from a smart contract and receive outputs in a handy way?

I am a newbie to this field so I apologize in advance if this seems trivial. Say I have written some code in Solidity, for instance something like the quick sort code (https://gist.github.com/subhodi/...
1
vote
1answer
27 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 --...
0
votes
0answers
24 views

Issue with setting up web3 js connection with multiple ethereum nodes

I have setup an Ethereum network with 2 nodes - A and B. I deployed a contract on both the nodes. What the contract does - mapping(uint=>string) Record; function addRecord(uint id, string ...
0
votes
0answers
28 views

Issues with Ethereum private network (with mining and gas limit)

I setup a private Ethereum node, but still see issues: Mining almost always does not work.I keep getting messages - "Generating DAG in progress" and saw a msg: INFO [10-12|09:07:59.735] Block ...
0
votes
2answers
59 views

why geth.log too large

geth.log is 84.73GB, so that mobile phone complains no disk space left. Would the geth.log be mandatory to generate?
1
vote
1answer
48 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
0answers
47 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 ...
0
votes
1answer
41 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 ...
1
vote
1answer
64 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,...
0
votes
0answers
25 views

ERROR[10-06|12:16:29.143] Section processing failed

I am to sync ethereum blockchain on Ubuntu 18.04, 64 bit using command **geth --datadir "/home/maham/Ethereum/EthereumMainNet" --cache 6144** After nearly 11 hours of syncing it stopped with the ...
1
vote
1answer
45 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[...
0
votes
1answer
20 views

Instrumenting GETH: breakpoints on evm never hits

I'm trying to instrument the GETH virtual machine, and in order to do so I'm studying the geth code running it on debug. I expected that, during syncing, EVM is used to compute state of each single ...
0
votes
1answer
36 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 ...
0
votes
1answer
82 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 ...
0
votes
1answer
17 views

Which interface for GETH is the most ideal to learn? How do they differ?

In trying to learn Ethereum and its inner working, i came a crossed https://www.ethereum.org/cli . It states... "Geth and Eth are multipurpose command line tools that run a full Ethereum node. They ...
0
votes
1answer
27 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 ...
1
vote
0answers
39 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
1answer
81 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
0answers
39 views

How can I check if the script is preload by geth?

I try to preload the javascript when I run geth. But the function doesn't work. How can I check if the function been loaded by geth? The command: geth --datadir=/var/geth --networkid=9234 --rpc --...
2
votes
1answer
85 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
1answer
131 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…...
1
vote
1answer
52 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 ...
3
votes
1answer
33 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 ...
1
vote
1answer
413 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 ...
1
vote
1answer
36 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
29 views

Does geth have to sync before getting public data?

I started a geth node, passed in the ABI and ran contractInstance = MyContract.at('..'). Then when I ran contractInstance.somePublicVariable(123) I am seeing 0 values everywhere. Is this because my ...
1
vote
1answer
36 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
0answers
62 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 ...
0
votes
2answers
189 views

Get array values in Truffle console

Is there a way to print the values of an array in my contract to a console (using truffle or geth for example)? Suppose this is my contract: contract MetaCoin { uint256[] public someNumbers; ...
0
votes
0answers
105 views

How to confirm if geth node has completed syncing

I am running a geth node using the following command: geth --rpc --networkid 3 --rpcport 8545 --rpcaddr 0.0.0.0 --rpccorsdomain --verbosity 4 --cache 4GB I get the following output in geth.attach ...
0
votes
0answers
60 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] ...
2
votes
1answer
100 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>&...
0
votes
0answers
10 views

Eth on unlocking auto transfers

Facing a weird issue on geth console on my private network. So, I was trying to unlock an account so that my web3 can access it. As soon as I unlocked, all my ethers just vanished in seconds.. I could ...
0
votes
1answer
24 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
3answers
150 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
32 views

How to remove some history blocks

I am using geth to sync ethereum blocks, now the best block is 5100000, but I want to restart sync from block 5000000, is there any possible way to do it, block height doesn't need to be accurate ...
0
votes
1answer
43 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
2answers
85 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 ...