PoC 6 networking code.
* Added block pool for gathering blocks from the network (chunks) * Re wrote syncing
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user