mirror of https://github.com/status-im/op-geth.git
Block processing during mining
This commit is contained in:
parent
5e36e3ccc7
commit
7730949221
|
@ -7,7 +7,7 @@ import (
|
||||||
"github.com/ethereum/eth-go"
|
"github.com/ethereum/eth-go"
|
||||||
"github.com/ethereum/ethchain-go"
|
"github.com/ethereum/ethchain-go"
|
||||||
"github.com/ethereum/ethutil-go"
|
"github.com/ethereum/ethutil-go"
|
||||||
"github.com/ethereum/ethwire-go"
|
_ "github.com/ethereum/ethwire-go"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
@ -92,7 +92,8 @@ func main() {
|
||||||
ethereum.BlockManager.ApplyTransactions(block, block.Transactions())
|
ethereum.BlockManager.ApplyTransactions(block, block.Transactions())
|
||||||
// Search the nonce
|
// Search the nonce
|
||||||
block.Nonce = pow.Search(block)
|
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())
|
log.Println("\n+++++++ MINED BLK +++++++\n", block.String())
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in New Issue