diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-05 17:44:33 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-05 17:44:33 +0800 |
commit | 827505985652ac164d1f670797396d0f46774fb2 (patch) | |
tree | b4267aa3d891edb4c608d46d3dc1cb86880d6f73 /ethereum.go | |
parent | 833a1a4eab01392b69339762cf8fe443697138a2 (diff) | |
download | go-tangerine-827505985652ac164d1f670797396d0f46774fb2.tar go-tangerine-827505985652ac164d1f670797396d0f46774fb2.tar.gz go-tangerine-827505985652ac164d1f670797396d0f46774fb2.tar.bz2 go-tangerine-827505985652ac164d1f670797396d0f46774fb2.tar.lz go-tangerine-827505985652ac164d1f670797396d0f46774fb2.tar.xz go-tangerine-827505985652ac164d1f670797396d0f46774fb2.tar.zst go-tangerine-827505985652ac164d1f670797396d0f46774fb2.zip |
Moved qml files, conform to the new server model.
QML files got moved to their own directories. QML now has a ui helper
which should find assets in the correct resource directory
Diffstat (limited to 'ethereum.go')
-rw-r--r-- | ethereum.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ethereum.go b/ethereum.go index 07a40b10f..36cd75e47 100644 --- a/ethereum.go +++ b/ethereum.go @@ -144,7 +144,7 @@ func main() { } if ShowGenesis { - fmt.Println(ethereum.BlockManager.BlockChain().Genesis()) + fmt.Println(ethereum.BlockChain().Genesis()) os.Exit(0) } @@ -183,23 +183,24 @@ func main() { addr := keyRing.Get(1).Bytes() for { - txs := ethereum.TxPool.Flush() + txs := ethereum.TxPool().Flush() // Create a new block which we're going to mine - block := ethereum.BlockManager.BlockChain().NewBlock(addr, txs) + block := ethereum.BlockChain().NewBlock(addr, txs) log.Println("Mining on new block. Includes", len(block.Transactions()), "transactions") // Apply all transactions to the block - ethereum.BlockManager.ApplyTransactions(block, block.Transactions()) + ethereum.StateManager().ApplyTransactions(block, block.Transactions()) - ethereum.BlockManager.AccumelateRewards(block, block) + ethereum.StateManager().AccumelateRewards(block, block) // Search the nonce block.Nonce = pow.Search(block) ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.Value().Val}) - err := ethereum.BlockManager.ProcessBlock(block) + err := ethereum.StateManager().ProcessBlock(block) if err != nil { log.Println(err) } else { - log.Println("\n+++++++ MINED BLK +++++++\n", ethereum.BlockManager.BlockChain().CurrentBlock) + //log.Println("\n+++++++ MINED BLK +++++++\n", ethereum.BlockChain().CurrentBlock) + log.Printf("🔨 Mined block %x\n", block.Hash()) } } }() |