]> Git Repo - VerusCoin.git/commitdiff
Currency launch fixes
authormiketout <[email protected]>
Sun, 7 Feb 2021 21:59:04 +0000 (13:59 -0800)
committermiketout <[email protected]>
Sun, 7 Feb 2021 21:59:04 +0000 (13:59 -0800)
src/pbaas/pbaas.cpp

index 7bb45b40902026ec7da6957aa4ae89c9df05889e..065398b51a18c9dcb40dbdb80ce59ec1500397dc 100644 (file)
@@ -2592,7 +2592,10 @@ bool CConnectedChains::CreateNextExport(const CCurrencyDefinition &_curDef,
     // if we made an export before getting to the end, it doesn't clear launch
     // if we either early outed, due to height or landed right on the correct height, determine launch state
     // a clear launch export may have no inputs yet still be created with a clear launch notarization
-    isClearLaunchExport = (addHeight == _curDef.startBlock - 1);
+    if (isClearLaunchExport)
+    {
+        addHeight = _curDef.startBlock - 1;
+    }
 
     // all we expect to add are in txInputs now
     inputsConsumed = txInputs.size();
@@ -3192,6 +3195,8 @@ void CConnectedChains::AggregateChainTransfers(const CTxDestination &feeOutput,
 
                     while (txInputs.size() || launchCurrencies.count(lastChain))
                     {
+                        launchCurrencies.erase(lastChain);
+
                         // even if we have no txInputs, currencies that need to will launch
                         if (!CConnectedChains::CreateNextExport(lastChainDef,
                                                                 txInputs,
This page took 0.0343869999999999 seconds and 4 git commands to generate.