Browse Source

Enforce notary chain requirement only when in sync

pull/446/head
miketout 2 years ago
parent
commit
436af8d060
  1. 4
      src/pbaas/notarization.cpp

4
src/pbaas/notarization.cpp

@ -4937,6 +4937,10 @@ bool PreCheckFinalizeNotarization(const CTransaction &tx, int32_t outNum, CValid
if (p.evalCode == EVAL_EARNEDNOTARIZATION &&
!ConnectedChains.notarySystems.count(notarization.currencyID))
{
if (!haveFullChain)
{
return true;
}
return state.Error("Earned notarizations are only valid for notary systems");
}

Loading…
Cancel
Save