Questions tagged [geth-debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
348 views

Bad Block Error: Insufficient balance to pay for gas

I was syncing on full mode on my Ubuntu OS but when I was approaching the nearest latest block, I was shown this error: ########## BAD BLOCK ######### Chain config: {ChainID: 1 Homestead: 1150000 DAO:...
0
votes
1answer
261 views

Ropsten Network - geth console does'nt give updated blocknumber

I have used the command : geth --testnet --syncmode "fast" --rpc --rpcapi db,eth,net,web3,personal --cache=1024 --rpcport 8545 --rpcaddr 127.0.0.1 --rpccorsdomain "*" --bootnodes "enode://...
1
vote
1answer
84 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 --...
1
vote
1answer
287 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
75 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 ...
1
vote
0answers
209 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
192 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
84 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
46 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 ...
3
votes
1answer
595 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
537 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
105 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 ...
5
votes
1answer
3k 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
259 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
64 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
42 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
155 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
851 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
209 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
15 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
2k 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
135 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
244 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
80 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
280 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
175 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
82 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
878 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
167 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
218 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
252 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
505 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
134 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
317 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
339 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
501 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
96 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
133 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 ...
3
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
357 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
461 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
172 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
278 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
127 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
347 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/...
2
votes
1answer
774 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
31 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?