aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-01-28 22:35:19 +0800
committerobscuren <geffobscura@gmail.com>2014-01-28 22:35:19 +0800
commit6ab368cf7426195a0d44b14ad6d82c020c024395 (patch)
treed2ca5fc99fe3b76c80ad0e50e5f4da109fcc21b4 /ethereum.go
parent2619604549ee632289fbde2a3065fa8dcfe65a23 (diff)
downloadgo-tangerine-6ab368cf7426195a0d44b14ad6d82c020c024395.tar
go-tangerine-6ab368cf7426195a0d44b14ad6d82c020c024395.tar.gz
go-tangerine-6ab368cf7426195a0d44b14ad6d82c020c024395.tar.bz2
go-tangerine-6ab368cf7426195a0d44b14ad6d82c020c024395.tar.lz
go-tangerine-6ab368cf7426195a0d44b14ad6d82c020c024395.tar.xz
go-tangerine-6ab368cf7426195a0d44b14ad6d82c020c024395.tar.zst
go-tangerine-6ab368cf7426195a0d44b14ad6d82c020c024395.zip
Changed block chain specific methods
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethereum.go b/ethereum.go
index d58033cdc..8608ca47a 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -84,7 +84,7 @@ func main() {
ethereum.Start()
if StartMining {
- blockTime := time.Duration(15)
+ blockTime := time.Duration(2)
log.Printf("Dev Test Mining started. Blocks found each %d seconds\n", blockTime)
// Fake block mining. It broadcasts a new block every 5 seconds
@@ -96,8 +96,8 @@ func main() {
txs := ethereum.TxPool.Flush()
block := ethchain.CreateBlock(
- ethereum.BlockManager.CurrentBlock.State().Root,
- ethereum.BlockManager.LastBlockHash,
+ ethereum.BlockManager.BlockChain().CurrentBlock.State().Root,
+ ethereum.BlockManager.BlockChain().LastBlockHash,
"123",
big.NewInt(1),
big.NewInt(1),