Linked Questions

20
votes
3answers
4k views

Why does ethereum creates a new block,without even a single transaction? [duplicate]

I'm running a private Ethereum blockchain. When I set one of the nodes to mine, that node continuously creates blocks, even if there are no transactions inside of it. What is the purpose of this?
3
votes
1answer
915 views

How does a miner mine blocks without any transactions on a private network? [duplicate]

If I start a node with a random network id and a custom data directory, I can create an account and start mining. What I expected after starting the miner is that it won't be able to mine any blocks ...
0
votes
1answer
97 views

What is miner Mining? [duplicate]

I am new to blockchain and ethereum. I created a private network with two nodes, I have couple of questions: After starting the miner it starts mining even if there is no transaction performed. So ...
0
votes
1answer
55 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....
0
votes
0answers
42 views

What gets mined in a private test network? [duplicate]

I followed the instructions in this answer to get a private testnet. When I start mining in dev/private network using miner.start() what exactly is being mined? Since I am the only node in the ...
1
vote
1answer
41 views

Unnecessary mining [duplicate]

Short Question: Why is my node mining? Long Question: I just deployed Ethereum using the following information: Genesis code { "config": { "chainId": 7654321, "homesteadBlock": 0, "...
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 ...
1
vote
0answers
18 views

necessity of mining while doing transaction [duplicate]

While doing any transaction in private network, is it necessary for one node to keep on mining?. I was trying to implement to deploy smart contract and transact in ethereum private network with the ...
80
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....
10
votes
1answer
1k views

Why do some blocks contain no transactions?

While poking through my Geth logs I noticed that block 1,000,006 doesn't actually contain any transactions. Why is that?
5
votes
1answer
1k views

Smart contract on a private Ethereum Blockchain - Workflow & questions

I am trying to build a small app that would rely on a private Ethereum Blockchain. I am relatively new to this and am still having a few questions about the whole process. I will try to be as clear as ...
5
votes
2answers
657 views

How does mining work in ethereum private test net?

I'm working on smart contracts and using Ethereum wallet. I have formed a private test net and successfully deployed smart contracts on that network. But, I didn't get how the miner functionality ...
3
votes
1answer
292 views

Private network, Geth, receipt not found for transaction 0x

I started a private network with Geth. Geth 1.5.9-stable, Windows 10. Here is My genesis.json: { "nonce": "0x0000000000000042", "timestamp": "0x0", "parentHash": "...