Modify file names.
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/Rounds/Utils/CoinJoinTransactionArchiverTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/Rounds/Utils/CoinJoinTransactionArchiverTests.cs
@@ -22,12 +22,12 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend
Transaction randomTx = Network.TestNet.Consensus.ConsensusFactory.CreateTransaction();
- DateTimeOffset now = DateTimeOffset.UtcNow;
+ DateTimeOffset now = DateTimeOffset.Parse("2021-09-28T20:45:30.3124Z");
string storagePath = await archiver.StoreJsonAsync(randomTx, now);
TransactionInfo transactionInfo = JsonSerializer.Deserialize<TransactionInfo>(File.ReadAllText(storagePath))!;
Assert.NotNull(transactionInfo);
- Assert.Equal(now.ToUnixTimeMilliseconds(), transactionInfo.Created);
+ Assert.Equal(1632861930312, transactionInfo.Created);
Assert.Equal(randomTx.GetHash().ToString(), transactionInfo.TxHash);
Assert.Equal(randomTx.ToHex(), transactionInfo.RawTransaction);
}

MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Utils/CoinJoinTransactionArchiver.cs
WalletWasabi/WabiSabi/Backend/Rounds/Utils/CoinJoinTransactionArchiver.cs
@@ -41,8 +41,8 @@ namespace WalletWasabi.WabiSabi.Backend.Rounds.Utils
TransactionInfo entry = new(unixTimeStampMs, transaction.GetHash().ToString(), txBytes);
string json = JsonSerializer.Serialize(entry, Options);
- // Add UNIX timestamp to the file name to let the files be sorted by date by default.
- string fileName = $"CoinJoinTransaction.{unixTimeStampMs}.{transaction.GetHash()}.json";
+ // Use a date format in the file name to let the files be sorted by date by default.
+ string fileName = $"CoinJoinTransaction.{currentDate.Value:yyyy.MM.dd-HH-mm-ss}.{transaction.GetHash()}.json";
string filePath = Path.Combine(DirectoryPath, fileName);
await File.WriteAllTextAsync(filePath, json, CancellationToken.None).ConfigureAwait(false);

Modify file names.