diff --git a/lib/wallet/txdb.js b/lib/wallet/txdb.js index d2adf816e..9c59a67bc 100644 --- a/lib/wallet/txdb.js +++ b/lib/wallet/txdb.js @@ -2017,14 +2017,17 @@ class TXDB { const {prevout} = tx.inputs[i]; const coin = view.getOutput(prevout); - const uc = coin.covenant; - const blind = uc.getHash(3); - const nonce = covenant.getHash(2); - this.putBlind(b, blind, { - value: output.value, - nonce: nonce - }); + if (coin) { + const uc = coin.covenant; + const blind = uc.getHash(3); + const nonce = covenant.getHash(2); + + this.putBlind(b, blind, { + value: output.value, + nonce: nonce + }); + } this.putReveal(b, nameHash, outpoint, { name: ns.name,