Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
458 views

How to use 'geth' to find a smart contract in the ropsten testnet

I try to connect with web3.php to a smart contract, published in the ropsten test network via metamask. I used the following web3.php library: (https://github.com/sc0Vu/web3.php). To create an rpc ...
3
votes
1answer
261 views

How to access non-indexed event arguments from Go types.Log?

The Go bindings have a type called Log that has the following fields type Log struct { // Consensus fields: // address of the contract that generated the event Address common.Address `...
0
votes
1answer
657 views

How to get a pending filter only for a contract

I would like to do the equivalent of: pendingEvent = web3.eth.filter('pending'); but only for a specific contract: pendingContractEvent = myContractInstance.allEvents('pending'); or more ...
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
1answer
2k views

CONNECTION ERROR: Couldn't connect to node http://localhost:8545

I have started geth using below: geth --rpc --rpccorsdomain * --rpcport 8545 --rpcapi personal,web3,eth,net and this is my web3.js code: <script src="/bower_components/web3/dist/web3.min.js">&...
0
votes
0answers
16 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 ...
2
votes
2answers
317 views

Difference between eth.newAccount and personel.newAccount

Can anyone explain the difference between `eth.accounts.create()` and `eth.personal.newAccount()` and which one we should use and why? As I am new to ethereum so its very confusing for me. Thanks
2
votes
1answer
248 views

Why would Ganache behave differently depending on geth, web3j, web3js and web3.py?

I have a smart contract token deployed in a Ganache instance. My dapp written with React and web3.js shows the same 10 accounts for eth.accounts as running the same command in the geth console. If I ...
0
votes
1answer
500 views

geth console cannot attach to geth docker container

I ask this question again although a similar question is asked here. I answered that question with what I read and thought is the correct method but heck it doesn't work for me too. Basically I run a ...
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
754 views

web3j - Unable to determine sync status of node

I have setup a private ethereum node in my laptop using below command. geth --datadir=./chaindata/ init ./genesis.json geth --datadir=./chaindata/ --rpc console The chainId in genesis.json ...
1
vote
1answer
277 views

Failed to open database using geth

Previously was able to do the setup successfully, today it didnt work. alex@alex-Inspiron-3558:/media/alex/Y/Blockchain/assignment_1$ **geth --datadir=./chaindata init genesis.json** INFO [11-07|11:...
0
votes
2answers
116 views

Golang - alloc large Wei amount to address

Im modifying the puppeth genesis wizard file for my own use case. I want to be able to assign a pre-set amount in Wei to a few chosen addresses.. Im having some trouble figuring out how to format the ...
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/...
1
vote
1answer
554 views

When is a clique.proposal known to other nodes?

I do not really understand how a proposal is communicated to the other nodes. I have 5 nodes in a PoA private ethereum network. I am trying to add 2 nodes on another server. I get this - instance: ...
0
votes
1answer
43 views

Automatically Run Contract

I have a private ethereum network made up of multiple nodes and I would like one of them to interact with the a deployed smart contract without my input. Is it possible for create a script that will ...
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
1answer
1k views

ethminer invalid argument: -S

using below to mine ethminer --farm-recheck 200 -G -S asia1.ethpool.org:3333 -FS us1.ethpool.org:3333 -O a9a777fc5cfc9589e413635b0b878ae4061fda2 but it said 'Invalid argument: -S' Any ...
1
vote
4answers
399 views

how to measure a function execution time in online solidity compiler [duplicate]

I'm using online solidity compiler and would like to measure the CPU time for executing a function by capturing the time at start and end of the function. I found example for Javascript, but when ...
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
2answers
183 views

Is there any tool for Ethereum which can convert smart contract into REST API similar to hyperledger fabric?

In Hyperledger Fabric, REST API can be created for chain code/smart contract using composer-rest-server. Is there any tool which can do the same for Ethereum Smart Contract? So that any front ...
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.
0
votes
1answer
270 views

Where does geth store data except for the AppData\Roaming\Ethereum folder?

The AppData\Roaming\Ethereum folder on my computer weighs 5GB, but geth has reduced my disk space by a lot more than 5GB. Where else does it store data?
9
votes
4answers
3k views

Geth RPC connections securely

I have read everywhere that exposing personal over rpc is dangerous and is vulnerable. The question is HOW? Is it possible for anyone to send transactions to my geth console, if my ipaddress and port ...
0
votes
1answer
440 views

I downloaded and built quorum from the official git repo but I dont see the QOURUM OPTIONS

git clone -b geth1.6 --single-branch https://github.com/jpmorganchase/quorum.git NAME: geth - the go-ethereum command line interface Copyright 2013-2017 The go-ethereum Authors USAGE: geth [...
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; } } ...
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....
0
votes
1answer
319 views

How increase mining speed in AWS instance?

I have setup a private blockchain in AWS micro instance using go-ethereum. In that when I start the mining process it was taking nearly 2-3 hours to mine a new block.Whereas on my local machine it was ...
3
votes
1answer
592 views

Is Geth's Clique PoA Consensus Algorithm production ready?

Is it recommended to use geth's Clique PoA in a production setup or is it for test-net only? Does someone know of productive deployments of Clique PoA?
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:...
1
vote
1answer
267 views

why does it not work if I don't handle the return value of call/callcode/delegatecall?

This is my Contract code : pragma solidity ^0.4.15; contract D { uint public n; address public sender; event CallStatus(bool); function callSetN(address _e, uint _n) { if (!_e.call.gas(...
3
votes
1answer
464 views

Cannot make subscribe newBlockHeaders work

I'm doing this to get all blocks from the network: var web3 = new Web3(); web3.setProvider(new Web3.providers.IpcProvider("...", net)); web3.eth.subscribe('newBlockHeaders', function (err, result) { ...
1
vote
1answer
599 views

Geth settings for watching Events?

what are the optimal geth settings if you just want to listen to some events that are fired by smart contracts? I'm having a bit trouble to setup geth properly. Thanks a lot. PS: That is my ...
1
vote
3answers
425 views

How to manage keystore in private blockchain?

Ethereum Setup : I have created the private blockchain using two nodes (node1, node2). I have mounted a share drive between these two node to store keystore values so that both nodes can have same ...
1
vote
1answer
880 views

Can't connect to local rinkeby node from web3.js

I'm developing a Dapp using truffle and I need to connect to a contract that I uploaded on rinkeby using truffle migrate --network rinkeby. Problem is that I'm unable to connect to the rinkeby network ...
0
votes
1answer
258 views

call smartcontract functions using geth

I created a POA chain using this tutorial, I created a network of 5 nodes and 3 are mining on the network. I tried to deploy token contract to the network from one account using truffle and it was ...
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 { ...
2
votes
2answers
419 views

Help-A-Noob-With-Ethereum-Wallet-Blockchain-Download

I'm on a 2013 Macbook Pro / 16 GB ram / 512 SSD / 2.3 GHz I just transferred 3 ETH from my poloniex account to the Ethereum Wallet on my local machine. The thing is, the entire blockchain hasn't ...
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 ...
3
votes
2answers
989 views

connect Mist to geth running in private testnet

I'm trying to run a private ethereum testnet for myself. I have installed geth 1.6.7 from the official Ubuntu PPA, and downloaded the latest Mist release from its github repo. I've run geth --...
3
votes
1answer
505 views

Geth client: how to disable ipv6?

By default, the Geth client appears to listen to both IPv6 and IPv4. There doesn't appears to be a command line option to disable one of them. Is there a way to do it?
0
votes
1answer
323 views

SubscribeFilterLogs - cannot unmarshal array into Go value of type types.Log

i have a problem to get the Logs. Here is the Code: query := ethereum.FilterQuery{ Addresses: []common.Address{contractAddress}, } ctx := context.Background() ethereumLogsCh := make(chan ...
2
votes
1answer
305 views

How to debug geth with delve?

When I run delve as below, it errors about internal packages. How to overcome it? $ dlv debug cmd/geth/main.go cmd/geth/main.go:35:2: use of internal package not allowed exit status 1
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
20 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
1answer
204 views

How can I use truffle to deploy my contract to a local testnet (not testrpc)?

I followed the steps in the following link to create a local Ethereum testnet, but now I want to deploy a contract to "MyTestNetNode": https://medium.com/@WWWillems/how-to-set-up-a-private-ethereum-...
0
votes
1answer
21 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 ...
1
vote
1answer
447 views

How make web3 work on?

Sorry for noob question. I installed web3 (npm install web3), but for some reason instead of calling web3 methods or showing object data, nodejs displays object structure: > web3.eth.accounts ...
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 ...
1
vote
1answer
813 views

Am I mining at DwarfPool right?

I am using Geth and ethminer to mine at DwarfPool. I used the command geth -rpc to run geth, then I open another cmd and run the command ethminer --opencl-device 0 -G -F https://eth-eu.dwarfpool.com:...