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
440 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 ...
77
votes
11answers
28k 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
812 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
331 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
290 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 ...
-1
votes
0answers
184 views

Why such a rapid sustained mining rate on a testnet? [duplicate]

Using geth, I've setup a testnet and some accounts, and tried some transactions. I see that I have to unlock the account, send a transaction, and start mining to get it into the blockchain. Being lazy,...
0
votes
1answer
42 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
36 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 ...
0
votes
0answers
18 views

`geth js <javscript>` seems to ignore the javascript when run as a subprocess

I'm trying to run a private mining network for testing purposes for a website, but I'd like to only have the mining network "mine when needed" to keep the memory footprint of my test blockchain low. ...