Add parent to info print when adding orphans.
This commit is contained in:
parent
ebd4af80f0
commit
3c4292fae3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue