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
6 views

Running Geth on Heroku

Wanted to setup a local network with nodes running on heroku. With settings like mine only when pending transactions, and transaction rate being around 10 per minute, what could be the repercussions I ...
0
votes
0answers
17 views

Transactions are failing randomly for multiple reasons when sending them in bulk for a benchmark

I'm trying to benchmark a private blockchain network (3 Vagrant nodes with 2gb of RAM running Geth Clique PoA, on an i7 7th gen Intel Core machine), following this process: A function launch n ...
0
votes
0answers
14 views

Fatal: Failed to read genesis file: open /Ethereum/conf/genesis.json: no such file or directory

I am trying to set up a privatte blockchain on my local system and while setting up the genesis block, I am receiving the following error - Fatal: Failed to read genesis file: open /Ethereum/conf/...
0
votes
0answers
13 views

Rinkeby node unable to sync block

Error log: INFO [01-16|03:24:01.401] Mapped network port proto=tcp extport=2020 intport=2020 interface="UPNP IGDv1-IP1" INFO [01-16|03:24:01.611] Mapped network port ...
0
votes
1answer
21 views

How come Blockchain Voting is decentralised and secure if it's controlled by ethereum network?

I'm building a voting Dapp using ethereum blockchain but I have a doubt. The best thing about blockchain is that it's decentralized, transparent and secure i.e. no middleman or centralized server ...
0
votes
0answers
17 views

Token transfer gas is different in rinkeby and private chain

After set up a private clique chain and issued a ERC20 token contract. I compared token transfer gas between estimated amount by web3.eth.estimateGas() and used gas from transaction log. They are ...
0
votes
0answers
14 views

Transplanting Geth Data

I am wondering if it is possible to transplant a geth node from one computer by overwriting the .Ethereum folder with a full synced node's .Ethereum folder.
2
votes
0answers
26 views

Full Node Bigger Than Online Reports?

I am running a full node and I noticed that the amount of disk space it takes is larger than reports online. I use the command ./geth --syncmode full --rpcapi eth,web3,personal --rpc --rpcaddr 127.0....
3
votes
1answer
37 views

Why are blocks imported so slowly? - Geth node

I'm running a geth node on AWS and it's fully synced, but looking at the logs and the blocks mined I see that it takes a lot of time to import a new block. For example: Geth log INFO [01-14|18:15:...
0
votes
2answers
27 views

Function, variable, struct or modifier declaration expected [duplicate]

I am using the following code structure; pragma solidity ^0.5.0; contract TtdmToken { uint256 public totalSupply; function TtdmToken () public { totalSupply = 1000000; } } ...
0
votes
0answers
25 views

Transactions stuck in pending state on a geth node

I have a private network of a geth and a few parity nodes. I use the geth node to submit transactions via RPC. A mining pool runs on one of the parity nodes. That node is connected to the geth node ...
0
votes
1answer
15 views

How to Make Geth 1.9+ Full Node to Trace Ancient Blocks?

I have full-synced a Geth 1.9.9 node but my requests including ancient blocks erroring. I know this is because of state-pruning but I wonder how to enable tracing for an ancient block so it returns ...
0
votes
1answer
58 views

Getting error for creating a contract for not enough gas? [closed]

Forkdelta.sol pragma solidity 0.4.19; import "./IToken.sol"; import "./LSafeMath.sol"; /** * @title ForkDelta * @dev This is the main contract for the ForkDelta exchange. */ contract ForkDelta { ...
0
votes
1answer
22 views

Are there any examples of using precompiled contracts?

The thing is I want to create my own custom precompiled contracts, and use it in my private chain of ethereum. Here is my code, but it is not right when I call hello.say() in geth attach line. In ...
0
votes
1answer
21 views

Store and Display the Json file in Blockchain

I have stored my data on firebase, and taken as a JSON file, the JSON should be separated and display into the webpage through the Ethereum blockchain, for example: { product: "Shoes", prize: "85"...
0
votes
0answers
27 views

How to detect internal transactions to a given account in a given block using Geth?

I found several questions asking essentially the same, but they are several years old. I just wanted to know if this has changed in the latest version of Geth.
0
votes
1answer
29 views

Multiple GasLimits on my Private Ethereum network?

I am wondering if it is available to make multiple gas limit block in one of my private networks. The multiple gas limits blocks in a private network means that size 10, 100, 1000 and so on, those are ...
0
votes
1answer
50 views

How to integrate ERC20 token to microjob website?

I need an api to handle erc20 ethereum token deposits and withdrawals on my microjobs website. Users should be able to withdraw their earned token automatically when they pay the network fees.
0
votes
0answers
17 views

Instantiating `NewLevelDBDatabase` instance

I'm working on a small PoC using ethdb.Database class from geth sources. I tried to instantiate rawdb.NewLevelDBDatabase (source) with the following code: dir := "/Users/kirill/geth/data" db, _ := ...
0
votes
0answers
30 views

Safe usage of delegatecall

Hey guys I have a few questions about delegatecall. The setup: I have 2 contracts A and B. A has 2 uint state variables B has 4 uint state variables To ensure storage layout compatibility, B ...
0
votes
1answer
22 views

“Migrations” exceeded the block limit

I didn't have any problem using solc 0.5.0 (geth 1.9.3), but facing this problem after upgraded to 0.5.12 (geth 1.9.9). After doing some research, I believe it is because of the changes to the ...
2
votes
3answers
35 views

How are transactions with the same gas price ordered in a block?

If A has gas_price == 1gwei and B has gas_price == 1gwei, how does the miner decide which tx gets executed first when ordering them into a produced block? Does it depend what mining client is used? ...
0
votes
0answers
35 views

How to detect front runners?

I'm running an arb bot between uniswap and other exchanges, but my transactions keep being front run. I know I can just increase the min_tokens parameter, but I'd like to be able to detect and ...
0
votes
1answer
26 views

How different clients, with different implementations communicates through the network?

sorry for the dumb question, but i'm wondering how different Ethereum clients, like for example Trinity, Geth, or Parity, written in different languages, communicates over the network. I did not found ...
0
votes
0answers
6 views

How to use whisper on the geth mobile android library?

I want to create a chat application using the whisper protocol, I wanted to know if there is any way by which I can use whisper on the node running on geth mobile android library, or does the library ...
0
votes
1answer
23 views

Increasing maximum contract size with geth

I want to deploy a large contract on my own test chain and circumvent EIP170's contract size limit of 24576 Byte. Ganache has --allowUnlimitedContractSize for this. Is the same possible with geth?
0
votes
2answers
33 views

IP address and system details of msg.sender

Is it possible to log the IP address and various system details (meta data etc.) about a msg.sender who is sending a transaction to your smart contract?
0
votes
0answers
18 views

how to make Upgradeable smart contract [duplicate]

Which is the best approach for upgradeable smart contracts proxy approach or eternal storage approach?
1
vote
0answers
50 views

Obtaining pulledStates from Geth

How to obtain pulledStates from Geth when syncing is false?
0
votes
0answers
21 views

Collection of erc20 tokens from multiple addresses

I have main address: const fromAddress There is also an array of addresses and their keys: foreth / keys I need to send all tokens from the addresses of the foreth array to the main address ...
2
votes
2answers
22 views

How to persist ganache-cli data when run from within a docker container

The reason for persisting the data is that every time i run the ganache-cli container , the deployed smart contracts address changes each time i restart it .SO i am looking for a work around to either ...
0
votes
2answers
28 views

Is the range of a FilterQuery inclusive up to ToBlock?

I'm looking to use this function: func (ec *Client) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error) but I'm unsure if the range of the FilterQuery is inclusive or ...
4
votes
1answer
80 views

It possible to hard fork a private network without resyncing chain from scratch?

I am able to hard fork my private chain into first Constantinople and than to Istanbul, please see the answer for it. My approach is: I have updated geth to its highest version I have kept the go-...
0
votes
1answer
31 views

How to distinguish uint and int types during evm execution (via opcode)

I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this Orz. I'm doing some security-related attempts on Ethereum EVM (very immature, just an ...
0
votes
1answer
17 views

Storing Tokens In The Most Secure Way

What is the most secure way to store tokens, if you are to roll out an ICO or similar? I know there are many ways, i.e. sharding the private key but what is the best practice right now? If I assign ...
0
votes
1answer
36 views

How to determine the best sealing time for private Clique

I have several transactions to be stored in my permissioned blockchain with PoA Clique. With the transactions information in mind, how do we determine the best sealing time for private Clique' blocks?...
0
votes
1answer
35 views

Wrong Vesting Smart Contract

For my project I created vesting contract. The contract codes and vesting contract codes are same with MATIC token contracts but in my vesting contract there is wrong. https://etherscan.io/address/...
1
vote
1answer
34 views

Private Clique network, where can I get block sealer and block reward?

Private blockchain PoA validation algorithm Using geth attach MY-GETH-CLIENT, I want to check the sealer of a block as well as its reward. Using eth.getBlock(BLOCK-NUMBER), the miner field is ...
0
votes
0answers
44 views

Smart contract works on remix and ganache but not on private chain developed by geth

The smart contract works well on the ganache and remix but not work on the private chain, even though i use the --testnet geth --identity "EDU" --rpccorsdomain "*" --rpc --rpcport "8545" --...
1
vote
0answers
9 views

Geth's golang contract bindings need “RPC subscription features that are still under review” to process event logs. What are those features?

The documentation for Geth's golang contract bindings start out with Please note, events are not yet implemented as they need some RPC subscription features that are still under review. What ...
3
votes
1answer
35 views

How to distinguish between ETH & ETC Node

I'm using the go-ethereum code (mainly discover (discv4) and rlpx) to write a node discovery tool. The Programm is using discv4 to discover nodes on the internet and putting the discovered nodes into ...
0
votes
1answer
35 views

gasCost of opcode “STATICCALL” in Geth VM Trace

{ "pc": 4765, "op": "STATICCALL", "gas": 222711, "gasCost": 219243, "depth": 1, ... } As above, Geth VM Trace (https://etherscan.io/vmtrace?txhash=...
3
votes
1answer
42 views

How to deploy Ethereum Smart Contract through Brownie to the Private Network

I have a geth node that is connected to a private network on my computer that uses port: 8545. Hence, I have a smart contract that is tested using Brownie on the ganache-cli network. Brownie is a ...
0
votes
0answers
25 views

miner.start() returns null but no transactions take place

I have created a genesis block and initialized it in the private network. Account creation is also successful. As soon as I hit miner.start() [or miner.start(1)], the following appears: INFO [12-...
1
vote
1answer
44 views

How could return events of specific args?

In my solidity contract, I just have one event which is: transferOwnerShip (uint id, address indexed newowner); and I want to filter the events log in order to retrieve only the events that belong ...
0
votes
1answer
25 views

Infura node seems to crash when tryining to deploy contract

I am trying to deploy a contract and run some tests on the functions within it. Here is what my code currently looks like: package main import ( "context" "crypto/rand" "encoding/hex" ...
0
votes
1answer
14 views

Balance returning zero after sending KETH to it

I have sent the following transactions to the account 0x2D76d8729F9Cfa5bC3CEba8a504400FE30bb53D2: 0x8667bd1859a5ccc99bcc77b38c5453195bf32b308b4038ae409b47b002546344 ...
1
vote
1answer
28 views

I got this error during truffle testing. AssertionError: it returns true: expected { Object (tx, receipt, …) } to equal true

DappToken.sol function transfer(address _to, uint256 _value) public returns (bool success){ require(balanceOf[msg.sender] >= _value); balanceOf[msg.sender] -= _value; balanceOf[...
4
votes
0answers
16 views

Is go-ethereum performance much affected by linux filesystem choice?

Storage performance often seems to be a bottleneck when running a geth node, even when running on SSDs. Does anyone know of performance comparisons under different linux filesystem choices? By ...
1
vote
1answer
47 views

gas required exceeds allowance or always failing transaction in local permissioned Node

I am facing the some issue with gas but i do not have any modifiers in my contract. Even a simple setter-getter contract shows the following Error Error: gas required exceeds allowance or always ...