Linked Questions

0
votes
1answer
2k views

How to stop mining unwanted blocks on private net on geth ethrereum [duplicate]

I have started a geth client using the below client(I had already created two accounts.: geth --datadir datadir --networkid 123 --rpc --rpcaddr="localhost" --rpccorsdomain="*" --unlock <my account&...
0
votes
1answer
484 views

Automate mining based on a trigger in Geth [duplicate]

Currently, I am manually running the miner.start() function every time I want to mine in geth. How can I add a trigger in such a way that mining takes place automatically when there are 5 transactions ...
78
votes
11answers
29k views

Common useful JavaScript snippets for geth

In geth you can loadscript any .js file. I discovered this one on the wiki which I like a lot: function checkAllBalances() { var i =0; eth.accounts.forEach( function(e){ console.log(" eth....
3
votes
3answers
874 views

geth Clique consensus skip empty blocks

The Clique consensus seems to be always sealing a new block at fixed intervals of period seconds, where period is the setting in the genesis block (config.clique.period). That seems wasteful, indeed ...
1
vote
1answer
334 views

Automate transaction mining using Geth loadScript

I'm trying to configure a 1-node private network to mine transactions as they come in. I found this question which has a script that can be loaded into geth to do exactly this. However, I need to go ...
2
votes
0answers
348 views

Private Ethereum blockchain: missing trie node

I deployed a private blockchain with the following steps: Setting the difficulty to a fixed value (see Running a “quick” Ethereum private network for experimentation and testing) and creating the ...
0
votes
1answer
47 views

Don't undestand what it is mining [duplicate]

Could somebody help me out please? I'm really stuck creating a Private Ethereum Network and undestadning what the nodes are mining. SO : Windows Ethereum Client : Go-Ethereum Here is my genesis....
1
vote
0answers
38 views

Why does mining continue without pending transactions (e.g. turned on by default with Azure Template)? [duplicate]

I understand that the miner mines after calling miner.start() until you call miner.stop(). This is already explained here. However, I want to understand the idea behind this concept of continuous ...
0
votes
1answer
20 views

Custom miner checks in a private chain?

I have used the ideas from the link [1]How to make miner to mine only when there are Pending Transactions? in my private chain. I have a couple of questions, - How can I add custom code on the miners ...