From d4ae432d5ef50b872c47e8f31f1e729585d680d9 Mon Sep 17 00:00:00 2001 From: Fernando Diaz Toledano Date: Thu, 11 Jul 2024 10:37:43 +0200 Subject: [PATCH 1/2] Fix release --- src/Neo/Ledger/MemoryPool.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Neo/Ledger/MemoryPool.cs b/src/Neo/Ledger/MemoryPool.cs index 2e1adb1a47..7ccdde18b3 100644 --- a/src/Neo/Ledger/MemoryPool.cs +++ b/src/Neo/Ledger/MemoryPool.cs @@ -660,9 +660,8 @@ internal bool ReVerifyTopUnverifiedTransactionsIfNeeded(int maxToVerify, DataCac return _unverifiedTransactions.Count > 0; } -#if DEBUG // This method is only for test purpose - // Do not remove it from the DEBUG build + // Do not use this method outside unit tests internal void Clear() { _txRwLock.EnterReadLock(); @@ -679,6 +678,5 @@ internal void Clear() _txRwLock.ExitReadLock(); } } -#endif } } From d35b466136dc0d658988c8c6b2bc6174a3c3d98e Mon Sep 17 00:00:00 2001 From: Fernando Diaz Toledano Date: Thu, 11 Jul 2024 10:39:45 +0200 Subject: [PATCH 2/2] typo --- src/Neo/Ledger/MemoryPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Neo/Ledger/MemoryPool.cs b/src/Neo/Ledger/MemoryPool.cs index 7ccdde18b3..ff9c6b1069 100644 --- a/src/Neo/Ledger/MemoryPool.cs +++ b/src/Neo/Ledger/MemoryPool.cs @@ -661,7 +661,7 @@ internal bool ReVerifyTopUnverifiedTransactionsIfNeeded(int maxToVerify, DataCac } // This method is only for test purpose - // Do not use this method outside unit tests + // Do not use this method outside of unit tests internal void Clear() { _txRwLock.EnterReadLock();