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

Fast sync ain't fast enough

I'm running geth with --syncmode=fast --cache=4096 --maxpeers=50 My laptop runs like crazy, but it's never able to reach the top of the chain (blocks are at the moment been created ~ once every 14 ...
1
vote
1answer
199 views

Ethereum private chain not able to addPeer

I created a private chain with my friend with exactly the same genesis block and we wanted to connect through the admin.addPeer method. The problem is that for some reason they are able to connect to ...
0
votes
2answers
585 views

How do I burn tokens with this code?

Someone help me with how I can burn tokens with this code or send out remaining tokens out to admin wallet. Thanks! pragma solidity ^0.4.19; library SafeMath { function mul(uint256 a, uint256 b) ...
0
votes
1answer
13 views

How to install solc of a specific version?

I want to install solc 0.4.24 but the commands given below installs the new version. sudo add-apt-repository ppa:ethereum/ethereum sudo apt-get update sudo apt-get install solc Or sudo snap install ...
0
votes
1answer
144 views

Pending tx with parity through geth console

I am having issues with the current version of geth 1.8. Thus, I tried using parity and got a node synced. I want to use web3 and because of familiarly, I want to use parity with the geth console ...
0
votes
2answers
342 views

Ethereum verify transaction using ecrecover returns incorrect address

** STILL NOT SOLVED ** I'm trying to verify a message, however the ecrecover function is returning the incorrect address: 0x828c50fDeE9160C76EE160C9d8e9D4bc4Cc3D591 function verify(bytes32 message, ...
0
votes
1answer
42 views

Pending transactions not mined in private network

I have created a node with the following genesis block: { "config":{ "chainId":9119, ...
1
vote
1answer
7 views

Security of Exclusively using MetaMask's Account as a Login Process

I am currently developing a Dapp in vue.js/node.js which will use MetaMask to interact with the Ethereum Network. I have the following code implemented in a JavaScript module. import web3 from 'web3';...
-1
votes
0answers
10 views

Failing in my first blockchain

I am learning blockchain, but it has been impossible to pass from this error: Fatal:account unlock with HTTP access is forbidden. I am using Ubuntu in a virtual machine. Please help me
0
votes
1answer
32 views

Running geth in light node?

I would like to run light nodes using geth, but I dont what version of geth is stable to that kind of node or even a sync mode fast node. thanks a lot.
0
votes
0answers
14 views

How to backup and restore a Geth server in full mode?

I had the experience of losing a Geth server due to some unknown software issues and whatever I could do for that time was moving keystore files to a new server. But it was a Geth server in fast mode. ...
1
vote
0answers
14 views

How does chainlink solve the oracle problem? [closed]

I've heard a lot about Chainlink recently -- how Synthetix, Aave and other top Defipulse projects are using them. How exactly does Chainlink solve the oracle problem from a technical perspective?
3
votes
3answers
425 views

How to make a Docker container talk to geth.ipc on local host

from web3 import Web3 web3 = Web3(Web3.IPCProvider("/Ethereum/geth.ipc")) print(f'IPC connected: {web3.isConnected()}') # want to return True I have the above script Dockerized and I'm trying to ...
0
votes
1answer
110 views

How to connect to Rinkeby without using Geth / Parity?

First let me explain my development environment. I am using Jupyter Notebook to play around with the Web3.py front-end code and Remix for the Solidity smart contract code. I am using the Metamask ...
1
vote
1answer
180 views

Not able to add ether in my private network's account

1. I have created a small ethereum private network. I opened launched the private network from terminal 1, launched the geth console from terminal 2, and opened mist browser in terminal 3. Once mist ...
0
votes
1answer
86 views

Can Geth be installed with Parity?

I have installed parity and it runs for PoA. When I try to install geth it fails - sudo apt-get install ethereum Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
10 views

Geth Fatal: Error starting protocol stack: gap in the chain between ancients and leveldb

I'm running a Geth mainnet node. As the size of chaindata is rapidly rising, I moved ancient to an auxiliary HDD plugged in to the same system. Some time afterwards (not sure when, maybe days?) I ...
0
votes
1answer
134 views

How to start mining and ipc port open

I know how to start mining and open ipc port seperately. First I unlocked my account using geth --datadir "ethereum/node1" --unlock ffc4136c8dd4ee4efb10ea954d65ad032ad86834 --password ethereum/...
1
vote
1answer
13 views

Save stack traces while syncing

I have been working on a project, where I would like to trace all transactions from a block and for this reason I have been using a fast-syncing node. It works well, the only issue is that querying ...
0
votes
0answers
13 views

How to implement full node in Ethereum2.0?

I have been running a full GETH node with Ethereum. When the Ethereum updates to Ethereum2.0 will the same node work or do I need to redo the whole process again? Also do I need to stake ethereum for ...
1
vote
2answers
115 views

Truffle Ropsten Deployment Issues

I just made some updates to my contracts and tried to redeploy them - but I'm getting this message, over and over again. Its not even attempting any of the migrations - it just goes right to this ...
1
vote
1answer
178 views

How do I start to write a function to debug Transaction?

I want to write a program that will do: for the given txhash debug TraceTransaction and return that What can i do in Go ? Do you have any materials, a tutorial or can you give me tips on how to ...
0
votes
1answer
26 views

What is the correct procedure to configure a minter on a USD Coin smart contract?

I have a USDC smart contract deployed and initialized on a local geth node. I want to mint some tokens with the 'mint' function but I am guessing that configuring the minter first with the '...
0
votes
1answer
158 views

Mist : Getting error Couldn't connect to node? See the logs for more:

First I started the private network and connected with 2 node . After I opened another terminal and used the command to open the mist: open -a /Applications/Mist.app --args --rpc /usr/local/Cellar/...
1
vote
1answer
207 views

ERC20 Token support for metamask website payment

I have the following code working in my site to accept ethereum payments in my website via metamask.... <!DOCTYPE html> <html> <head> <script src="https://cdnjs.cloudflare.com/...
1
vote
1answer
34 views

Gas price data from GETH

I am able to get gas price data as follows from some oracles (i.e., ethgasstation.info, etherscan.io): { "fast":50.0, "fastest":200.0, "safeLow":10.0, "average":20.0, "block_time":13....
3
votes
1answer
274 views

Geth Sync Problems | Rinkeby, Ropsten | Deploy contracts

Get Geth to sync --> Rinkeby test network. For the love of god I just want to deploy a contract. I have deployed it to Ganache-cli, GUI, remixIDE, deployed with truffle/Infuria.io...I keep failing to ...
0
votes
1answer
25 views

How to reset private ethereum blockchain (Geth)?

I am running private ethereum blockchain using ethereum and now I want to reset the chain and delete all the contracts, transactions and logs and restart everything from block 0. What is the best way ...
0
votes
1answer
307 views

getting full pending transactions from Infura

I use Infura to get all pending transactions from Ropsten: web3.eth.subscribe('pendingTransactions', async (error, txHash) => { let tx = getTransaction(txHash) ... } With this ...
0
votes
1answer
123 views

How to immediately close ethclient.Client RPC sockets so they don't linger in TIME_WAIT status on server?

My server is running out of available sockets while I am using goroutines (limited to 100 concurrently) because once a goroutine finishes the ethclient.Client socket stays open in TIME_WAIT status for ...
0
votes
1answer
78 views

Meteor's EthBlocks.latest.number not updating

Created a very simple Meteor app to display the current block number using ethereum:block. Problem: Even though the current block number is displayed when the page loads, it does not update both on ...
0
votes
1answer
128 views

Call contract function from another

I want to know what make the function below called successfully using web3js and throw " Error: VM Exception while processing transaction: revert" when I call it from another smart contract. function ...
0
votes
0answers
16 views

Can send ether from geth account to wallet, but not from wallet to geth (invalid sender)

geth is running as a private network. It has its own accounts, stored in its keystore. One of them is used for mining. The others are funded with ether. MyCrypto wallet (desktop version) is connected ...
1
vote
1answer
103 views

how to configure block explorer securely?

There are many block explorers that offer this service publicly, they are based on this explorer: github.com/etherparty/explorer I tried to use it, but to make it work (so my users could explore ...
0
votes
1answer
126 views

Security Implications of allowing remote RPC connections to Geth Node

What are the security Implications of allowing remote RPC connections to Geth Node? If one absolutely needs to allow remote rpc connections for web3 connection, how can one do this while securing the ...
0
votes
1answer
110 views

Ropsten Block Height is different than Block Height on local GETH instance

I am running a GETH instance on my machine geth --testnet --syncmode "fast" --ipcpath /home/ubuntu/.ethereum/geth.ipc --rpc --rpcapi db,eth,net,web3,personal --cache=2048 --rpcport 8545 --rpcaddr 127....
0
votes
1answer
90 views

How to connect to a peer in ethereum and then run contract on ethereum?

I have developed a smart contract and run it with remix in cases of javascript vm and web3 provider. Now, I want to run it such that my computer to be connected to real ethereum network. I think in ...
2
votes
1answer
207 views

Alternatives to listen Events contract with web3.py?

I'm facing some issue/bug on web3.py, I need to listen my event contract, but event logs are always empty. I know the following issue on Ganach-CLI but may be there is other alternative. I already ...
2
votes
1answer
2k views

How to get network hash rate of ethereum blockchain via geth console or web3

I want to know about how can i get ethereum blockchain network hash rate via geth console or web3. Like the result of this api - https://www.etherchain.org/api/miningEstimator { "blocktime":"14....
1
vote
2answers
50 views

How to get reason revert using web3.eth.call

I have a smart contract with required message and pretend to use the required/validation message in front end. require(bytes(hashAlreadyRegistered[hash]).length == 0, "Hash already registered&...
1
vote
1answer
109 views

Solidity returning a value to authorized address

I am writing a Smart Contract that saves a certain random hash given by the owner that is used for a 3rd party reason. I would like the owner of the contract to specify some Ethereum addresses that is ...
0
votes
1answer
139 views

Transaction happen but ethers were not send in private network

I wanted to transfer 5 etheres from my coinbase address to my another account. My coinbase balance is: > eth.getBalance(eth.coinbase) 9.999999999999999999999999999999999e+33 So I ...
1
vote
1answer
78 views

Parity 2.2.7 doesn't recognize “registrar” or “eip150Transition” in the genesis file

I am trying to run a Parity client and sync it with a Geth private blockchain. I was able to do it at first, but after adding "constantinopleBlock", "byzantiumBlock" and "petersburgBlock" to the ...
0
votes
1answer
283 views

Geth keeps shutting down on AWS EC2 instance

I am trying to run a Geth node on an AWS EC2 instance. I am able to start it, and it runs fine for a while, but keeps crashing periodically and not leaving much in the log. The EC2 instance is a T2....
0
votes
0answers
13 views

Setting up a desktop wallet with a private network on geth

Disclosures: I've never set up a wallet before, and am new to geth. I'm not worried about security right now. My goal is to set up several wallets on my private chain (if possible) in order to learn ...
0
votes
0answers
18 views

decode a transaction receipt which does not have an event log

Is there a way to decode a transaction receipt which does not have an event log? In the case of an event log we have topics which we can decode, but what about the case when an event isn't triggered ...
0
votes
1answer
275 views

Private Ethereum Chain and Web3 js API

I've developed my own private chain for testnet using geth and CLique and i have some issues with web3.js environment. I starts my nodes using the console parameter in order to get to the Web3 console ...
2
votes
1answer
98 views

Event filter of a contract doesn't filter light client

hello i use the env is android go ethereum light client not web3j not web3j i init geth code FilterQuery selfFQ = Geth.newFilterQuery(); selfFQ.setTopics(Geth.newTopicsEmpty())...
0
votes
1answer
88 views

How to setup clef signer with clef --stdio-ui

I have geth running on rinkeby network and successfully used clef as a signer using command. clef --keystore ~/.ethereum/rinkeby/keystore --chainid 4 --stdio-ui Also started geth with clef as ...
0
votes
1answer
910 views

How to use infura with web3 to talk to remote ropsten node?

I understand we need mnemonic as we did use it in deploying contract with truffle so as to be able to send ether from our ropsten account private keys. I could not find a way use the same in my server....

1
2 3 4 5
101