From 3c4292fae395cbacf971ccb4e29e175b78611f33 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 24 Jul 2013 11:12:25 -0500 Subject: [PATCH] Add parent to info print when adding orphans. --- process.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process.go b/process.go index 5b9eef98..5b96a608 100644 --- a/process.go +++ b/process.go @@ -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