Skip to content

Commit

Permalink
Fixed sigma spend on regtest/testnet chains (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
psolstice authored Aug 21, 2020
1 parent e9ec326 commit 4c7291c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sigma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1059,14 +1059,14 @@ int CSigmaState::GetCoinSetForSpend(
}
BOOST_FOREACH(const sigma::PublicCoin& pubCoinValue,
block->sigmaMintedPubCoins[denomAndId]) {
if (chainActive.Height() > ::Params().GetConsensus().nStartSigmaBlacklist) {
if (chainActive.Height() >= ::Params().GetConsensus().nStartSigmaBlacklist) {
std::vector<unsigned char> vch = pubCoinValue.getValue().getvch();
if(sigma_blacklist.count(HexStr(vch.begin(), vch.end())) > 0) {
continue;
}
coins_out.push_back(pubCoinValue);
numberOfCoins++;
}
coins_out.push_back(pubCoinValue);
numberOfCoins++;
}
}
}
Expand Down

0 comments on commit 4c7291c

Please sign in to comment.