good morning!!!!

Skip to content
Snippets Groups Projects
Commit 77309492 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Block processing during mining

parent 5e36e3cc
No related merge requests found
......@@ -7,7 +7,7 @@ import (
"github.com/ethereum/eth-go"
"github.com/ethereum/ethchain-go"
"github.com/ethereum/ethutil-go"
"github.com/ethereum/ethwire-go"
_ "github.com/ethereum/ethwire-go"
"log"
"os"
"os/signal"
......@@ -92,7 +92,8 @@ func main() {
ethereum.BlockManager.ApplyTransactions(block, block.Transactions())
// Search the nonce
block.Nonce = pow.Search(block)
ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.RlpValue().Value})
ethereum.BlockManager.ProcessBlock(block)
//ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.RlpValue().Value})
log.Println("\n+++++++ MINED BLK +++++++\n", block.String())
}
}()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment