Questions tagged [geth-debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
355 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
342 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
210 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
60 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
2answers
148 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
195 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
66 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
130 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
456 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
164 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
50 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
2answers
105 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
333 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
21 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
68 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
108 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
390 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 ...
2
votes
1answer
360 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
388 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
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 ...
3
votes
1answer
87 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
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 ...
1
vote
1answer
181 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
59 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
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
0answers
137 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
575 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; ...
1
vote
1answer
110 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
176 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
14 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
59 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
335 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
1answer
92 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
145 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 ...
2
votes
2answers
938 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
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
votes
1answer
121 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
208 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
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
171 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
167 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
210 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
143 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
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....
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 (...
1
vote
0answers
148 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
262 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
1answer
197 views

Unable to import a private key to Mist

I downloaded Mist for my computer which runs Ubuntu version 18.04, and tried to import my private key but had these issues: When going to FILE > IMPORT ACCOUNTS, the IMPORT ACCOUNTS option is grayed ...
0
votes
1answer
743 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-...
1
vote
1answer
271 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(...