diff --git a/notifications.go b/notifications.go index bd3dfe9ae..4ad7b376d 100644 --- a/notifications.go +++ b/notifications.go @@ -14,8 +14,9 @@ type NotificationType int // Constants for the type of a notification message. const ( // NTOrphanBlock indicates an orphan block was processed and the - // associated block hash is the root of all known orphans which should - // be used to request the missing blocks. + // associated block hash should be passed to the GetOrphanRoot function + // to find the root of all known orphans which should then be used to + // request the missing blocks. NTOrphanBlock NotificationType = iota // NTBlockAccepted indicates the associated block was accepted into diff --git a/process.go b/process.go index 29aaa0bf6..98e120f49 100644 --- a/process.go +++ b/process.go @@ -148,11 +148,8 @@ func (b *BlockChain) ProcessBlock(block *btcutil.Block) error { prevHash) b.addOrphanBlock(block) - // Get the hash for the head of the orphaned block chain for - // this block and notify the caller so it can request missing - // blocks. - orphanRoot := b.GetOrphanRoot(blockHash) - b.sendNotification(NTOrphanBlock, orphanRoot) + // Notify the caller so it can request missing blocks. + b.sendNotification(NTOrphanBlock, blockHash) return nil }