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

Can anybody help me with protocol development?

I have seen a lot of resources for dApp development but I don't know how to start learning more about protocol development. I have read whitepapers, some articles and started reading go-ethereum's ...
0
votes
0answers
12 views

Question about BFT-based consensus mechanism

Besides PoA,PoW, I found BFT-based consensus algorithms are also widely used. what's its main advantage of them compared to clique PoA which also require no extensive computation as PoW? What's ...
0
votes
0answers
20 views

web3j - getter for array of addresses

I have a contract which has a field registry which is an array of addresses, Also have a getter for this field: function getRegistry() view public returns (address[] memory){ return ...
0
votes
1answer
51 views

explanation of appending .selector in solidity smart contracts

I'm trying to understand what .selector means when appended to logic wrapped up inside of functions definitions. I've tried to read the section in soliditydocs, but it doesn't seem to answer my ...
0
votes
0answers
29 views

Geth returning balance 0 [duplicate]

I started my geth using fast sync first and then normal sync once it was almost synced. 'currentBlock' is not increasing since hour and 'highestBlock' keep on increasing. geth --testnet --rpc --cache=...
1
vote
0answers
27 views

estimateGas works on Truffle, but fails on geth

I'm trying to estimate the gas required for deploying a smart contract. It works fine in Truffle, but fails in Geth for some weird reason: truffle(develop)> await web3.eth.estimateGas({ data: '...
0
votes
1answer
57 views

JSON RPC-HTTP API have any sort of rate limiting or throttling?

Is there any sort of rate limiting on the RPC-HTTP API? Trying to track down why my node (private chain) can only handle ~40 requests per/second. I am only load testing it with eth_blockNumber so they ...
0
votes
0answers
13 views

Can't send when geth started with no peers

I am trying to follow these instructions to send eth without syncing on my pc. ./geth-1.9.0 --maxpeers 0 console Then TX={ from: FROM, to: TO, value: VALUE, nonce: NONCE, gas: GAS, gasPrice: ...
2
votes
0answers
37 views

when syncing state trie of an Ethereum node, why not start from a recent block to reduce syncing time

as explained in this issue: https://github.com/ethereum/go-ethereum/issues/16218#issuecomment-371454280 when we are syncing an eth node, firstly it downloads the blocks, then the states, the first ...
0
votes
3answers
89 views

Error: new BigNumber() not a base 16 number: at L (bignumber.js:3:2876)

I can not find what the problem is, someone can help me Contract pragma solidity ^0.5.9; contract certificarProceso { address public creador; address emisor; string informacion; ...
1
vote
1answer
15 views

How to get the hash of a smart contract deployment transaction with only a smart contract address?

Is it possible to derive the hash of a smart contract deployment transaction using only a smart contract address? If so, what is the best way of doing so?
1
vote
1answer
40 views

How to detect node(peer) in the network

Hi I need check is certain node is currently connected to the network(or current peer). How I can do it, and how to identificate node by ip address or how? P.S. via api or (sorry not go-geth client) ...
0
votes
0answers
19 views

How much storage space does a fully synced node need?

I'm planning on launching a virtual machine for Ethereum development, but I have no idea how much storage space to allocate to it. Can anyone tell me how much storage space a fully synced node uses?
1
vote
1answer
32 views

how to run my private geth node in https locally

i have my private ethereum blockchain but i need it to run in https://localhost:8545 or https://0.0.0.0:8545. currently it tun in http://0.0.0.0:8545 but when i try to connect it with Myethereumwallet ...
0
votes
1answer
44 views

abigen error : Failed to generate ABI binding: unsupported arg type: tuple

Hello I 'am trying to generate Go ethereum binding for a smart contract in which I have a function that takes a struct as argument. It seems that abigen doesn'tsupport this argument. struct Device { ...
0
votes
0answers
37 views

Hosting pet-shop DApp on IPFS - JSON Files problem

I am trying to host DApp "pet-shop" which one of the truffle boxes on IPFS. rsyncing of src, build/contracts and ipfs add files went very well and there are plenty of peers as seeders on the network ...
0
votes
1answer
34 views

I cant deploy contract on geth

I am trying to deploy my contract using geth on my private network. When i use truffle mirate --reset shows that is has been deployed but the metamask gives me an error( ALERT: Transaction Error. ...
0
votes
0answers
40 views

Set Date and Time in a Private Network

I have created a private network using geth in ubuntu, but it takes date & time from the system on which it runs. So if the system date of the master node is changed, it affects syncing on the ...
0
votes
0answers
97 views

Truffle Contract deployment >> Error: Returned values aren't valid, did it run Out of Gas?

I have a rpc enabled running private ethereum blockchain node with mining enabled. I have connected to it using metamask and have performed some contract interactions (deployment, calling functions,...
0
votes
0answers
38 views

intermediate value is not iterable

I try to construct a transaction with Node (11.4.0), ethereumjs-tx (1.3.7) and web3 (1.0.0-beta.55) and Infura. Infura gives me '0x35b' for the nonce, then I create the tx: amount = 0.001; nonce = '...
1
vote
1answer
65 views

What's wrong with my code, I am signing a transaction? Invalid v,r,s error?

func main() { privateKey, err := crypto.GenerateKey() if err != nil { log.Fatal(err) } auth := bind.NewKeyedTransactor(privateKey) balance := new(big.Int) balance....
2
votes
2answers
215 views

How to modify the base fee 21000 gas for a simple transaction?

I found that for a simple transaction, the UsedGas is constant value(i.e. 21000). Can it be modified when sending a transaction or configured somewhere? Thanks.
0
votes
0answers
17 views

signature verification without solidity

Hello I want to verify a signature and the format should be VRS (Ethereum standard secp256k1 signature format) and I want to achieve it using only "Java". I found ways to do it using Web3j and ...
2
votes
2answers
110 views

Gas required exceeds allowance when deploying a contract

I try to deploy a contract using truffle to my private ethereum network using geth and i get this error gas required exceeds allowance (6721975) or always failing transaction. I have create an ...
0
votes
1answer
119 views

“gas required exceeds allowance” with eth.sendTransaction on geth CLI

I am trying to follow these instructions. I do not want to sync so I run ./geth-1.9.0 --maxpeers 0 console` and do this: FROM="0x..." TO="0x..." ETH_AMOUNT=0.1 NONCE=1 VALUE=web3.toWei(ETH_AMOUNT,...
2
votes
0answers
40 views

Not able to connect to private Ethereum Network with metamask

I am running a private Ethereum Network in a cloud VM. I started the node with these arguments: geth --datadir test --networkid 123 --rpc --rpccorsdomain "*" --rpcport 30308 --rpcaddr "0.0.0....
0
votes
0answers
32 views

BigNumber Error: new BigNumber() not a base 16 number

I created a dapp and with truffle i dployed on my private ethereum network. The network was created using geth. When i run the dapp i got an error: BigNumber Error: new BigNumber() not a base 16 ...
2
votes
0answers
34 views

How to add or modify account_signTransaction function

In this github.com/ethereum/go-ethereum/accounts/external/backend.go of Ethereum project i see the "account_signTransaction" function and i want to edit or update the logic for this function, where ...
0
votes
0answers
18 views

Geth node from private network freezes and Web3j fails with timeout

I have a private network, and something very weird happens when I try to start the mining via RPC: the node just simply freezes. I attached using geth.ipc and even when I tried to start the miner via ...
1
vote
0answers
37 views

Computational complexity of EVM consensus

Are there any resources that look at the computational complexity of running Ethereum on a private network? I am not considering any smart contracts or even transactions. I simply am trying to find ...
1
vote
0answers
20 views

Do I need to manually enable the upnp at the router when running my node?

I used the upnp lib for my app. It required manually enable the upnp at the router. My PC is inside the company's network. All connections are controlled by NATs. So, I wonder whether GETH's nodes ...
1
vote
1answer
54 views

Ethereum fast sync and wallet balance?

I'm planning to run a Ethereum server for getting wallet balances at a specific time, which type of node should i run, fast sync will work ? or should i go for archive node ?
0
votes
0answers
35 views

SimpleStorage always returns 0

I'm trying to repeat that tutorial - https://medium.com/@wagnertrindade/ethereum-compile-deploy-and-interact-with-smart-contracts-e65bd42a1a0 everything looks good, but getter always returns 0. geth ...
0
votes
1answer
28 views

How does Geth query the blockchain?

This question has probably been already answered somewhere else but I didn't find anything on the internet so I'm asking here. I wonder how clients such as Geth query the blockchain to get specific ...
1
vote
1answer
75 views

How to start a node on private ethereum chain using “geth --config config.toml”?

I set up a chique poa ethereum private chain. the node can start to work using the command below: geth --networkid 123456 --rpc --rpcport "8545" --rpcaddr 0.0.0.0 --rpccorsdomain "*" --datadir ./...
1
vote
1answer
109 views

The EVM throws an error “invalid opcode 0x1c” [duplicate]

I have written a simple smart contract that allows to store a string, and I'am trying to use go-ethereum(which is similar to web3j). When I execute a transaction, I have this error VM returned ...
1
vote
0answers
28 views

The bootnode is not working properly

I am running a private ethereum network using geth. I started the bootnode first following the documentation and ran 5 different nodes on the same machine with same genesis file on same network with ...
3
votes
0answers
34 views

What is the scalability limit for POA Ethereum (number of nodes)?

Tried to find any benchmarks what is the maximum number of nodes for Ethereum PoA network. When does a network latency become crucial? Looking for any sources / empirical benchmarks.
2
votes
1answer
42 views

How do I generate a TrustedCheckpoint(CHT) on my private chain?

I saw this link, but still don't know how to get CHTRoot and BloomRoot, only know that SectionHead is block[(SectionIndex+1)*32768-1].headhash https://github.com/ethereum/devp2p/blob/master/caps/les....
0
votes
0answers
20 views

Geth stuck on “Head state missing, repairing chain”

Geth crashed on lack of disk space, and now is stuck on "Head state missing, repairing chain" on a POA chain. Max verbosity doesn't give anything, nothing, nada, and because it has not recovered, ...
0
votes
0answers
23 views

storing ERC20 inside of Non-fungible tokens?

Is it possible to store value in the form of ERC-20 tokens inside of non-fungible tokens such as ERC-721? If so, could someone showcase how through an example?
1
vote
1answer
34 views

using a contract in another contract

I have my Callee contract in Callee.sol pragma solidity ^0.5.1; contract Callee { uint private val; constructor() public{ val = 30; } function getValue() public view returns(uint) { ...
0
votes
0answers
47 views

Calls to RPC sometimes gets Error: Connection refused or URL couldn't be resolved

I have a backend server that constantly gets logs and parses data from my client node (Clique non-sealer). I restrict the number of calls from my backend server -> client node to 25 at a time. Is ...
1
vote
1answer
80 views

How to call a contract function that alters blockchain state on geth console

It should be easy, but I'm having a hard time using a simple smart contract described in the Solidity language reference called SimpleStorage. It only as one attribute, a setter and a getter, and I'm ...
3
votes
2answers
47 views

returning the struct value in smart contract and experimental ABIEncoderV2

I am storing and returning the struct value by using mapping. pragma solidity >=0.5.0 <0.7.0; pragma experimental ABIEncoderV2; contract Manage{ struct Policy{ string PolicyID ; } ...
2
votes
2answers
87 views

low-level call failed

I'm using the crowdsale contract (https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/crowdsale/Crowdsale.sol). I have deployed a detailedERC20 smart contract. When I send the ...
0
votes
1answer
91 views

Error when estimating contract deployment fee using web3.eth.estimateGas

When I run the code line below: let gasEstimate = web3.eth.estimateGas({from:myAddress, data: bytecode}) got and error: > Error: Node error: {"code":-32000,"message":"gas required exceeds ...
1
vote
1answer
59 views

How to get rid of inactive nodes in Geth

I am setting up a quorum network with Quorum-maker, which uses Geth. It is running at the moment, with three alive nodes. However, earlier I had attempted to create two other nodes, which failed. I ...
0
votes
1answer
21 views

Importing Ethereum Account Private Key and Using on Different Servers

Let's suppose i have a wallet on one remote server, R-1. Is it possible to get the private key of that wallet/account and use it on different remote server R-2? I know, i can copy/paste files under ...
0
votes
0answers
62 views

sendRawTransaction insufficient funds while there is enough balance

Sorry I probably create a topic that was answered multiple times but unfortunately I couldn't find a solution. I'm trying to use RPC server of Geth to send a raw transaction. I've an address with a ...