Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlagore committed Jul 9, 2017
1 parent 8d955b6 commit 9fd850b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var CurrentlyMiningLock sync.RWMutex
const (
// MiningSuccessful is returned when the miner mines a block.
MiningSuccessful = iota
// MiningNeverStarted is returned when the block is invalid.
// MiningNeverStarted is returned when the block header is invalid.
MiningNeverStarted = iota
// MiningHalted is returned when the app halts the miner.
MiningHalted = iota
Expand Down Expand Up @@ -47,6 +47,7 @@ func RestartMiner(bc *blockchain.BlockChain, b *blockchain.Block) {

// Mine continuously increases the nonce and tries to verify the proof of work
// until the puzzle is solved
// TODO: Make Mine take an interface with a callback as an arguement.
func Mine(bc *blockchain.BlockChain, b *blockchain.Block) *MiningResult {
setStart()
if valid, _ := bc.ValidBlock(b); !valid {
Expand Down

0 comments on commit 9fd850b

Please sign in to comment.