Questions tagged [geth-debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
111 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') { ...
0
votes
1answer
2k views

CONNECTION ERROR: Couldn't connect to node http://localhost:8545

I have started geth using below: geth --rpc --rpccorsdomain * --rpcport 8545 --rpcapi personal,web3,eth,net and this is my web3.js code: <script src="/bower_components/web3/dist/web3.min.js">&...
1
vote
2answers
284 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 =...
0
votes
1answer
197 views

Private Ethereum Chain and Web3 js API

I've developed my own private chain for testnet using geth and CLique and i have some issues with web3.js environment. I starts my nodes using the console parameter in order to get to the Web3 console ...
2
votes
1answer
104 views

geth web3 api with web3 version 1?

Due to security concerns with rpc, I'd like to tunnel into my geth instance and run ipc commands. However, all the scripts I've written use version 1 beta of web3, which geth does not yet support. I'...
3
votes
1answer
334 views

Creating new account from web3 showing error

while creating new account from angular using web3 personal.newAccount function() undefined import { Injectable } from '@angular/core'; import { User } from './login/user'; const Web3=...
3
votes
1answer
408 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
86 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 ...
0
votes
1answer
97 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 ...
0
votes
1answer
218 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
0answers
306 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
316 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?...
0
votes
1answer
129 views

How do I start to write a function to debug Transaction?

I want to write a program that will do: for the given txhash debug TraceTransaction and return that What can i do in Go ? Do you have any materials, a tutorial or can you give me tips on how to ...
2
votes
1answer
278 views

How to debug geth with delve?

When I run delve as below, it errors about internal packages. How to overcome it? $ dlv debug cmd/geth/main.go cmd/geth/main.go:35:2: use of internal package not allowed exit status 1
1
vote
1answer
133 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
0answers
116 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
1answer
236 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
239 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
987 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
1answer
641 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
25 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
123 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
2answers
302 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 ...
1
vote
0answers
301 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:...
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 ...
3
votes
2answers
289 views

Smart Contract firing send ether transaction that's not in the contract

I need some help with my smart contract, here's the smart contract code pragma solidity ^0.4.18; contract UserToken { mapping (bytes32 => uint8) public tokenBalance; bytes32[] public ...
1
vote
0answers
350 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....
0
votes
1answer
497 views

Geth: Genesis block mismatch & subprotocol error

I'm using Geth 1.7.3 in MacOS 10.13.2 High Sierra. When I'm running Geth to sync the main network, the verbose log (verbosity=4) tells there are quite a few errors: subprotocol error Genesis block ...
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/...
0
votes
2answers
1k views

MetaMask cannot send transaction on local network

I'm running Geth in dev mode locally, like this: geth --ipcpath test-chain-directory/geth.ipc --datadir test-chain-directory --dev --rpc --rpccorsdomain "*" console I can send a transaction from the ...
1
vote
2answers
331 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
354 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-...
0
votes
1answer
193 views

Geth syncing - Jan 18, how much time should wait before I call it quits. (First time miner)

After 3 days; current status: > eth.syncing { currentBlock: 4829460, highestBlock: 4829665, knownStates: 19675738, pulledStates: 19646971, startingBlock: 4828906 } Getting ti
2
votes
1answer
769 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
134 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, ...
1
vote
0answers
351 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 ...
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
2answers
541 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?
0
votes
1answer
316 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 ...
0
votes
1answer
549 views

Reference Error while debugging

In the geth console attached to localhost: debug.traceTransaction("Transaction hash"); ReferenceError: 'debug' is not defined at :1:1
0
votes
1answer
2k views

Remove Ethereum wallet from Mac downloaded from GitHub

I'm looking to remove the Ethereum wallet I downloaded off of GitHub, from my Mac: https://github.com/ethereum/mist/releases ... I've pulled in the application to AppCleaner, in hopes that it would ...
9
votes
2answers
1k views

Persistent “deep transaction reorg” whilst syncing full geth node

Whilst syncing a new full node using the geth comand "geth --syncmode full", every other line after a few hundred blocks I see the following: WARN [12-02|02:30:46] Skipping deep transaction reorg ...
0
votes
1answer
168 views

How to start GETH console?

I'm getting the following: ➜ voting_truffle geth console WARN [11-29|22:53:43] No etherbase set and no accounts found as default Fatal: Error starting protocol stack: datadir already used by another ...
1
vote
0answers
108 views

How would one go about replaying transactions on Ethereum chains?

Ignoring EIP 155 and any other measures in place to prevent this, how would one technically replay a transaction on some other Ethereum chain? Context: I have two private chains and want to see if I ...
0
votes
1answer
115 views

How to compile contract when eth.getCompilers() was removed since v.1.6?

Disclaimer: it is self Q&A post to help others with issue I faced with. Please note this is a possible solution that works for me, there is might be a better way to solve the issue. The issue: ...
1
vote
0answers
268 views

Add new field 'message' for sending text message to specific address

I have created a private net following https://omarmetwally.blog/2017/07/25/how-to-create-a-private-ethereum-network/ holding 4 peers. I run Ethereum Block Explorer ( https://github.com/etherparty/...
0
votes
1answer
961 views

How to speed-up Geth transactions in private blockchain?

I'm testing Ethereum smart contracts with web3j and Geth. Geth is running with scripts like that: PASSFILE=/var/folders/_l/kl9pdj2x50v7416j8htb6w740000gn/T/pwd6597172766860806720.tmp DATADIR=/var/...
3
votes
1answer
711 views

(anonymous): Line 1:20 Unexpected token : while adding node to private ethereum network

I'm trying to setup 2 node ethereum network in my local desktop one on port 30305 and another on 30305. set up Node 1 - $ ./build/bin/geth --datadir data/node1 --port 30304 --networkid 1234 init ...
0
votes
1answer
117 views

Wrong address when I do geth attach

When I do geth attach I see the following: $ ./geth attach Welcome to the Geth JavaScript console! instance: Geth/v1.7.1-stable-05101641/linux-amd64/go1.9 coinbase: ...