Branch: refs/heads/master
Home: https://github.com/conformal/btcd
Commit: 1d674905e0c1f6bd712362da941664c3063cfe5f
https://github.com/conformal/btcd/commit/1d674905e0c1f6bd712362da941664c3063cfe5f
Author: Dave Collins <[email protected]>
Date: 2014-03-20 (Thu, 20 Mar 2014)
Changed paths:
M blockmanager.go
Log Message:
-----------
Introduce a chain state to block manager.
This commit introduces a chain state that is updated as blocks are
processed into the block chain instance associated with the block manager.
This has been done because btcchain is currently not safe for concurrent
access and the block manager is typically quite busy processing block and
inventory. This approach allows fast access to most chain information in
a concurrent safe fashion.