log "github.com/sirupsen/logrus"
"gopkg.in/karalabe/cookiejar.v2/collections/prque"
+ "github.com/vapor/chain"
"github.com/vapor/protocol/bc"
)
// blockFetcher is responsible for accumulating block announcements from various peers
// and scheduling them for retrieval.
type blockFetcher struct {
- chain Chain
+ chain chain.Chain
peers *peerSet
newBlockCh chan *blockMsg
}
//NewBlockFetcher creates a block fetcher to retrieve blocks of the new mined.
-func newBlockFetcher(chain Chain, peers *peerSet) *blockFetcher {
+func newBlockFetcher(chain chain.Chain, peers *peerSet) *blockFetcher {
f := &blockFetcher{
chain: chain,
peers: peers,