aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-01-27 22:34:10 +0800
committerobscuren <geffobscura@gmail.com>2014-01-27 22:34:10 +0800
commit8b9dcdcdf04eb13e39101532a90b4a552754cb7f (patch)
treeed05864e407f52e40a3cc1ae607d42402abe43d8 /ethereum.go
parentc6062a0f73c01bd069394d81a506c64a4272b124 (diff)
downloadgo-tangerine-8b9dcdcdf04eb13e39101532a90b4a552754cb7f.tar
go-tangerine-8b9dcdcdf04eb13e39101532a90b4a552754cb7f.tar.gz
go-tangerine-8b9dcdcdf04eb13e39101532a90b4a552754cb7f.tar.bz2
go-tangerine-8b9dcdcdf04eb13e39101532a90b4a552754cb7f.tar.lz
go-tangerine-8b9dcdcdf04eb13e39101532a90b4a552754cb7f.tar.xz
go-tangerine-8b9dcdcdf04eb13e39101532a90b4a552754cb7f.tar.zst
go-tangerine-8b9dcdcdf04eb13e39101532a90b4a552754cb7f.zip
Debugging handles
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/ethereum.go b/ethereum.go
index e434f3c8e..d58033cdc 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -50,6 +50,8 @@ func main() {
ethchain.InitFees()
ethutil.ReadConfig()
+ log.Printf("Starting Ethereum v%s\n", ethutil.Config.Ver)
+
// Instantiated a eth stack
ethereum, err := eth.New()
if err != nil {
@@ -77,8 +79,6 @@ func main() {
go console.Start()
}
- log.Println("Starting Ethereum")
-
RegisterInterupts(ethereum)
ethereum.Start()
@@ -90,10 +90,11 @@ func main() {
// Fake block mining. It broadcasts a new block every 5 seconds
go func() {
for {
- txs := ethereum.TxPool.Flush()
time.Sleep(blockTime * time.Second)
+ txs := ethereum.TxPool.Flush()
+
block := ethchain.CreateBlock(
ethereum.BlockManager.CurrentBlock.State().Root,
ethereum.BlockManager.LastBlockHash,