diff --git a/Logic/Financial/BitcoinUtility.cs b/Logic/Financial/BitcoinUtility.cs index 7abca28e..fa6c5bf8 100644 --- a/Logic/Financial/BitcoinUtility.cs +++ b/Logic/Financial/BitcoinUtility.cs @@ -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 satoshisLookup = new Dictionary(); // map from ledgercents to satoshis