From e7505633e59fec02f10a95a9268f3fd9b63a3186 Mon Sep 17 00:00:00 2001 From: ak88 Date: Fri, 5 Jan 2024 11:48:06 +0100 Subject: [PATCH] Squashed commit of the following: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 6c9309c50a8eace6557295fcacd05f213a43349f Author: Ruben Buniatyan Date: Thu Jan 4 23:14:46 2024 +0100 Fix solution builds and add debug build configuration (#6456) commit 4cb9a947d891a15f15423cd42c02135915f0cddb Author: Kamil Chodoła <43241881+kamilchodola@users.noreply.github.com> Date: Thu Jan 4 20:54:08 2024 +0100 Bump version to 1.26.0-unstable (#6443) * Bump version to 1.25.0 * Change already to 1.26.0 --------- Co-authored-by: Kamil Chodoła commit 61245df9eb30451b0396b564998161efd9733882 Author: Ben Adams Date: Thu Jan 4 14:43:09 2024 +0000 Use the empty account cache as cache (#6452) * Use the empty account cache as cache * Rename commit a7cbe276778d730f25cec8bf7a4f9f17c3f95236 Author: Marcin Sobczak <77129288+marcindsobczak@users.noreply.github.com> Date: Thu Jan 4 10:32:12 2024 +0100 Fix `BlobGasUsed` and `ExcessBlobGas` in Cancun genesis (#6446) * try hotfix * try with default 0 * another approach * try * requested simplification commit ab3711c26965ff8881e3af9e5a3b38baf4d2e1cb Author: Ahmad Bitar <33181301+smartprogrammer93@users.noreply.github.com> Date: Thu Jan 4 11:28:31 2024 +0300 fix debug build (#6447) commit 95d966ce8ae673baadeac0ab121a688317c47a59 Author: Kamil Chodoła <43241881+kamilchodola@users.noreply.github.com> Date: Wed Jan 3 17:46:02 2024 +0100 Fix checkout paths (#6451) Co-authored-by: Kamil Chodoła commit 805f942e85c2b33fa99c54c9ce0fa50e4421bd65 Author: Kamil Chodoła <43241881+kamilchodola@users.noreply.github.com> Date: Wed Jan 3 17:10:18 2024 +0100 Fix permission on build files (#6450) Co-authored-by: Kamil Chodoła commit 299d3c64b804c0cedb854776bc1272d8241325bf Author: Kamil Chodoła <43241881+kamilchodola@users.noreply.github.com> Date: Wed Jan 3 16:34:52 2024 +0100 Fix Release Action (#6449) commit 0e6ffe7e66bbdc38212dd9666fc274366390fbb9 Author: Ben Adams Date: Wed Jan 3 08:02:40 2024 +0000 Return to NoGCRegion now runtime bug is fixed (#6381) * Return to NoGCRegion now runtime bug is fixed * Remove other comment commit 292acdd821ba21d3a8ec6f46bbc70c86a4f9300e Author: Ben Adams Date: Wed Jan 3 07:01:54 2024 +0000 Speed up trie node traversal (#6436) commit d3c0443da526f4aa25360ff1935271308fc1929b Author: Ben Adams Date: Wed Jan 3 06:59:20 2024 +0000 Gas price estimation as float (#6445) commit cbc3e67b7db3d425b3d8eb8c9a447040487ac0df Author: Amirul Ashraf Date: Tue Jan 2 22:16:21 2024 +0800 Fix/flush on snap finish (#6444) * Flush on snap finish * Added test commit a3caae8918e56bbe4b0a2d25d1b9d3da525051e3 Author: Ruben Buniatyan Date: Tue Jan 2 12:25:31 2024 +0100 Update packages (#6437) * Update packages * Update packages * Update line endings commit 7bb1a4dfa819456887699051cdd3816b925ca63e Author: Ruben Buniatyan Date: Tue Jan 2 01:06:10 2024 +0100 Update file header (#6442) commit 6f2698c124d1d8e8cc24024f9f61ee001e12b790 Author: Nikita Mescheryakov Date: Mon Jan 1 21:13:10 2024 +0300 Optimism canyon (#6374) * Receipts * Create2Deployer * Fix null value * Refactor 1559 * Canyon eip 1559 * Refactor * MarkAsFailed * Revert TxProcessor * Fix tests * Fix tests * decoder * Fix configs * base-goerli regolith timestamp * Fix elasticity multiplier * Check tx type commit 344c56831902fc3869bb0b242893439064906257 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon Jan 1 11:00:30 2024 +0100 Updating Fast Sync config files (#6441) Co-authored-by: LukaszRozmej commit 087b06ac3592494b1f8f8180f30a6aba7df0886f Author: Ben Adams Date: Fri Dec 29 23:49:48 2023 +0000 Remove db throttling (#6438) commit c4767a44ca6dae1d81d7ea5e0e0241593a450c55 Author: Ahmad Bitar <33181301+smartprogrammer93@users.noreply.github.com> Date: Fri Dec 29 19:18:11 2023 +0300 [Fix] Potential fix to missing tx index sometimes (related to reorgs) (#6422) * fixes * update unit tests to reflect reorg --------- Co-authored-by: Ahmad Mazen Radwan Bitar commit 6a9c76d25cc649df15906570bc9396148bb6d6b6 Author: Marek Moraczyński Date: Fri Dec 29 16:44:14 2023 +0100 Fixed FinalTotalDifficulty based on genesis (#6435) * Fixed FinalTotalDifficulty based on genesis * Fix whitespace * Fix test setup commit f601ede7c71c1ff503d2c741c023a724d5ed69b9 Author: Ben Adams Date: Fri Dec 29 05:11:17 2023 +0000 Make CappedArray readonly (#6434) commit 075365ab7563db9ec2c104c7b568407d0f0ad152 Author: Ben Adams Date: Thu Dec 28 23:08:43 2023 +0000 Reduce lock contention (#6417) * Reduce TxPool lock contention * Reduce lock contention with added spice * Use McsLock for LruCache * Whitespace * Calculate hashes in parallel * Name clash with extension and invalid round trip check * Add tests * Fix * Use monitor signalling to wake up sleeping threads * Additional comments * throttle db read/writes * Less contention on the priority lock * Whitespace * Boost forkchoice commit d8debc6fb93d9dc4c3745bda8afb44e266ab1ff3 Author: Lautaro Emanuel <31224949+emlautarom1@users.noreply.github.com> Date: Thu Dec 28 16:37:17 2023 -0300 Fix node restart on `gnosis-cancun` (#6423) * first draft * add more things * fix metric * fix * add tests * add serializers and tests * simplification * adjust network and rpc tests * post-merge fixes * enable eth68 * adjust tests * fix * Use blob gas instead of count * Shuffle 4844 constants, add GetMaxBlobsPerBlock * Replace `Keccak` with `Hash256` * fix PeerInfoExtensions * fix StateSyncDownloader * fix GetNodeDataTrieNodeRecovery * improve switching capabilities * `WasProcessed = true` for Genesis `BlockInfo` * Add tests --------- Co-authored-by: Marcin Sobczak Co-authored-by: Ruben Buniatyan Co-authored-by: Alexey Osipov commit 2a66d4189fa791c5261f519bf7f59bfa5579f6f6 Author: Amirul Ashraf Date: Thu Dec 28 22:22:28 2023 +0800 Fix metric not working (#6432) commit c81d577cadd8b3407e4a00c84e4401c33329209c Author: Marek Moraczyński Date: Thu Dec 28 14:49:34 2023 +0100 Fix TotalDifficulty for post-merge networks in genesis (#6407) * Fix TotalDifficulty for post-merge devnets * Fix whitespaces * test fixes commit dd613afea546ffc24d28742e641b1d5ad52a00f9 Author: Marcin Sobczak <77129288+marcindsobczak@users.noreply.github.com> Date: Thu Dec 28 14:46:09 2023 +0100 Update configs tests, add FastSyncCatchUpHeightDelta for holesky (#6431) * adjust config tests * add high FastSyncCatchUpHeightDelta for holesky * fix one more test commit fe807bbb65a72f0ff23bcf2afc4eaaff954295be Author: Marcin Sobczak <77129288+marcindsobczak@users.noreply.github.com> Date: Thu Dec 28 11:54:35 2023 +0100 Enable blob txs support in goerli configs (#6430) * enable blob support for goerli * add config test commit 2402d5a911072f76f6554b420057bba94d6dcad9 Author: Lukasz Rozmej Date: Thu Dec 28 11:40:47 2023 +0100 fix memory guard and slice (#6396) * fix memory guard and slice * Trim or pad variable length bytes (as Geth does) * fix ArgumentException * whitespace commit ada8cc91af3266f3ee562848c250616cb3ee1a81 Author: Amirul Ashraf Date: Thu Dec 28 17:39:11 2023 +0800 Reimplement KestrelMetricServer (#6429) commit be008123ceddc2acf3fff5ead410a4504cb376c6 Author: Amirul Ashraf Date: Thu Dec 28 17:13:06 2023 +0800 Feature/exit on blocknumber (#6428) * Exit on block number * Some minor log commit 2ad33ccaf1a47824fa1d413f193c7338e8a4011a Author: Ahmad Bitar <33181301+smartprogrammer93@users.noreply.github.com> Date: Thu Dec 28 11:45:40 2023 +0300 [Cancun]{Spec} Goerli config and fix for `ChainSpecBasedSpecProvider` (#6409) * init * format * format * Empty-Commit * make tests granular * Remove timestamp consecutive block transition. Keep first timestamp transition past block. * change approach to test fix * fixes * fix future fork info * Fully separate block forks from timtestamp ones (#6419) --------- Co-authored-by: lukasz.rozmej Co-authored-by: MarekM25 Co-authored-by: Alexey commit 0ad72e9fc89937d8ce7cc4a318e4fd1136c03d1e Author: Ben Adams Date: Wed Dec 27 16:39:14 2023 +0000 Don't use exceptions for flow control during sync (#6425) * Don't use exceptions for flow control during sync * Fix header caching * Fix time reporting * Better progress time commit 7e6c34064f19f54d23f9e2f71886320845aee013 Author: Ben Adams Date: Wed Dec 27 09:39:01 2023 +0000 Update Chain size test (#6426) commit 8fa3263c51233e0e4da2256d6498c9dd9955c0f8 Author: Marcin Sobczak <77129288+marcindsobczak@users.noreply.github.com> Date: Wed Dec 27 10:26:37 2023 +0100 Blob txs reorgs (#6254) * add column for processed txs * add feature of returning keys only * adjust BlobTxStorage * cosmetics * add logic for storing processed blob txs and removing finalized * rename * fix * add tests * cosmetics * add sender recovery for reorganized blob txs * requested change * one more place * postmerge fix * fix saving of processed blob txs * optimize saving processed txs * readd blob support config * fix whitespace * fix test * fix tests parallelism? * add more logs * fix blob txs metric * refactor BlobTxStorage * optimize collecting blob txs from processed block * Create IBlobTxStorage and separate blob specific methods from ITxStorage * use batch when cleaning processed txs db * fix * fix file encoding * fix init when blob support or reorgs disabled * fix signing test txs * add regression test * fix tests * one more regression test * post-merge fix * add test for readding reorganized blob txs * improve test * one more check in test * Remove unnecessary list Sleep -> Task in test * cosmetic * compress 3 bool flags to 1 enum * fix file encoding * fix whitespaces --------- Co-authored-by: lukasz.rozmej commit f3ed968e3428aedc84d617b53287e7036487b002 Author: Lautaro Emanuel <31224949+emlautarom1@users.noreply.github.com> Date: Tue Dec 26 11:09:44 2023 -0300 Upgrade Kute (#6366) * Introduce filter limits - Filters can include optional limits * Report progress at the start - Fixes progress not updating * Initial response validator - Verifies that the response does not contain an 'error' field * Include more examples of filters and limits * Perform validation outside time measurement * Add 'TracerValidator' - Responses can be stored into a new file * Document 'TracerValidator' - Disabled by default - Response tracing is ignored in dry mode * Make config help text more consistent * Capitalize * Change name of tracing to verbose * Update README.md * Use `-r|--responses` to store responses * Invert condition - Append if file exists - Create one if not * Make 'IJsonRpcValidator' take also request into consideration * Validate 'NewPayload' responses using custom strategy - 'TracerValidator' is no longer a decorator * Separate 'ResponseTracer' from Validator - Tracer should be independent - Add File and Null tracers - Simplify services setup * Validate and trace batch responses * Add TickSucceeded * Add temp sampleSize * Tick succeeded on batches too * Use 'CompleteReservoir' for sampling - Removes need for hack/magic numbers * Remove whitespace * Remove `IAuth` from `NullJsonRpcSubmitter` --------- Co-authored-by: Kamil Chodoła <43241881+kamilchodola@users.noreply.github.com> Co-authored-by: Kamil Chodoła commit 1df2cf4d140641e67c700d417fef152ea3e5ece9 Author: Ben Adams Date: Tue Dec 26 12:01:45 2023 +0000 Remove duplicate calls to FindHeader in eth_getLogs (#6421) * Remove duplicate calls to FindHeader in eth_getLogs * Check cancellation token * Fix tests due to params change commit 3fa5ba5d2bbe7f2ec6894207455409dfe1ad8df0 Author: Ben Adams Date: Tue Dec 26 08:50:53 2023 +0000 Remove Duplicate call to TryGetPendingTransaction in RPC (#6420) commit 02221a9096530d45ab2d7b74c21bb768574ff8cc Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon Dec 25 12:58:27 2023 +0100 Updating Fast Sync config files (#6416) Co-authored-by: LukaszRozmej commit 716a79159b3e934eec228ef42563365f260de140 Author: Amirul Ashraf Date: Mon Dec 25 07:40:00 2023 +0800 Fix double write during full pruning (#6415) * Fix double write during full pruning * Missed a null condition commit 1c0ce55086aa170ac98d22eea594be87864f4a52 Author: Ben Adams Date: Sun Dec 24 15:26:38 2023 +0000 RateLimiter: Remove unneeded async statemachine (#6418) * RateLimiter: Remove unneeded async statemachine * Fix test commit 3bd89b3656d06393c330512adcf1aa5511df7c66 Author: Ruben Buniatyan Date: Sat Dec 23 01:37:38 2023 +0100 Fix POSDAO tests workflow (#6414) commit aa6800ca414eab5966fa9b8e2df9c610ef5206bd Author: Ben Adams Date: Fri Dec 22 10:53:34 2023 +0000 Fix unbounded memory growth in DoubleArrayConverter (#6412) * Fix unbounded memory growth in DoubleArrayConverter * Whitespace commit bb1840fa6bf129b77ff89f08e4e45d7fa1ab455b Author: Ben Adams Date: Fri Dec 22 02:58:40 2023 +0000 Throw less expensive exceptions from Evm (#6406) * Reduce Evm eceptions * Less exceptions * Less exceptions * Whitespace * Remove signed benchmark * Moar commit b86383f1768f9b2ef9059f547a4880cc704498c1 Author: Ben Adams Date: Fri Dec 22 00:20:27 2023 +0000 Increase regex cache size (#6408) commit 90416e528c5aaebc5bdb454a209799c7265b1a65 Author: Ruben Buniatyan Date: Thu Dec 21 23:57:12 2023 +0100 Remove Nethermind launcher build (#6404) commit 536e2f78de881104ed2bf0d404d2ecc9d8772d5b Author: Ruben Buniatyan Date: Thu Dec 21 21:08:48 2023 +0100 Revise and improve diagnostics Dockerfile (#6398) commit 76c73a13f852a43937c1d589bb83bb22e778319b Author: Ayman Bouchareb Date: Thu Dec 21 14:09:54 2023 +0100 Add new RPC methods debug_getRawBlock, debug_getRawReceipts, debug_getRawHeader, debug_getRawTransaction (#6368) * Fix peer header when no peers to show (#4411) * Fix peer header when no peers to show * Only order once * Better fix maybe * Applying lukasz suggestion * Revise product version (#4322) * Replace submodules with packages (#4374) * Add optional argument Address in parity_pendingTransactions (#4413) * Add enough projects to build benchmark runner (#4431) * Fix peer header when no peers to show (#4411) * Fix peer header when no peers to show * Only order once * Better fix maybe * Applying lukasz suggestion * Revise product version (#4322) * Replace submodules with packages (#4374) * Add optional argument Address in parity_pendingTransactions (#4413) * Add enough projects to build benchmark runner (#4431) * Fix develop branch * Exit early on error (#4220) Exit early on error in steps except for step with "mustInitialize" set to false. * Fix peer header when no peers to show (#4411) * Fix peer header when no peers to show * Only order once * Better fix maybe * Applying lukasz suggestion * Revise product version (#4322) * Replace submodules with packages (#4374) * Add optional argument Address in parity_pendingTransactions (#4413) * Add enough projects to build benchmark runner (#4431) * Fix develop branch * Exit early on error (#4220) Exit early on error in steps except for step with "mustInitialize" set to false. * Changes to BlockForRPC class : Ignored Author field in JsonDeserialization * Changes to TransactionForRPC class : Ignored 'data' field in JsonDeserialization if null or empty, and Assigned ChainId from Signature.ChainId if tx.ChainId is null * Changes to [DebugBridge, IDebugBridge] files : Added utility functions to get Transactions and Receipts per block * Changes to [DebugRpcModule, IDebugRpcModule] files : Added missing debug Functions [getRawBlock, getRawBlockHeader, getRawReceipts, getRawTransaction] * Changes to TransactionForRPC class : Ignored 'data' field in JsonDeserialization if null or empty, and Assigned ChainId from Signature.ChainId if tx.ChainId is null * Changes to ProofConverter class : stripped leading zeros from value field, and stripped leading zeros while keeping lenght even in key * Changes to [DebugRpcModule, IDebugRpcModule] files : new Debug functions only accept Keccak inputs * Changes to [DebugRpcModule, IDebugRpcModule] files : fix getRawReceipts * Changes to [Rlp, ReceiptStorageDecoder] files : added parameterless constructor to RSD, and added a selector method to decorder in RLP * Changes to [ReceiptMessageDecoder] files : added IRlpObjectDecoder interface to RMD * Changes to [Rlp] files : changed Decoder selection strategy to depend on custom attribute * Changes to [DebugRpcModule] files : added custom RlpBehaviour to Rlp.Encode in debug_getRawReceipts * Changes to [EthRpcModule.cs] files : deactivated optimization for eth_createaAccessList * fix merge issues * fix failing tests * fixed ws removed added file * fix merge issue * revert script changes * remove non related changes from PR --------- Co-authored-by: smartprogrammer93 <33181301+smartprogrammer93@users.noreply.github.com> Co-authored-by: Ruben Buniatyan Co-authored-by: Alexey Co-authored-by: DCeleda Co-authored-by: Amirul Ashraf --- src/Nethermind/Nethermind.Core/Caching/LruCache.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Core/Caching/LruCache.cs b/src/Nethermind/Nethermind.Core/Caching/LruCache.cs index c2aca5bea05..e202c3cb5a4 100644 --- a/src/Nethermind/Nethermind.Core/Caching/LruCache.cs +++ b/src/Nethermind/Nethermind.Core/Caching/LruCache.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; using Nethermind.Core.Extensions; using Nethermind.Core.Threading;