Questions tagged [go-ethereum]
Go Ethereum (short: Geth) is a Golang implementation of the Ethereum protocol.
5,256
questions
1
vote
1answer
24 views
where is receipt tree stored?
Simple question.
I know that state trie is stored in each node's drive. but they are not stored on actual state.
Question 1) What about receipt tree ? do they get stored separately too from the chain ...
0
votes
1answer
24 views
in which currency does state trie's balance is stored?
My question is very simple and I couldn't find the answer for it.
There's a state trie in ethereum. Each state trie has address as key and value as an object which has balance as one of the keys.
I am ...
0
votes
1answer
139 views
Easiest way monitor txpool
I'm quite new with ethereum development and I'm wondering how to monitor new transactions on the txpool in realtime with the least delay possible. Do I have to run a full geth node or are there other ...
0
votes
0answers
36 views
Geth service gets killed on multiple concurrent requests of web3.personal.importRawKey function
I have an ethereum-POA node setup on a VM having below mentioned configurations. Using NodeJS Web3 client, I am trying to create new wallets using the web3.personal.importRawKey function.
VM ...
0
votes
0answers
32 views
How come AWS geth can't find peers?
I am setting up a geth light client on an AWS EC2 instance. After running geth, the client seems to not be able to discover any peers and remains idle. Running admin.peers in the console shows that ...
0
votes
0answers
30 views
Run Geth's RPC server automatically on kubernetes with using an official docker Geth image(ethereum/client-go) on docker hub
I want to run Geth's RPC server automatically when deploy it's pod. The pod is created from an official docker Geth image(ehtereum/client-go) on docker hub.
But I can't deploy the pod with error Fatal:...
0
votes
1answer
38 views
Who communicate on a private ethereum network?
I'm new to Go-Ethereum (GETH) and would like to ask a question that may seem quite dumb.
Let's say that I create my own private ethereum blockchain with GETH (I created accounts, the genesis block...),...
0
votes
1answer
38 views
Free transaction on a private ethereum blockchain
I have developed a Dapp powered by Ethereum with truffle. And I want to deploy it on a private blockchain. But I have one question to ask before that.
My question is: can I make in sort that my Dapp ...
1
vote
0answers
25 views
GETH - Pending Transactions Performance
I'm currently making use of my own GETH node to get pending transactions and process them as follows:
this.web3.eth
.subscribe('pendingTransactions', function (error, result) {})
...
0
votes
0answers
35 views
Low Peer Count For a light ethereum node
I am running a Light node via Geth in a Debian OS . i am getting 1/2 max peers and for many hours of the day with 0 peers . what is the solution ? how to get atleast one peer everytime ?
0
votes
1answer
41 views
Access private transactions(payload or state) on a smart contract using tessera
I am pretty new to quorum/tessera and am trying to set up a small POC with 3 nodes. I followed the 7nodes setup example and similarly deployed 3 nodes on my system using Mysql as the database for ...
1
vote
1answer
63 views
Geth keeps changing coinbase / miner account and stops working. (POA Network)
I have set up a Geth POA network of 2 nodes on different cloud instances. Network was running good for 2 months but now suddenly it's getting connections from unknown peers and mining stops working.
...
0
votes
0answers
5 views
how can I make geth.ipc group writable/readable
I'd like geth.ipc to be group writable/readable each time I launch geth via a systemd.service. How is that possible? (as opposed to chmod manually).
1
vote
2answers
210 views
geth mainnet fast sync appears stuck at around 100 blocks from highestBlock
I started syncing a geth node to the mainnet in fast sync mode 7 days ago. The status is still around 74 blocks behind the highestBlock, e.g. if I run the following:
eth.syncing.highestBlock - eth....
1
vote
1answer
56 views
Where to define the MetaMask window.ethereum.on Listener
I have tried to include the window.ethereum.on listener to detect account changes in MetaMask, in my mounted () {} method. When the listener is triggered, it itself triggers the location.reload() ...
0
votes
1answer
31 views
Revert error on delegated transfer function
Here is my code base, first I am deploying the tokenPS contract on the tesnet which generates an addr(0xaddr) and then I am deploying the caller contract. In caller contract when I am trying to ...
0
votes
1answer
158 views
Updating ERC-721 Token's Metadata after it was Minted
Is it possible to somehow update an existing ERC-721 Token's MetaData after it was already minted?
Let's say we've created a Knight character for a game - by minting an NFT for it, and 3 months later ...
0
votes
0answers
19 views
Error syncing new node on private network:no peers available or all tried for download
I am currently trying to run a test node, which recently failed. I have deleted the directory and copied another node's AND tried a reset of the directory but at some point it freezes with this log ...
0
votes
1answer
22 views
how to create hierarchical blockchin using Geth, ethereum?
As of my plan (in the attached figure) there will be 2 levels of blockchain. The top level blockchain (yellow circles) consist of 4 participant, admin top & admins middle. The bottom levels ...
0
votes
0answers
18 views
What is my progress towards full sync?
I somehow is running geth with full sync.
>geth --syncmode full --datadir F:\ethereum-full --keystore F:\keystore --port 30303 --nousb
INFO [09-28|10:38:47.956] Starting Geth on Ethereum mainnet......
0
votes
1answer
127 views
Why does geth (fast) sync beome slower?
I've been running geth 1.9.21-stable-0287d548 in Ubuntu 20.04 (VPS with 2CPU, 8G RAM, and 400G SSD) for close to 24 hours.
geth is run in default fast sync mode --
geth --http --http.addr 0.0.0.0 --...
0
votes
1answer
36 views
Setting up a private Ethereum network and integrate it with Hyperledger Caliper
I hope you're alright and safe there.
I'm trying to set up a private Ethereum network and bind it to Hyperledger Caliper. However, I couldn't sufficient sources to do that. Recently, I used geth v1.19 ...
0
votes
1answer
81 views
How can I view pending events, without much delay?
I can view pending events like so:
pending_events_filter = my_contract.events.TestEvent.createFilter(fromBlock='pending', toBlock='pending')
pending_events_filter.get_new_entries()
But the events are ...
2
votes
0answers
123 views
What is the computing power of the Ethereum network in FLOPS?
The aproximate computing power of current Bitcoin network in terms of FLOPS (FP32) has been estimated at about ~80,000 exaFLOPS and being aware of the limits of the analogy because of the widespread ...
0
votes
1answer
14 views
Where is the documentation for admin.sleepBlocks?
Sorry for being stupid.
> web3.version
{
api: "0.20.1",
ethereum: "0x41",
network: "1108",
node: "Geth/v1.9.21-stable-0287d548/windows-amd64/go1.15",
...
0
votes
0answers
97 views
How to get the Etheruem contract init code hash by using remix.ethereum.org?
How to get the Etheruem contract init code hash by using remix.ethereum.org ?
It's a little fuzzy with bytecode and deployedBytecode, I use the contract code deploy on mainnet by others, I try to ...
0
votes
1answer
26 views
How to see the miner account that earned gas? Or how to know the account where gas goes?
I made a transaction to another account on rinkeby and then saw the record on Etherscan. There is Txn fee as gas. But how can I know where the gas went. I mean the account that gas was paid to. I ...
0
votes
1answer
25 views
How Private Ethereum network store my input data in mined block
I'm trying to understand how a private ethereum blockchain store data. I connect to a node through web3j API in java and send a transaction like:
EthSendTransaction sendTrans = ...
0
votes
0answers
29 views
How can I set the timeout for web3 python function Eth.getTransactionReceipt and the ContractFunction.call?
I am polling the Eth.getTransactionReceipt and the ContractFunction.call to get the transaction receipt for a mass transaction submitted onto the Ethereum chain. I notices that I have a lot of ...
0
votes
0answers
34 views
Properly Exposing Geth RPC in 2020
With the default allowed ["net", "web3", "eth"], I want to expose Geth 1.9.21-stable RPC to another machine.
In config.html I set HTTPVirtualHosts = ["*"].
The ...
0
votes
1answer
29 views
How do I receive a revert message using go-ethereum
How do I receive a revert message using go-ethereum?
receipt, err := bind.WaitMined(context.Background(), client, tx)
if err != nil {
fmt.Errorf(err)
}
fmt.Println(receipt.Status)
Now I can only ...
0
votes
1answer
97 views
geth node not seeing pending transactions
I'm running a geth node locally on goerli network in sync mode. I use the following command to boot the node :
geth --goerli --syncmode "light"
My txpool never list pending transactions, ...
0
votes
0answers
23 views
How to add specific transaction in block using geth?
How to include own pending transaction in block will be mined? Some mining pools using this for payouts with low gas price to their miners.
0
votes
1answer
94 views
How to add USDT ERC20 Token to private blockchain
I am running a private ethereum blockchain on my machine using geth. I want to send USDT token from one address to another, but I could not because neither address have any USDT token.
I have tried ...
0
votes
0answers
20 views
Why does ip address value differ in the enode url from the info output of a geth node instance to running admin.nodeInfo.enode in the js console?
I'm in the process of creating a private Ethereum network. I am able to successfully connect nodes on my local machine but unable to connect nodes in my LAN or outside my network.
When I run a geth ...
0
votes
0answers
51 views
Connect GETH to miner's node. Speed āup transactions
Sometimes transactions from my node are delayed, how to configure Geth so node can connect directly to the miners' nodes? For example asia.sparkpool.com:3333
Or what other options? Thank you in ...
0
votes
1answer
26 views
Require(…) condition location in wrapped functions
If I'm wrapping functions, like below, does it make a difference whether I check the input argument in the private function or the external one? Will it save me gas cost to do it in the external one ...
0
votes
0answers
473 views
Uniswap Factory contract event - how to find addresses for new token pair
When creating a new pair on Uniswap, Uniswap emits a PairCreated event that details which tokens are invovled. However, it sorts the token like this in the factory contract:
(address token0, ...
0
votes
0answers
15 views
Abigen doesn't create free data retrieval call for public state variable
I'm looking at an example contract using go-ethereum. In the book, when a go file is created in Store.sol through abigen, the code that automatically gets the Version() string is generated. However, ...
2
votes
2answers
103 views
medalla testnet launchpad requires metamask or similar
Following the official Medalla launchpad at https://medalla.launchpad.ethereum.org, at some point you need to connect to a wallet and the only options are MetaMask, Portis and Fortmatic. Why is this ...
0
votes
0answers
11 views
If mining is on, on an Ethereum node on EC2 AWS instance, it is unable to connnect to peers on Azure
I am runing a private ethereum network with nodes on AWS and Azure.
AWS EC2 - Mining Node &
Azure - Peering node
When the mining is on, in AWS node, the peering is lost intermitently, with Azure ...
0
votes
0answers
8 views
ETH daemon not syncing from snapshot
I have a snapshot of an ETH daemon that is running fine. I tried created another instance of this daemon from this snapshot. Its been running for about 8 hours now and still not synced.
This is the ...
0
votes
1answer
20 views
constructor input arguments or hardcoded values? best practice
What is the rationale for choosing to use constructor input arguments over hardcoded values? and what is best practice?
1
vote
1answer
58 views
how miners within a mining pool execute transactions and verify blocks?
I know that solo miners have to select & execute transactions in a block and also verify the recipint block and its transactions, all by themself.
However, I am not sure how this works in a mining ...
1
vote
1answer
10 views
When an Ethereum transaction event occurs, is there a case when it was not included in the main chain later due to a fork?
I know Ethereum is a POW blockchain where forks take place.
The transaction event is issued after executing the transaction on the node. If a fork occurs, is there a possibility that the transaction ...
0
votes
0answers
34 views
Invalid block header RLP and rlp: input string too short for common.Hash, decoding into (types.Header).Root
when I run the geth as a private chain node it shows error below:
C:\tools\src\github.com\ethereum\go-ethereum\geth.exe init C:\tools\src\github.com\ethereum\go-ethereum\genesis.json #gosetup
INFO [09-...
0
votes
0answers
11 views
Ethereum Wallet unable to connect to node
I am receiving the error message below:
Is anyone able to tell me what I am doing wrong? Thank you
0
votes
1answer
25 views
I am getting a error when trying to set up a local raft network
When I try to run the command
geth attach $nodeName/geth.ipc
It shows the following error
'Incorrect Usage. flag provided but not defined: -raft'
I am not able to understand what went wrong exactly, ...
0
votes
1answer
124 views
Importing Parity/OpenEthereum private keys to Geth: got zero balance
I have to migrate to Geth from Parity/OpenEthereum as the latter completely stopped syncing for me.
First of all I tried to copy one of my private keys exported with parity_exportAccount() - which ...
0
votes
1answer
9 views
How to restart my private chain node?
I have run a private chain in my computer.
I use the command
eth --networkid 606 --nodiscover --allow-insecure-unlock --rpc --syncmode "full" --rpcapi "eth,net,web3" --datadir /...