aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-21 20:47:58 +0800
committerobscuren <geffobscura@gmail.com>2014-08-21 20:47:58 +0800
commiteaa2e8900d1036e09b002c4e20fc6e4f9cd031bb (patch)
tree9a0c4c4b1bda39560c70147c73862d72eff38dd1 /ethereum.go
parent79c64f6bca4fcfb257496be22c64f4b2faed7050 (diff)
downloadgo-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar
go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar.gz
go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar.bz2
go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar.lz
go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar.xz
go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar.zst
go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.zip
PoC 6 networking code.
* Added block pool for gathering blocks from the network (chunks) * Re wrote syncing
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ethereum.go b/ethereum.go
index c1c4c2f2f..1e1891589 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -54,6 +54,8 @@ type Ethereum struct {
txPool *ethchain.TxPool
// The canonical chain
blockChain *ethchain.BlockChain
+ // The block pool
+ blockPool *BlockPool
// Peers (NYI)
peers *list.List
// Nonce
@@ -116,6 +118,7 @@ func New(db ethutil.Database, clientIdentity ethwire.ClientIdentity, keyManager
}
ethereum.reactor = ethreact.New()
+ ethereum.blockPool = NewBlockPool(ethereum)
ethereum.txPool = ethchain.NewTxPool(ethereum)
ethereum.blockChain = ethchain.NewBlockChain(ethereum)
ethereum.stateManager = ethchain.NewStateManager(ethereum)