Added a safety switch to cold storage tracking
This commit is contained in:
@@ -923,6 +923,8 @@ namespace Swarmops.Logic.Financial
|
||||
}
|
||||
}
|
||||
|
||||
DateTime ledgersClosedUntil = new DateTime(organization.Parameters.FiscalBooksClosedUntilYear + 1, 1, 1);
|
||||
|
||||
|
||||
foreach (BlockchainTransaction blockchainTx in transactions)
|
||||
{
|
||||
@@ -931,6 +933,11 @@ namespace Swarmops.Logic.Financial
|
||||
continue; // do not process transactions before forkdate DateTime
|
||||
}
|
||||
|
||||
if (blockchainTx.TransactionDateTimeUtc < ledgersClosedUntil)
|
||||
{
|
||||
continue; // do not attempt to write into closedledger space
|
||||
}
|
||||
|
||||
FinancialTransaction ourTx = null;
|
||||
Dictionary<Int64, Int64> satoshisLookup = new Dictionary<long, long>();
|
||||
// map from ledgercents to satoshis
|
||||
|
||||
Reference in New Issue
Block a user