From dbed552d8e783cdddfe8ad2f286d4d95f93d63c6 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 4 May 2017 15:40:02 -0700 Subject: [PATCH] utxonursery: properly return dropped error --- utxonursery.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utxonursery.go b/utxonursery.go index ea6a974c..7a4fafba 100644 --- a/utxonursery.go +++ b/utxonursery.go @@ -166,6 +166,9 @@ func (u *utxoNursery) reloadPreschool() error { return psclBucket.ForEach(func(outputBytes, kidBytes []byte) error { psclOutput, err := deserializeKidOutput(bytes.NewBuffer(kidBytes)) + if err != nil { + return err + } outpoint := psclOutput.outPoint sourceTxid := outpoint.Hash