Skip to content

Commit 4e5dc84

Browse files
committed
Better logging for CheckCoinSpend
Also re-introduce the regtest specific conditional
1 parent b3bb83a commit 4e5dc84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4684,10 +4684,10 @@ bool CWallet::CheckCoinSpend(libzerocoin::CoinSpend& spend, libzerocoin::Accumul
46844684
{
46854685
if (!spend.Verify(accumulator)) {
46864686
receipt.SetStatus(_("The transaction did not verify"), ZPIV_BAD_SERIALIZATION);
4687-
return false;
4687+
return error("%s : The transaction did not verify", __func__);
46884688
}
46894689

4690-
if (IsSerialKnown(spend.getCoinSerialNumber())) {
4690+
if (Params().NetworkID() != CBaseChainParams::REGTEST && IsSerialKnown(spend.getCoinSerialNumber())) {
46914691
//Tried to spend an already spent zPIV
46924692
receipt.SetStatus(_("The coin spend has been used"), ZPIV_SPENT_USED_ZPIV);
46934693
uint256 hashSerial = GetSerialHash(spend.getCoinSerialNumber());

0 commit comments

Comments
 (0)