Add parent to info print when adding orphans.

This commit is contained in:
Dave Collins 2013-07-24 11:12:25 -05:00
parent ebd4af80f0
commit 3c4292fae3

View file

@ -144,7 +144,8 @@ func (b *BlockChain) ProcessBlock(block *btcutil.Block) error {
prevHash := &blockHeader.PrevBlock
if !prevHash.IsEqual(zeroHash) && !b.blockExists(prevHash) {
// Add the orphan block to the orphan pool.
log.Infof("Adding orphan block %v", blockHash)
log.Infof("Adding orphan block %v with parent %v", blockHash,
prevHash)
b.addOrphanBlock(block)
// Get the hash for the head of the orphaned block chain for