Questions tagged [go-ethereum]

Go Ethereum (short: Geth) is a Golang implementation of the Ethereum protocol.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Transactions from connected peer on private geth network seldom get mined

I have two clients running on a private network, one mining and one not mining. When I send transactions from the mining node, they get mined right away. But when I send transactions from the non-...
0
votes
0answers
67 views

Fast sync ain't fast enough

I'm running geth with --syncmode=fast --cache=4096 --maxpeers=50 My laptop runs like crazy, but it's never able to reach the top of the chain (blocks are at the moment been created ~ once every 14 ...
1
vote
1answer
32 views

How to install solc of a specific version?

I want to install solc 0.4.24 but the commands given below installs the new version. sudo add-apt-repository ppa:ethereum/ethereum sudo apt-get update sudo apt-get install solc Or sudo snap install ...
1
vote
1answer
12 views

Security of Exclusively using MetaMask's Account as a Login Process

I am currently developing a Dapp in vue.js/node.js which will use MetaMask to interact with the Ethereum Network. I have the following code implemented in a JavaScript module. import web3 from 'web3';...
0
votes
0answers
21 views

How to backup and restore a Geth server in full mode?

I had the experience of losing a Geth server due to some unknown software issues and whatever I could do for that time was moving keystore files to a new server. But it was a Geth server in fast mode. ...
2
votes
0answers
22 views

How does chainlink solve the oracle problem? [closed]

I've heard a lot about Chainlink recently -- how Synthetix, Aave and other top Defipulse projects are using them. How exactly does Chainlink solve the oracle problem from a technical perspective?
0
votes
0answers
29 views

Geth Fatal: Error starting protocol stack: gap in the chain between ancients and leveldb

I'm running a Geth mainnet node. As the size of chaindata is rapidly rising, I moved ancient to an auxiliary HDD plugged in to the same system. Some time afterwards (not sure when, maybe days?) I ...
1
vote
1answer
18 views

Save stack traces while syncing

I have been working on a project, where I would like to trace all transactions from a block and for this reason I have been using a fast-syncing node. It works well, the only issue is that querying ...
0
votes
1answer
29 views

How to reset private ethereum blockchain (Geth)?

I am running private ethereum blockchain using ethereum and now I want to reset the chain and delete all the contracts, transactions and logs and restart everything from block 0. What is the best way ...
0
votes
0answers
17 views

Can send ether from geth account to wallet, but not from wallet to geth (invalid sender)

geth is running as a private network. It has its own accounts, stored in its keystore. One of them is used for mining. The others are funded with ether. MyCrypto wallet (desktop version) is connected ...
1
vote
2answers
85 views

How to get reason revert using web3.eth.call

I have a smart contract with required message and pretend to use the required/validation message in front end. require(bytes(hashAlreadyRegistered[hash]).length == 0, "Hash already registered&...
0
votes
0answers
14 views

Setting up a desktop wallet with a private network on geth

Disclosures: I've never set up a wallet before, and am new to geth. I'm not worried about security right now. My goal is to set up several wallets on my private chain (if possible) in order to learn ...
0
votes
1answer
28 views

What is the correct procedure to configure a minter on a USD Coin smart contract?

I have a USDC smart contract deployed and initialized on a local geth node. I want to mint some tokens with the 'mint' function but I am guessing that configuring the minter first with the '...
1
vote
1answer
22 views

What happens when a Contract is added to the genesis block?

Recently I found out that you can add smart-contracts to the genesis block (genesis.json) of your local ethereum network. Since normally, when you add a smart-contract via a transaction, you can call ...
0
votes
0answers
13 views

Which consensus algorithm (POW or POA) is better for private blockchain?

POW requires lots of computational power so as the chain grow long we will need more computational power which is not required for private blockchain.... On the other hand, POA is looking better ...
1
vote
0answers
36 views

How can I calculate gas price and gas limit programmatically using web3j [duplicate]

I am using following code to deploy my smart contract but now my transaction is taking too much time to mine on my private blockchain. String contractAddress = myContract.deploy(web3j, credentials, ...
1
vote
1answer
23 views

transaction receipt was not generated after 600 seconds for transaction

I am running private ethereum blockchain using geth and I am using web3j to send transactions. Since yesterday I am not able to deploy my contract, In my java console I am getting "transaction ...
3
votes
1answer
111 views

Can chaindata be split across two (or more) locations?

With the size of full nodes rapidly growing, I'm looking for a way to split my chaindata across multiple hard drives. I have one internal 1TB SSD capable of syncing the chain, and then an internal HDD ...
0
votes
0answers
11 views

ethstats in geth connection

I have created nodes in private network and started the nodes with ethstats. My server started to take the data from the nodes and displayed on the UI However, my server is stopped and after few days ...
0
votes
0answers
17 views

Specified HTTP/RPC port, yet Geth 1.9.15 will not map that port

I am trying to expose port 8545 on a local geth client for use with MetaMask on Chrome 83.0.4103.106 (x86_64), using a Windows host (10.0.18362.900). I store all my blockchain data on a separate drive,...
0
votes
0answers
17 views

Truffle test stuck when testing with geth endpoint

I tried to test the truffle suite official metacoin example using truffle test. I opened a local private chain using geth with http rpc service open at localhost:8545. My truffle-config.js file is ...
0
votes
0answers
11 views

Unable to debug Mainnet transaction in Remix

I am trying to debug mainnet tx with Remix debugger and I get following error in the console after I provide the tx hash in the debugger box. Is it even possible to achieve what I'm trying to do here ...
0
votes
1answer
35 views

net.peerCount is zero: Two miners are not connected

I'm trying to build a local private blockchain of Ethereum in my own PC using Geth v1.9.15-stable-0f77f34b. I have installed Geth in a virtual machine with Ubuntu 18.04 OS using VMware Workstation Pro....
0
votes
0answers
20 views

decode a transaction receipt which does not have an event log

Is there a way to decode a transaction receipt which does not have an event log? In the case of an event log we have topics which we can decode, but what about the case when an event isn't triggered ...
0
votes
1answer
35 views

Error: “invalid sender” from web3.eth.sendSignedTransaction()

I have a client running a private blockchain. It was started with the following command: geth --datadir private-chain --mine --miner.threads 4 --http --http.addr 127.0.0.1 --http.port 8545 --http.api ...
0
votes
1answer
54 views

how to deploy a smartcontract on the mainnet

I used truffle to create a smartcontract, and then deployed it on Rinkeby (using a local geth node) with this command. It works well. truffle migrate --network rinkeby The smartcontract is an updated ...
0
votes
0answers
31 views

Error: “Couldn't decode uint256 from ABI: 0x” Private Ethereum Network web3js MetaMask

I am trying to call the smart contract for data using this code and every time I am getting this error. I am using a Private Ethereum Network with MetaMask. The calling function is given below. ...
0
votes
1answer
26 views

Decoding input paramters throws invalidity error

Using the abi for a smart contract that I got, I was trying to decode the input parameters for a transaction receipt using web3.eth.abi.decodeParameters function. The logs.json file is as below: { &...
0
votes
1answer
44 views

Can't unlock account while deploying contract with truffle

I am trying to set up a private blockchain with geth, using truffle to deploy a smart contract to it. My goal is to get a private blockchain running with several accounts, deploy some contracts to it ...
1
vote
0answers
38 views

Opcode error when interacting with smartcontract in geth

Initially, I was working locally with ganache and the smart contracts were working correctly. Then I tried to work on geth and I get the following error: Traceback (most recent call last): File &...
1
vote
0answers
42 views

Deploy smart contract to private network

I have been having issues deploing any smart contract to my private network. I'm using geth 1.9.15. Here ALL the steps that I made to get the error: //CustomGenesis.json { "config": { &...
0
votes
1answer
31 views

How can you make HTML Text Box print the value of console.log?

How can I enter input data value in HTML Text Box? The output is good in console.log, but the HTML Text Box displays the error Object Promise. I want to know how to print the value of web3.eth....
0
votes
1answer
27 views

Should Try-Catch error handling be avoided for security? [closed]

What implications can it have to the security of a function if the content of it is wrapped into try-catch statements?
1
vote
1answer
30 views

eth_getLogs was only return erc20 tokens

i have used below command to get every logs on the special blocks but its only return erc20 token logs and ethereum transactions was not listed. my geth command: curl --data '{"method":"eth_getLogs",...
0
votes
1answer
20 views

Why eth_getLogs returns empty result for Ethereum account address?

I'm developing an Ethereum platform and need to fetch the events log of a desired address. I found a code like this: curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"topics":...
0
votes
0answers
6 views

I’m trying to build a versioning System using IPLD and IPFS .Is it possible to publish hashes from multiple users to the same IPLD object?

I’m using Ipfs-api from Infura for interaction .I’m able to create and upload files to the Ipld object .I want to store different versions of the same file on the object.These versions can be ...
0
votes
1answer
35 views

Convert from ether to wei using go-ethereum

Is there any function in go-ethereum, which can convert values from ether to wei and vice-versa? I should notice, that I'm not using geth as standalone app, I'm using go-ethereum as imported ...
0
votes
1answer
39 views

How to implement ether transfer from one EOA to another using a contract?

I am working on a private development network set up with geth with PoA consensus. Everything is working well from the geth console. I have written a Solidity contract to initiate some ether transfers ...
1
vote
2answers
27 views

Where are the smart contract accounts stored in geth?

I have a single geth node running a private blockchain with a network ID N and data directory data/. I had deployed a smart contract ContractName on the same and things were working fine. I wanted to ...
1
vote
1answer
31 views

How does NONCE prevent a replay attack in case of knowing NONCE value?

I have a question about a nonce in the Ethereum network. I understand that a nonce helps to prevent a replay attack, but there is one particular part that I don't understand. I have applied my ...
0
votes
0answers
10 views

Geth: How to debug an “invalid sender” error?

I am sending transaction to a private, local, instance of geth. I run geth using ./geth --rinkeby --syncmode fast --rpc --rpcaddr 192.168.229.132 --ipcdisable I am using web3.js to send signed ...
2
votes
0answers
27 views

Does Ethereum support just bilinear pairing calculation not the pairing check?

I need to implement bilinear pairing calculation on my contract. Specifically, I have uploaded some parameters and need other users to calculate the pairing for me and I will pay for them if their ...
0
votes
1answer
25 views

How can we decode transaction and event data shown on blockchain explorer

How can we decode transaction and event data shown on blockchain explorer. I have tried couple of blockchain explorer like (epirus-free, blockscout) but they are showing only encoded values of events ...
0
votes
0answers
17 views

Why is Smart Contract call() method returning NULL in Ethereum Private Blockchain

This is where I am calling the contract function certify_find (hash, callback) { contract.methods.findDocHash(hash).call( function (error, result) { if (error) { console.log("Returned ERROR ...
0
votes
0answers
12 views

Ethreum representation in OSI Layer

I need urgent support with Ethereum Networking. A potential enterprise client is asking about the networking of Ethereum Node Peering. We have given them a lot of information about RLPx protocol and ...
0
votes
0answers
26 views

Remix IDE Ethereum is blank page on local host

After installing Remix IDE, it shows blank page! I use these command lines to install remix IDE: sudo apt install build-essential sudo npm install -g node-gyp npm install remix-ide -g remix-ide ...
0
votes
0answers
31 views

Filter Not Found Exception Thrown randomly with TransactionFlowable

Web3J version - 5.0.0 Geth version - 1.9.14 -Stable Ubuntu 18.04 - 64-bit 32GB RAM 1.9 TB HDD Geth fully synced and running JDK - 1.8 Spring - 1.5 I have two subscription ...
0
votes
0answers
9 views

How to extract the block sealer identity from the extraData hexbytes (which is renamed proofOfAuthorityData) in web3.py?

Question is in the tittle. I use a local network with PoA clique and middleware w3 = Web3(IPCProvider('~/mygethnode/geth.ipc')) w3.middleware_onion.inject(geth_poa_middleware, layer=0) And then ...
0
votes
1answer
47 views

[question deleted because not relevant] [closed]

[question deleted because not relevant anymore]
2
votes
1answer
37 views

What is the network layer in which RLPx is used for peering in Ethereum

We had a question from our client as such they need to know in which Network layer is the RLPx protocol being used for the peering process I have got to know that peering process happens using RLPx ...