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

How to filter events with indexed bytes32 array?

I have the following event in my contract: event onDocHashSubmission(bytes32[] indexed docHash); I want to filter the indexed docHash array using web3.js var filter = {docHash: ["...
1
vote
1answer
16 views

How to set time based function in solidity? [duplicate]

I want to run a function after every 365 days in Solidity. I have tried to use the now keyword, but it is not working (I tried in Remix). How can I get the time?
0
votes
2answers
80 views

Installation of openzeppelin/contracts Library

I have created a node.js project, within which I have created a truffle directory and initialised its project. I have installed the openzeppelin (npm install @openzeppelin/contracts) library in this ...
0
votes
0answers
21 views

Ethereum POA attack scenario

I am studying consensus algorithm. In the case of the proof-of-work algorithm, a double spending attack was possible by the miner making a transaction and presenting the longest block from which the ...
0
votes
1answer
25 views

Are there any ways that can check whether the data I am trying to store is already existed in the blockchain or not?

I'm trying to store user data ( name, national identity number, birthday,etc.) by converting all data into hash and store it in the input field of block in the Blockchain. But , the problem is that ...
1
vote
1answer
14 views

How to parse the node information in the nodes directory by leveldb?

I want to get all the node IP addresses of ETH, so I need to parse the geth/nodes directory, but I can't find the specific data format and cannot parse it. I found a same problem, but there is no ...
1
vote
0answers
18 views

How to filter 2 indexed event fields, both fields array?

I have this event: event onSubmissionBoth(bytes32[] indexed docHash, string[] indexed doc4DHash); Now I log into the event like this: function submitHash(bytes32[] calldata docHash,string[] calldata ...
1
vote
0answers
28 views

Private PoA deployment leads to 'invalid gas used' error

I'm trying to deploy a contract to a private clique chain running on two devices (laptop and raspi). Deploying the contract when running multiple nodes on a single device worked fine as per usual, ...
2
votes
0answers
16 views

Send raw transaction from geth when not synced (exceeds block gas limit)

I have a geth node which is not synced and I want to send eth. > TX={ from: FROM, to: TO, value: VALUE, nonce: NONCE, gas: GAS, gasPrice: GP } > personal.unlockAccount(...) > SIGNED_TX=eth....
1
vote
1answer
18 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
20 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
70 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 ...
1
vote
1answer
150 views

Pending transactions logs issue

I am trying to get the pending transactions logs to identify specifics topics before the next block was mined (ERC20 transfers, Uniswap swaps, ..). I run a Geth (1.9.22) full node, mining is enabled (...
0
votes
0answers
27 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
17 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
20 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
27 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
32 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
17 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
14 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
35 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 ...
0
votes
1answer
31 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
4 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
54 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
30 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
25 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
61 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
14 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
19 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
12 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
63 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
19 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
60 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
46 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
10 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
65 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
20 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
21 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
21 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
25 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
22 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
43 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
20 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
37 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
12 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
26 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
185 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
10 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
58 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 ...