Skip to content

Commit

Permalink
Testnet sync fix
Browse files Browse the repository at this point in the history
  • Loading branch information
miketout committed Jun 28, 2023
1 parent 126f3a6 commit e8371ac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pbaas/identity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,10 +1315,11 @@ bool ValidateSpendingIdentityReservation(const CTransaction &tx, int32_t outNum,
{
if (isPBaaS)
{
bool testModePreUpdate = PBAAS_TESTMODE && !ConnectedChains.IncludePostLaunchFees(height);
if (issuingCurrency.proofProtocol == issuingCurrency.PROOF_CHAINID &&
(issuingCurrency.endBlock == 0 ||
((PBAAS_TESTMODE && !ConnectedChains.IncludePostLaunchFees(height) && issuingCurrency.endBlock <= height) ||
height <= issuingCurrency.endBlock)))
((testModePreUpdate && issuingCurrency.endBlock <= height) ||
(!testModePreUpdate && height <= issuingCurrency.endBlock))))
{
// if this is a purchase from centralized/DAO-based currency, ensure we have a valid output
// of the correct amount to the issuer ID before any of the referrals
Expand Down Expand Up @@ -1981,10 +1982,11 @@ bool PrecheckIdentityReservation(const CTransaction &tx, int32_t outNum, CValida
{
if (isPBaaS)
{
bool testModePreUpdate = PBAAS_TESTMODE && !ConnectedChains.IncludePostLaunchFees(height);
if (issuingCurrency.proofProtocol == issuingCurrency.PROOF_CHAINID &&
(issuingCurrency.endBlock == 0 ||
((PBAAS_TESTMODE && !ConnectedChains.IncludePostLaunchFees(height) && issuingCurrency.endBlock <= height) ||
height <= issuingCurrency.endBlock)))
((testModePreUpdate && issuingCurrency.endBlock <= height) ||
(!testModePreUpdate && height <= issuingCurrency.endBlock))))
{
// if this is a purchase from centralized/DAO-based currency, ensure we have a valid output
// of the correct amount to the issuer ID before any of the referrals
Expand Down

0 comments on commit e8371ac

Please sign in to comment.