Skip to content

Commit 0f9f2b6

Browse files
committed
[Core] Fix not-pruned-check in miner for zerocoin mint outputs
1 parent 3698d47 commit 0f9f2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/miner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn, CWallet* pwallet,
279279
}
280280

281281
const Coin& coin = view.AccessCoin(txin.prevout);
282-
assert(!coin.IsPruned());
282+
assert(hasZerocoinSpends || !coin.IsPruned());
283283

284284
CAmount nValueIn = coin.out.nValue;
285285
nTotalIn += nValueIn;

0 commit comments

Comments
 (0)