Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [go-ethereum]

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

1
vote
1answer
49 views

On Rinkeby, after I deploy my gas limit is low for function, even though it was high when I deployed

I deployed my smart contracts to Rinkeby. I made my gas limit 3000000 in truffle.js like so: rinkeby: { host: "localhost", port: 8545, network_id: 4, gas: 3000000 } On Etherscan, it shows my ...
1
vote
1answer
31 views

Using smart contracts for delivering encrypted data [closed]

How can I utilise (perhaps automate) a smart contract to deliver some encrypted data from A to B, based on the pre-requisite that A fulfills B's requirements. Would I need an oracle for this type of ...
2
votes
2answers
76 views

What is the unit used when using the SetBalance() function of the state package?

Maybe I missed it, but can't seem to find it anywhere. Is the unit used in Gwei or in Eth? For example when writing : stateDb, err := state.New(rootHash, db) if err!=nil{ return err } addressA :...
2
votes
1answer
42 views

Generating nodekey via geth init

The geth init --datadir node/ genesis.json command generates an empty keystore directory and a geth directory. Its only after running the node that the geth folder is populated with the nodekey. Is it ...
1
vote
1answer
19 views

How many nodes does Geth attempt to connect to by default?

Bitcoin Core tries to connect to 8 nodes by default. How many does Geth attempt to connect to for the eth protocol (normal network gossip)? Is there a set number in the first place?
0
votes
1answer
21 views

How to specify node as a mining node or non mining node in geth

As in private network of ethereum there can be nodes who only do mining and the nodes who didn't do mining.so In geth when we create nodes,How to specify nodes that they are mining node or an non ...
0
votes
0answers
34 views

Geth SendTransaction: Insufficient funds for gas * price + value

I have looked at this similar question but I think my problem is a little different. I am using Geth to try and send 0.9 eth from one cli wallet to another, using this command in my bash shell ...
0
votes
0answers
20 views

Is there a wiki website like en.bitcoin.it for Ethereum

As I know, Bitcoin wiki hosts a lot of technical articles which explain the design of Satoshi client source code (v0.1.5) and Bitcoin Core source code (v0.11). I was wondering if there is a similar ...
0
votes
1answer
15 views

How does one go about implementing the ContractTransactor interface from the bind package in go-ethereum?

Hey guys thanks in advance! Here is the interface provided by the go-ethereum library in the bin package. I need an example on how to implement this interface please :) // ContractTransactor ...
0
votes
1answer
29 views

Calling a contract's function with input parameters and passing ether from Geth/Web3

I have deployed a smart contract which basically splits the incoming funds to the specified addresses based on the entered ratio parameter. Please find the code below: pragma solidity ^0.4.23; ...
0
votes
2answers
76 views

how to create genesis block on ethereum?

geth --datadir ./ init customgenesis.json Fatal: Failed to read genesis file: open customgenesis.json: no such file or directory
1
vote
0answers
23 views

Transaction created by non-miner node is not mined in private blockchain

I create a private chain, and setup two node, one is miner and the other one is not. Block sync between two nodes is fine and send transaction through sendTransaction method is also fine. But ...
1
vote
0answers
18 views

Wrong price showing in etherscan [closed]

Etherscan Showing the Crowdvilla Ownership tokens price 0.8754 bt according to CoinMarketCAp the value is $0.07 This is so confusing. And I faced it the first time. Please, someone, answer me if I was ...
0
votes
1answer
38 views

ERC20 Contract - OpenZeppelin - total confusion

Trying to launch a simple ERC20 Token. I'm finding OpenZeppelin's extensive library - where every Contract seems to import about 4 other Contracts - to be both wonderfully well organized - but also ...
0
votes
1answer
22 views

creating account on button click

The question is i want to create new account per user on the ethereum blockchain. I want to display a form where in the user will enter information and on clicking register, his account should be ...
0
votes
1answer
29 views

How to get the same SHA3 hash as soliditySHA3(ethereumjs-abi) returns using web3.sha3 in js?

I'm trying to hash a message as shown here: function constructPaymentMessage(contractAddress, amount) { return ethereumjs.ABI.soliditySHA3( ["address", "uint256"], [contractAddress, amount],...
1
vote
1answer
29 views

Is it possible to get networkid inside the contract

I started my private network with id = 15452: geth --networkid 15452 Is it possible to get the number inside solidity smart contract?
1
vote
1answer
22 views

Saving ethers in local private testnet

I created a private ethereum tesnet using geth and it runs well on the system. However, I lose all the ethers in my account everytime I close the application. Is there a way to permanently save the ...
1
vote
1answer
39 views

Syncing private blockchain between peers

I am attempting to have a second node sync up with an original node. I had previously synced two nodes from the get-go but am unable to add a peer to an already running blockchain. In other words I ...
4
votes
3answers
56 views

Can a “forward” smart contract forward the received ether to another “forward” smart contract which forwards it to an address?

I am pretty new to solidity. I am trying to create a smart contract which deploys another smart contract and transfers ether to the newly created contract when a payment greater than 0.01 ether is ...
1
vote
1answer
81 views

How to find all Ethereum nodes and list it?

Hi is that possible to find eth nodes and list it with some details? I want to do some metrics and service like ether nodes. they dont have an API.
1
vote
0answers
33 views

geth --targetgaslimit does not work

I set the --targetgaslimit parameter of all nodes of my private network, but the gas limit keep falling towards the default value, it is like it's not set.
0
votes
1answer
35 views

timed commitment using ethereum blockchain

I read this paper: https://eprint.iacr.org/2013/784.pdf that introduces the idea of Bitcoin-based time commitment scheme. In which if the commiter does not open his commitment before a specific time ...
0
votes
1answer
17 views

Ethers in a light node

Since a light node makes transactions from a connected full node, does a light node need ethers to make transactions or it uses the ethers from the full node?
0
votes
0answers
23 views

Can I use a WebSocket client for multiple abigen watchers?

I have question about abigen and websocket. My code is in Go. I'm sending a bunch of transactions using abigen and I'm using abigen to watch each of the transaction and do something when it's mined. ...
1
vote
1answer
30 views

Zero knowledge contingent payment on etherum?

I know that bitcoin supports Zero knowledge contingent payment (ZKCP) , can etherum support such ZKCP Payment ?
0
votes
0answers
69 views

Estimate gas limit without eth_estimateGas method

POA Network (Ethereum Like) blockchain has eth_estimateGas to estimate gas limit but this method does not work in POA Network Sokol (Testnet) blockchain. When i call this method it gives response: { ...
0
votes
1answer
33 views

POA chain: intrinsic gas too low, contract deployment

I'm trying to deploy my smart contract to a private proof of authority chain with geth, but i always get the following error message intrinsic gas too low This is the JSON RPC request i'm sending. ...
0
votes
1answer
26 views

How to use soliditySha3 in web3py

I have tested soliditySha3 function with web3js. var msg = web3Infura.utils.soliditySha3("transferPreSigned", mainContractAddress, recepientAddress, tokenAmountWei, transferFee, randomNounce); I ...
1
vote
1answer
36 views

Solidity/Truffle - Suddenly getting TypeError on Migration file

Suddenly getting an error when doing a truffle compile --reset - even though I didn't make any code changes on my Migrations.sol file. TypeError: Name has to refer to a struct, enum or contract. ...
0
votes
1answer
39 views

How do we extract the content of a hash manifest generated by swarm after a download?

As far I know, whenever we upload a file or a directory using: swarm up File we get back a hash that is the manifest containing the uploaded file. However, I am not sure I do understand how to ...
0
votes
1answer
17 views

Connecting Metamask to geth

In here it's said we need to run below command line to let Metamask connect to geth: geth --rpc --rpccorsdomain="chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn" I'm running a private ...
2
votes
2answers
79 views

Geth v1.8.21 slow syncing on archival node

Geth Version v1.8.21+bionic - stable Machine - 16GB Ram, SSD, i7 processor I'm currently in the process of syncing a full archival node on Geth. Up until recently the chain was syncing fine, around ...
1
vote
1answer
53 views

What do I do about my Ether since the 2019 Constantinople upgrade has been postponed?

With the last minute postponement of the 2019 Constantinople upgrade. What do I do about my stored Ether? And what software do I need to upgrade to if I am running Geth or Parity?
0
votes
2answers
69 views

Use private ethereum blockchain for storing data [closed]

I am new in ethereum blockchain technologies. I have some question that Is possible to use ethereum blockchain to store data (Like MySQL)..??? If yes... (for first question) have any documentation ...
0
votes
0answers
42 views

How to prevent DDOS in ethereum using PoA?

Using clique, how to prevent DDOS attack? Is there a way to set a whitelist of nodes which can send transactions, and blacklist all the others?
0
votes
0answers
25 views

What is the role of the Geth ipc socket in a web3.js connection?

I started Geth as a root and try to run node.js with the rights of the group www-data. When node connects to Geth all is fine but transactions throw ... (node:27824) UnhandledPromiseRejectionWarning: ...
1
vote
0answers
42 views

Transactions from multiple addresses to a single address in Ethereum

We are currently in the process of developing a payment plugin for merchants to accept crypto payments. We are currently generating a unique order for every order which is placed in the merchant store....
0
votes
1answer
46 views

The geth account new and web3.eth.accounts.create

The geth account new and web3.eth.accounts.create. That both function/command are same are different.To create new account.
0
votes
1answer
64 views

Node lags behind 100 blocks, states are finished syncing

I run my geth node with the following command: ./geth --cache 8192 --syncmode full It has been syncing for a long time, and it looks like it has finished syncing: > eth.syncing { currentBlock: ...
0
votes
0answers
84 views

Linux Geth Mining: Stuck at Commit New Mining Work in private blockchain Offline

System information Geth Version: 1.8.20-stable Go Version: go1.11.2 Operating System: linux GOPATH= GOROOT=/home/travis/.gimme/versions/go1.11.2.linux.amd64 Genesis.json { "config": { "chainId": ...
0
votes
1answer
24 views

Unable to sign a message on geth Console

I have two accounts on my geth node . The geth node is syncing with the Ropsten testnet . I executed the following commands personal.unlockAccount(eth.accounts[1],'Test'); The result was true After ...
0
votes
2answers
195 views

2019 SPECS FOR RUNNING GETH FULL NODE

What are the specs for running an ethereum full node in Jan 2019? No fast flags as eth.blocknumber and some other methods needed. PLEASE NEED OFFICIAL ANSWER Thank you! I have a very powerful machine ...
1
vote
0answers
42 views

What filesystem should I use for geth and leveldb?

I used old LGA775 machine for running geth node. Its mobo has older sata 3gb/s (benchmark showed that ssd bottlenecked there) and only 4gb of DDR2, with windows installed. So syncing is a real pain ...
0
votes
0answers
20 views

ETH NODE Sync issue - It first syncs, then slows down and falls behind

Geth server Info: 6 cpus, 18gb mem SSD: 450 GB (42%used) Geth Config is below. So we have been upgrading our server one after the other to hopefully resolve this issue... We are supporting an ...
1
vote
1answer
61 views

Developer related changes to prepare for Ethereum hard fork - Constantinople

I am hosting my own ethereum node using geth and I have some simple dApps which make use of the web3.js library. I went through various documentations related to the hard fork, more specifically this ...
0
votes
0answers
18 views

Get tx/s in a local testnet

I am using geth to create my local testnet. How can I get the tx/s in my testnet?
6
votes
1answer
87 views

Is it possible to tell which node broadcast a transaction?

If I host my own node and send my transactions through this node, can somebody see that my address sends transactions through my pseudo-anonymous node? If yes, can someone set up a watcher that ...
0
votes
0answers
33 views

Balance from ethereum accounts on geth disappears

I have geth private network with 3 accounts A, B and C. each account has 100, 200 and 300 ether balance I connected to this network from Metamask and Transferred the balance of 50 eth from account A ...
1
vote
1answer
51 views

Connect different machines with PoA

i want to connect two different machines in a ethereum private network! I did it before with a normal PoW-Consesus but with PoA created by puppeth i cant see some Peers when i try: admin.peers ...