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
14 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
17 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
23 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
17 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
30 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
30 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
10 views

web3.js How can I know is any transaction erc20 transfer or not

in web3.js or geth rpc, Is there anyway to understand a transaction is erc20 transfer or not?
1
vote
1answer
20 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
10 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
33 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
14 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
21 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
33 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
14 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
22 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
26 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
0answers
31 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
22 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
40 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
65 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
37 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 ...
2
votes
1answer
19 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
149 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
28 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
22 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
32 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
42 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
0answers
36 views

debug_TraceTransaction works very slow

i want to get all transaction for ENG(Enigma) from blockchain. There are some bad transaction in blockchain, for determine its, i use "debugTraceTransaction" RPC-command with curl. I ran "geth" ...
0
votes
2answers
100 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
56 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
47 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
70 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
9 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
17 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
2answers
73 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
28 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
30 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
69 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
2answers
182 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 "...
1
vote
0answers
358 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
votes
1answer
43 views

Difference between “make geth” and “make all” in geth when building from source

In geth, when I run the command "make geth", I'm then able to run geth successfully. But, in the Readme, it suggests to run "make all" immediately afterwards. I was wondering what "make all" does, ...
1
vote
1answer
61 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
0answers
37 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 ...
0
votes
1answer
47 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
134 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
91 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 --...
0
votes
1answer
26 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 ...
1
vote
0answers
30 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....
0
votes
0answers
44 views

Geth not getting synced on AWS

We tried different instances from medium to x-large on amazon but the geth client is always several blocks behind syncing. We run geth with --syncmode "fast" and --cache 4096 or 2048 on --testnet Geth ...
3
votes
1answer
484 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 (...