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.

0
votes
1answer
28 views

eth-netstats app - Not able to see Node Type. Also network, protocol and web3 values are being displayed as null

I have a network of 3 nodes and I can see that all nodes are listed on the dashboard. However for one of the node, I am see the values of network, protocol and web3 as null. Also I am not able see ...
0
votes
1answer
13 views

I have a question relating to the Ethereum transaction

The amount of I had was transferred to another wallet I didn't know. https://etherscan.io/address/0xcf487d1a303b42bb419f06717209ef5358294759 I have a few questions about why this could happen. Can ...
1
vote
0answers
16 views

Secuirty Token Escrow setllement

Is Esrcow could be applied in ST 20 tokens ? If yes, please guide for the same.
1
vote
0answers
61 views

What is contex_canceled error in Geth?

I'm trying to run a public method in my smart contract in rinkeby network. But it fails with following error in Geth, INFO [02-06|06:01:19.593] Served eth_call conn=172.17.42.1:23241 reqid=1 t=320....
0
votes
0answers
29 views

Decline a transaction in a PoA network

Is it possible to decline a transaction in a PoA network? Or to say it in other words: Can a sealer decline to put a transaction into a block he is going to mine? I want to prevent transactions to be ...
0
votes
2answers
26 views

Keep private data in contract and manage access

Is it possible to keep data in a contract, in a similar way that we can create wallet contract? Wondering if it would be possible to keep that and then manage the access to this 'hidden' data ...
0
votes
1answer
38 views

Problems with Geth 1.8.19-stable

I am trying to add static peers by static-nodes.json file but with this version it does not work. What is the way to do it ? If I add peers with admin.addPeer() it works, but if I am using --syncmode ...
1
vote
0answers
92 views

using events in private blockchain raises leveldb not found error

i'm getting { [Error: Node error: {"code":-32000,"message":"leveldb: not found"}] when trying to use events on a private eth blockhain. What might be the problem? (I've installed Leveldb with brew) ...
1
vote
1answer
65 views

Cannot connect to ganache-cli with web3 and nodejs

from package.json: "ganache-cli": "^6.3.0", "web3": "^1.0.0-beta.41", in my createContract.js const Web3 = require("web3"); const ganache = require("ganache-cli"); console.log('ganache.provider :', ...
0
votes
1answer
19 views

Access to providers in a cluster with web3 does not work

I have a blockchain deployed in a cluster. I have a geth instance running in a cluster-node and another one in another cluster-node, making a blockchain. I want to run an script which needs to access ...
1
vote
1answer
12 views

What is the best resource for keeping up with changes to geth/Ethereum?

For example, is there a dev blog or something similar that goes over the changes in new releases of geth, and the reasoning on the new changes? Or is it best to just watch the github repository?
0
votes
1answer
11 views

Does go-ethereum encrypt new wallets by default?

And if so, is it considered safe to store and encrypted wallet on a unencrypted drive? I know there is a process to lock and unlock accounts with a password, but how difficult is it to brute force ...
3
votes
0answers
30 views

Error trying to synchronize geth clique client after shutdown

I'm working with a private network using geth clique clients. Each time a node shut downs, (after a power cut, or just killing the geth process), if a try to put it to work again, the node can't ...
0
votes
1answer
44 views

geth event newPendingTransactions does not occur

I've got running geth with next command: $ geth --testnet --networkid 3 --verbosity 3 --syncmode light --ipcdisable --ws --wsapi "db,eth,net,web3,personal,txpool,admin,miner" --wsorigins '*' In ...
1
vote
0answers
16 views

Ethereum based settlement engine

What do you meant by settlement engine in ethereum? I need a payment settlement engine that to be based on ethereum for cryptos and security tokens. Is the same as escrow ? Any open source link for ...
0
votes
0answers
30 views

Impossible reorg, please file an issue

Have any of you encountered this issue with geth sync? After some time geth stops and throws this error. ERROR[02-04|10:12:16.680] Impossible reorg, please file an issue oldnum=131049 oldhash=...
0
votes
0answers
30 views

How to call a function of deployed contract in geth console?

I dolpyed a contract to a test net. Now I would like to interact with the contract in the geth console. I have the abi and the address of the contract. I did the following in the geth console: > ...
1
vote
0answers
21 views

Geth local and remote port numbers [closed]

I've started three Ethereum nodes using Geth, and they happen to be on the same node. I've specified the ports (30401, 30402, 30403) and used the --nodiscover options. On each of the nodes, I've ...
1
vote
0answers
15 views

How can I safely access management RPC calls on a remote server?

I read in many places that you should not expose the management APIs when running a geth node. If this is the case, how can I access these APIs if I must do so on a remote server? If the server is ...
0
votes
0answers
60 views

Web3 Contract Constructor Error

Currently getting this error in my Browser's Console: My current set up is as follows: Truffle v5.0.3 (core: 5.0.3) Solidity - 0.5.0 (solc-js) Node v8.9.4 Here's my code - and note that I'm using ....
1
vote
0answers
58 views

Solidity Compiler won't upgrade

I updated to the latest version of Truffle using: npm uninstall -g truffle followed by: npm install -g truffle I verified this succeeded by doing: truffle --version and got this: You can ...
1
vote
0answers
11 views

Error while compiling a function [duplicate]

Below function is showing error while compilation that "stack is too deep, try removing local variables mapping (address => mapping (uint => Exam)) public exams; function getExamQuestion( ...
0
votes
1answer
19 views

I have a question about the gas charge [closed]

I have a question about the gas charge. I want the user to pay. How do I get it. There are certain wallet addresses. They'll send 0 ether. the tokens they earn will be uploaded to their accounts. ...
1
vote
1answer
17 views

I want to change 17k addresses password on ubuntu server

I have 17k ethereum addresses. I want to change passphrase all of them. Are there any way to change all addresses passphrase? geth account update 0x... It is really hard to change 17k addresses ...
0
votes
2answers
48 views

Mine transaction but do not broadcast

I have four transactions which I would like to include in the same block, T1, T2, T3, T4. There is a race condition so I do not want to broadcast these transactions unless I can be sure they will ...
0
votes
0answers
30 views

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

I am running ganache app locally in windows 10 and trying to connect with node app on localhost:8080 but getting below error Please help me!
0
votes
1answer
33 views

when and who executes the ethereum transaction

Although this question is asked and answered several times, I'm still confused about who executes the ethereum transaction and when? I want to know the right answer (if possible with proof from the ...
0
votes
0answers
14 views

Error in establishing the connection between Geth and Api (Invalid JSON RPC response)

For my test project, I have my geth running in main server(rpc port-8117). The api(node.js), which is used to interact with the geth is present in the other system. In the api, I have given the http ...
0
votes
1answer
30 views

Not able to create second geth node on the same machine

I am trying to add a peer Geth node on the same machine using the link https://github.com/ethereum/go-ethereum/wiki/Setting-up-private-network-or-local-cluster However, getting chainId which is wrong. ...
0
votes
1answer
68 views

How to fork Ethereum(go implementation) to make a new chain? [duplicate]

I want to fork Ethereum(go implementation) to make another new public chain which should start again from the block zero but keeping all other parameters same as in main chain. Please guide me with ...
1
vote
1answer
63 views

Why is Geth importing the same block multiple times?

I have this geth node that run in testnet and a program(worker) that will read the block every second. I notice sometimes, the geth imported segment chain with same block number but different hash, ...
0
votes
1answer
12 views

Is it possible to artificially delete a given block from local chain database without causing any problems?

Is it possible to artificially delete a given block from local chain database without causing any problems? for example, how could I delete the latest block from my local eth node, and resync newly ...
1
vote
0answers
16 views

Change name “Ethereum”, “ETH” etc. of a private chain

I'm trying to run a private chain with geth and all works properly, but how can I change the name of "Ethereum" and "ETH" and choose a new name and a new TAG? Thank you.
2
votes
0answers
33 views

How to read block propagation delay from ethstats.net?

I am wondering what is the average (or mdeian) time it takes to propagate a block in the Ethereum blockchain? I found ethstats.net provides a cummlative graph for block block propagation but do not ...
0
votes
0answers
55 views

Getting error while trying to generate genesis block?

I am trying to generate the genesis block but getting an error: Please guide me for this issue.
0
votes
1answer
79 views

Geth not syncing Ropsten - why?

Geth not syncing Ropsten - why? :~/Eth$ geth --testnet --syncmode fast --bootnodes "enode://...
0
votes
1answer
55 views

Geth - Check balance on --light mode

I am running a lightmode geth daemon, and I want to check the balance of my daemon. I read this answer, which says that I cannot use the command that I am currently using, as it requires support for ...
0
votes
0answers
8 views

Why blockchain.currentBlock height is 1 after reboot geth(height 100 before)?

Sometimes, why the current block height is 1 when the 'geth' reboot ( height is 100 before), so it tooltips ErrKnownBlock = errors.New("block already known") If the geth reboot, why the block height ...
1
vote
0answers
6 views

Why block with txs interrupt the empty block when ethereum source code worker.go

When I watch the ethereum file work.go ,the method commitNewWork, fragments as follows: if !noempty { // Create an empty block based on temporary copied state for sealing in advance ...
0
votes
0answers
26 views

Can I use Flutter or Android Studio to design front end instead of using react.js and still be able to interact with ethereum?

I am new to blockchain and currently learning solidity. I have understood the concept behind blockchain and solidity is also good so far. I can design mocha tests and deploy the contract on local ...
0
votes
1answer
31 views

Is there any difference between transaction hash and transaction receipt?

Is there any difference between transaction hash and transaction receipt ? or both are same. Whenever a transaction occurs, ethereum will reply with a hash value before the value is mined and added to ...
1
vote
1answer
41 views

How to query incoming transactions to an ethereum address via web3j?

i know this question has been asked many times in this forum, but none of them give clear cut answer to the questions. I tried the snippet mentioned in this answer: Common useful JavaScript snippets ...
1
vote
0answers
39 views

Why is my geth node stuck on block 7130891?

My geth mainnet node (version 1.8.21) has stopped on block 7130891. Interestingly, eth.syncing returns false and eth.blockNumber constantly returns 7130891. It was working up until ~24 hours ago. ...
2
votes
1answer
29 views

Bytes16 event topic not being decoded (or encoded?) correctly

I'm having an issue with a UUID in bytes16 form being emitted as an indexed event topic, and I'm not sure where in the stack this is originating. The event being emitted in Solidity looks like the ...
0
votes
0answers
29 views

Simple Payment Channel contract is not signing payments and returns false

I have deployed the smart contract of Payment channel and every thing is working fine but at the time of closing the channel signature is not being validate. I think passing the arguments in a wrong ...
1
vote
0answers
18 views

Passing constructor arguments in the NewContractCreation in go-ethereum

I am trying to create a transaction to deploy a contract using the types.NewContractCreation() method in the core folder of go-ethereum. However I don’t understand how to pass the parameters of the ...
0
votes
2answers
40 views

How to skip transactional nonce for private ethereum chain

We are using a private ehtereum chain on geth. It is mainly for the purpose of storing the values as part of transactions and distribute across our private network. However when we are sending ...
0
votes
0answers
46 views

ERC20 Crowdsale Contract Deployed - but Fails to Sell Tokens

I successfully deployed both an ERC20 Token as well as a Crowdsale Contract to the Ropsten Testnet. -I used code from OpenZeppelin's library for both contracts -While the deployments work and I'm ...
0
votes
0answers
24 views

Remix Gas Error in ERC20 Token Contract

I successfully deployed to ROPSTEN a very simple ERC20 Token Contract - the code for which I copy-pasted from OpenZeppelin's GitHub repo. -I used remix to do this (see screengrab below) -I'm 99.9% ...
2
votes
1answer
21 views

How to make my tx broadcasted faster to a miner node?

Is there any way to config my Go-Ethereum node so that it can send my tx directly to a miner node, which makes the transaction faster to be included into a block.