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
2
votes
1answer
400 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…...
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
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
186 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
141 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
622 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; ...
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 ...
2
votes
1answer
184 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 ...
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/...
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
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
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
0answers
218 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 --...
1
vote
0answers
169 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
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....
1
vote
2answers
798 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 [...
1
vote
0answers
149 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 ...
0
votes
1answer
199 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
0answers
210 views

Solidity sha256 returns “0x” [duplicate]

I have a simple smart contract as below. Using go-ethereum-1.8.6 , when i execute contract.sha.call() it returns the correct hash value. However, contract.getSha256.call() it returns 0x, did I do ...
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 ...
0
votes
0answers
123 views

Unable to transfer ERC 20 token usign web3js

I am trying to transfer ERC 20 token using web3.js. Below is my code: <script type="text/javascript"> var web3; function send() { if (typeof web3 !== 'undefined') { ...
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
2answers
310 views

How to keep running multiple geth nodes running on multiple VMs continously?

I have 50 VMs and I installed geth on every VM. Now I need to run geth on each VM by doing ssh on each VM. So, I am facing one problem with this when I start a geth node on VM by ssh it starts at that ...
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 ...
1
vote
0answers
87 views

How to change Go Ethereum ECC Curve

In Geth\crypto I found the default implementation of ECC curve (secp256k1). I would like to change it to secp256r1 curve for my private network. In normal circumstances, all I need to change is the ...
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?
0
votes
1answer
101 views

Insufficient funds despite positive balance

I have already scrolled through similar questions, but the solutions provided didn't work. As per title, I get the error insufficient funds for gas * price + value BACKGROUND: I am creating a ...
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 ...
1
vote
0answers
318 views

Why does geth import block entries, receipts and headers when chainstate is up to date?

I initially ran geth --fast to sync the blockchain. Now at ~163GB, each time I restart geth (without fast), and do geth attach -> eth.syncing it starts from currentBlock:0. I do have --cache=1024 ...
4
votes
1answer
342 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?...
1
vote
1answer
139 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
241 views

Constant function returns empty array + web3js

I have a simple solidity script where I tested in remix (injected Web3 using geth local environment) and worked fine returning an array of data from a constant method. pragma solidity ^0.4.11; ...
1
vote
0answers
117 views

Remix: Contract exceeds gaslimit even tho blocks have a high enough gas limit

I am trying to deploy my smart contract to a blockchain that was setup for me. The genesisblock specifies the gaslimit (something around 4mil), however that was not enough for me. Instead of deleting ...
1
vote
0answers
261 views

Debug with geth

I'm trying to debug a failed ether transaction and to understand what went wrong. The transaction is this one: https://etherscan.io/tx/...
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: ...
0
votes
1answer
26 views

How to Keep Geth Always Up-To-Date?

It kind of suck if every time we want to test our smart contract, we need to wait until our testnet blockchain is synced up. How do you usually keep it up-to-date?
1
vote
0answers
127 views

How can I decode the output off geth --trace?

I've already gotten pretty acquainted with using the geth RPC commands to do block traces. However, I am looking for a way to do this more directly. Hopefully without directly from geth, so I don't ...
0
votes
1answer
43 views

Debugging loops and non-executing code

I've got a contract here which works fine for the most part, but there's a problem with the whitelisting of addresses in that it doesn't fill the mapping, or the test array I added (wls) when ...
1
vote
0answers
358 views

Truffle delpoyment Error: unknown account

i am trying to deploy my smart contract on live network, i have successfully deployed the same contract on rinkeby but facing error while on live network, here is the detail 1 - Account balance 0....
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 ...
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
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....
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, ...
0
votes
2answers
566 views

When running geth to sync a full node, what is the meaning of cache and handles?

What does it means: cache=128 handles=1024 how to change those values?
1
vote
0answers
379 views

Geth diskspace outside of datadir

I am synchronising geth using geth --datadir "<mounted large drive>" --fast --cache 1024 --rpc --rpcaddr <publicip> --rpcport 8545 The chaindata folder in the mounted drive is ...
0
votes
1answer
320 views

Ethereum Block Synchronize delay [duplicate]

I run the geth on my server. But after days, the block number is behind the network thousands. I restart, but no use. I need remove the block and re-sync from the beginning. But later it's behind ...