Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
e17b3ea
Pass PruningConfig to triestore (#8598)
asdacap May 10, 2025
f2abd37
Fix/parallel block downloader (#8587)
asdacap May 12, 2025
f77b91a
Update OP Superchain chains (#8611)
core-repository-dispatch-app[bot] May 12, 2025
b3092cb
Fix trie tests (#8614)
asdacap May 12, 2025
f50bd54
Auto-update fast sync settings (#8612)
core-repository-dispatch-app[bot] May 12, 2025
3283d0d
Refactor/Explicit message serializer registration (#8604)
asdacap May 12, 2025
65189ed
Fix editorconfig not applied to C# file. (#8620)
asdacap May 13, 2025
473dcb3
Update libp2p package (#8534)
Marchhill May 13, 2025
eda8048
HealthChecks: Track CL calls from fcu & np methods (#8603)
deffrian May 13, 2025
75808fa
Cleanup/remove upgreadable peer allocation (#8572)
asdacap May 13, 2025
a598851
Safely cast Optimism subtypes (2) (#8619)
emlautarom1 May 13, 2025
2c6acb0
Fix long running test fuzzing OOM (#8615)
LukaszRozmej May 14, 2025
e1a56ed
Feature/clef tx (#8609)
ak88 May 14, 2025
aedd2e2
Optimism CL: Enable P2P (#8556)
deffrian May 14, 2025
d6bbb8a
OP CL L1 Validation on startup (#8610)
emlautarom1 May 14, 2025
1d553ad
Initialize kzg when used in runner too (#8623)
flcl42 May 14, 2025
6f9aed0
Add Nethermind.Test.Runner Docker image (#8608)
rubo May 14, 2025
fc2eabb
Fix hive (#8590)
flcl42 May 14, 2025
97e3f52
Refactor/Move DiscoveryApp initialization to DI (#8624)
asdacap May 15, 2025
32cc7bd
Add state availability checks before debug module tracing (#8621)
Hyodar May 15, 2025
be67014
Update Nethermind.Numerics.Int256 package (#8628)
rubo May 15, 2025
7c9f010
Fix infinite loop in tx pool (#8632)
asdacap May 16, 2025
6286b8c
Fix filter timeouts, set to 15m (#8633)
LukaszRozmej May 16, 2025
95c6efb
Update System.CommandLine package (#8639)
rubo May 17, 2025
d186adf
Bump up the version to 1.33.0-unstable (#8533)
core-repository-dispatch-app[bot] May 17, 2025
2334592
Auto-update fast sync settings (#8645)
core-repository-dispatch-app[bot] May 18, 2025
0401d2d
Remove SkipLocalsInit to avoid garbage in first bytes of hash (#8634)
wurdum May 18, 2025
1a07baf
Update OP Superchain chains (#8644)
core-repository-dispatch-app[bot] May 18, 2025
737763d
add surge hoodi chainspec (#8643)
smartprogrammer93 May 19, 2025
5d16b7e
Fix for `Block.AccountChanges` not being disposed in some cases (#8647)
alexb5dh May 19, 2025
9e2c5ea
Fix Holesky Sync (#8651)
kamilchodola May 19, 2025
d02b7c5
taiko alethia pacaya fork activation (#8642)
smartprogrammer93 May 19, 2025
77b2dfb
Revert wrong code on missing receipt (#8653)
LukaszRozmej May 19, 2025
1adebe6
Set default `LegacyTransactionForRpc` gas price to zero (#8630)
Hyodar May 19, 2025
5522f4c
Fix #8648 - eth_getTransactionByBlockNumberAndIndex out of bounds (#8…
LukaszRozmej May 19, 2025
22f90f1
Update RocksDB package (#8640)
rubo May 19, 2025
17609d6
Kute: order by filename (#8657)
benaadams May 20, 2025
056bcd3
PatriciaTree ignoreMissingDelete is not used (#8646)
MarekM25 May 20, 2025
1c5131a
Implement Eip7823 (#8649)
benaadams May 20, 2025
cd6a086
Sync OP chains after Isthmus (#8638)
emlautarom1 May 21, 2025
bfc663a
Use RocksDB PinnableSlice when available (#8661)
benaadams May 21, 2025
0f76070
Optimize RlpStream.Encode(ulong) (#8660)
benaadams May 21, 2025
67d2a5b
Slight discovery refactor. (#8664)
asdacap May 21, 2025
5c87953
Slice span rather than array (#8665)
benaadams May 21, 2025
1c8707c
Use static SHA256.HashData (#8673)
benaadams May 22, 2025
d7b3d45
Use span when slicing arrays (#8672)
benaadams May 22, 2025
5946674
Mild performance tweaks (#8674)
benaadams May 22, 2025
2a17781
Remove TD based peer allocation strategy (#8670)
asdacap May 22, 2025
257b16f
Improve WebSocketMessageStream (#8676)
benaadams May 22, 2025
1b86db9
Optimism CL: Split finalized/safe blocks (#8658)
deffrian May 22, 2025
844dc48
Fix ClockCache.Set (#8679)
benaadams May 23, 2025
016a6f8
Implement EIP-7825: Transaction Gas Limit Cap (#8663)
Marchhill May 23, 2025
7cc1400
Implement OP CL `optimism` RPC namespace (#8667)
emlautarom1 May 23, 2025
b580ce6
Hide OP-CL specific options (#8684)
emlautarom1 May 23, 2025
0218daf
Reduce `Forward header starting block number did not changed.` except…
asdacap May 23, 2025
4da056b
Refactor projects configuration (#8659)
rubo May 24, 2025
fc61eaa
Update packages (#8641)
rubo May 24, 2025
9abf4d2
Refactor/Reduce `AuraNethermindApi` usage. (#8686)
asdacap May 24, 2025
4e535f2
Optimize 12 x 20byte & 32byte OpCodes (#8687)
benaadams May 25, 2025
ea34c76
Auto-update fast sync settings (#8689)
core-repository-dispatch-app[bot] May 25, 2025
036a148
Update OP Superchain chains (#8690)
core-repository-dispatch-app[bot] May 25, 2025
7b0fdad
Perform stack writes as single 32 vector (#8691)
benaadams May 25, 2025
fe0fdd8
Reintroduce Jit time branch elimination (#8692)
benaadams May 25, 2025
e4a5f6a
Fixes one discv5 test (#8635)
ak88 May 26, 2025
c920f03
Migrate to Microsoft.Testing.Platform (#8190)
rubo May 26, 2025
99e074e
Fix/aura hive startup (#8694)
asdacap May 26, 2025
0920134
EIP-7594: PeerDAS (#8417)
marcindsobczak May 26, 2025
ca00810
Refactor build scripts (#8601)
rubo May 26, 2025
2fa3026
Refactor/make all blockprocessor arg required (#8688)
asdacap May 27, 2025
d21ed0a
Warm up evm instructions (#8699)
benaadams May 27, 2025
f1ff380
Add BPOs (#8631)
flcl42 May 27, 2025
a4159eb
Update TxParser (#8698)
LukaszRozmej May 27, 2025
f26f2c6
eip-7883 implementation (#8489)
yerke26 May 27, 2025
ab61367
Add logo on startup (#8701)
benaadams May 27, 2025
a3e11dc
Refactor/deduplicate ReadOnlyTxProcessingEnvFactory (#8697)
asdacap May 28, 2025
01819e1
Restore and fix tests (#8696)
rubo May 28, 2025
eed7493
Return `null` instead of errors in RPC `get` methods (#8702)
emlautarom1 May 28, 2025
6f10cd2
Cleanup/move some aura components to di (#8704)
asdacap May 28, 2025
8403d2d
Optimize: Number, GasLimit, Coinbase, PrevRandao opcodes (#8700)
LukaszRozmej May 28, 2025
f8d1726
EIP-7918: Blob base fee bounded by execution cost (#8656)
Marchhill May 28, 2025
28036c0
TxParser: Add signature validation, keep errors in 1 line (#8706)
LukaszRozmej May 28, 2025
015d0dc
Refactor tests configuration and work around Rider issue (#8703)
rubo May 28, 2025
9c25753
Some fixes for clef integration in RPC (#8626)
ak88 May 28, 2025
52e9630
Fix Nethermind.Test.Runner Dockerfile (#8708)
rubo May 28, 2025
0c4af2b
GetStorageRange fix for no storage slots found (#8538)
damian-orzechowski May 29, 2025
bef28f3
Fix Assertoor workflow (#8711)
rubo May 29, 2025
a653eaf
Optimize debugging container (#8710)
rubo May 29, 2025
5819096
Update known_chain_sizes test (#8714)
benaadams May 29, 2025
23ed82d
Use less allocating .ToValueHash than .ToBigEndian (#8713)
benaadams May 29, 2025
e98b545
TxParser add chain id validation (#8709)
LukaszRozmej May 29, 2025
b96fca5
Fix/disconnect without sending reason (#8712)
asdacap May 29, 2025
356b8e9
Optimize JournalSet (#8716)
benaadams May 29, 2025
08a5419
Fix exception on exit for incomplete nethermind startup. (#8717)
asdacap May 30, 2025
741eace
Remove Nethermind.Tools.GasHistorian (#8720)
rubo May 30, 2025
f4e0795
Remove obsolete scripts (#8721)
rubo Jun 1, 2025
1a88db2
Feature/snapsync storage log (#8675)
asdacap Jun 2, 2025
df270c6
Refactor/Consolidate ISealEngine. (#8705)
asdacap Jun 3, 2025
f4bd7c9
Surface acceptTx on sync via config (#8728)
benaadams Jun 3, 2025
4456708
Improve JumpDest analysis (#8725)
benaadams Jun 3, 2025
7a96dca
Cleanur/remove create heath hint service (#8727)
asdacap Jun 4, 2025
18f4b0e
Fix tx blob deserialization after PeerDAS (#8729)
alexb5dh Jun 4, 2025
24b12b6
Move unit tests to use IWorldState instead of ITrieStore (#8724)
asdacap Jun 4, 2025
2bef5c3
Support for eth/69 (#7052)
alexb5dh Jun 4, 2025
f848cae
Fix runner test (#8731)
asdacap Jun 4, 2025
eceb669
Increase Ethereum mainet gaslimit default to 60M (#8671)
benaadams Jun 4, 2025
e3651bd
Refactor/use block producer env factory (#8730)
asdacap Jun 4, 2025
c8e774d
Feature/Step dependents (#8734)
asdacap Jun 5, 2025
b3145d7
ExecutionEnvironment pass Uint256 as in (#8736)
LukaszRozmej Jun 5, 2025
39b00bf
Refactor/remove additional tx source param (#8735)
asdacap Jun 5, 2025
b7db4a1
Adjust block size to CL pessimistic block size (#8737)
MarekM25 Jun 5, 2025
257d5c0
Fix secp256r1 precompile test cases (#8738)
alexb5dh Jun 6, 2025
dd815a3
Improve performance of CALL opcodes (#8732)
benaadams Jun 6, 2025
79c0da0
Add min memory rent size (#8740)
benaadams Jun 6, 2025
626a9e7
Make `StateProvider` hot code in the common path (#8744)
benaadams Jun 7, 2025
81c91ca
chore(evm): fix 7918 blob gas calculator (#8743)
spencer-tb Jun 8, 2025
370aeb3
Auto-update fast sync settings (#8745)
core-repository-dispatch-app[bot] Jun 9, 2025
9bf7b7f
Add boundary tests for EIP-7918 (#8748)
Marchhill Jun 10, 2025
79137d4
Update EIP-7883: Assume minimal base/mod length of 32 (#8749)
MarekM25 Jun 10, 2025
f80f3fc
Fix/CL health checks (#8755)
deffrian Jun 10, 2025
7d5972b
Activate devnet-1 in Osaka (#8733)
flcl42 Jun 11, 2025
c1dcc73
SpanSource for TrieNode rlp (#8719)
Scooletz Jun 11, 2025
a37bd1d
Add max blobs per tx limit taken from blob schedule (#8754)
flcl42 Jun 12, 2025
c06fd5f
EIP-7939 CLZ (#8759)
LukaszRozmej Jun 12, 2025
eb4a682
Dispose EvmState on warmup (#8771)
benaadams Jun 12, 2025
c41abe1
Include debug symbols in distribution packages (#8773)
benaadams Jun 12, 2025
2809874
optimize some precompiles (#8770)
LukaszRozmej Jun 12, 2025
5a5e6f8
Remove txPool contention from block validation (#8779)
benaadams Jun 13, 2025
5003501
Recover signer direct from keccak without intermediary array (#8781)
benaadams Jun 13, 2025
3590bad
Merge branch 'feature/arbitrum-setup' into feature/arbitrum/sync-with…
wurdum Jun 13, 2025
55d84c8
Fix merge issues
wurdum Jun 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<PackageVersion Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.2" />
<PackageVersion Include="Nethermind.Crypto.Bls" Version="1.0.5" />
<PackageVersion Include="Nethermind.Crypto.Pairings" Version="1.1.1" />
<PackageVersion Include="Nethermind.Crypto.SecP256k1" Version="1.4.0" />
<PackageVersion Include="Nethermind.Crypto.SecP256k1" Version="1.4.1" />
<PackageVersion Include="Nethermind.Crypto.SecP256r1" Version="1.0.0-preview.6" />
<PackageVersion Include="Nethermind.DotNetty.Buffers" Version="1.0.1" />
<PackageVersion Include="Nethermind.DotNetty.Handlers" Version="1.0.1" />
Expand Down Expand Up @@ -88,4 +88,4 @@
<PackageVersion Include="Websocket.Client" Version="5.2.0" />
<PackageVersion Include="ZstdSharp.Port" Version="0.8.5" />
</ItemGroup>
</Project>
</Project>
2 changes: 1 addition & 1 deletion scripts/build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for rid in "linux-x64" "linux-arm64" "win-x64" "osx-x64" "osx-arm64"; do
dotnet publish -c $build_config -r $rid -o $output_path/$rid --sc true \
-p:BuildTimestamp=$2 \
-p:Commit=$1 \
-p:DebugType=none \
-p:DebugType=embedded \
-p:IncludeAllContentForSelfExtract=true \
-p:PublishSingleFile=true

Expand Down
18 changes: 9 additions & 9 deletions src/Nethermind/Chains/AuRaTest.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"gasLimitBoundDivisor": "0x400",
"maximumExtraDataSize": "0x20",
"minGasLimit": "0x1388",
"networkID": "0x4D00",
"networkID": "0x4d00",
"eip140Transition": "0x0",
"eip145Transition": "0x0",
"eip150Transition": "0x0",
Expand All @@ -55,12 +55,12 @@
"eip1052Transition": "0x0",
"eip1283Transition": "0x0",
"eip1283DisableTransition": "0x0",
"eip152Transition": "0xFFFFFFFF",
"eip1108Transition": "0xFFFFFFFF",
"eip1344Transition": "0xFFFFFFFF",
"eip1884Transition": "0xFFFFFFFF",
"eip2028Transition": "0xFFFFFFFF",
"eip2200Transition": "0xFFFFFFFF"
"eip152Transition": "0xffffffff",
"eip1108Transition": "0xffffffff",
"eip1344Transition": "0xffffffff",
"eip1884Transition": "0xffffffff",
"eip2028Transition": "0xffffffff",
"eip2200Transition": "0xffffffff"
},
"genesis": {
"seal": {
Expand All @@ -70,7 +70,7 @@
}
},
"difficulty": "0x20000",
"gasLimit": "0x863BE0"
"gasLimit": "0x863be0"
},
"nodes": [
"enode://c72927e9c767b7d5786a4cc1452a98d50a1e9a42fee8b92fda7bbf752b71b168f064275cec15fb09b11fec12dba08ed25571f388835ab8ed7747422d20b56962@127.0.0.1:30303",
Expand Down Expand Up @@ -159,4 +159,4 @@
"constructor": "6080604052348015600f57600080fd5b5060818061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c80637877a79714602d575b600080fd5b60336045565b60408051918252519081900360200190f35b629896809056fea265627a7a72315820caef906268140a8c2aca9cb6013ab964af8e26c3954fb6a6440ba582737a307764736f6c63430005110032"
}
}
}
}
16 changes: 8 additions & 8 deletions src/Nethermind/Chains/chiado.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@
"transactionPermissionContract": "0x4000000000000000000000000000000000000001",
"transactionPermissionContractTransition": "0x0",
"terminalTotalDifficulty": "231707791542740786049188744689299064356246512",
"eip2537TransitionTimestamp": "0x67C96E4C",
"eip2935TransitionTimestamp": "0x67C96E4C",
"eip6110TransitionTimestamp": "0x67C96E4C",
"eip7002TransitionTimestamp": "0x67C96E4C",
"eip7251TransitionTimestamp": "0x67C96E4C",
"eip7623TransitionTimestamp": "0x67C96E4C",
"eip7702TransitionTimestamp": "0x67C96E4C",
"eip4844FeeCollectorTransitionTimestamp": "0x67C96E4C",
"eip2537TransitionTimestamp": "0x67c96e4c",
"eip2935TransitionTimestamp": "0x67c96e4c",
"eip6110TransitionTimestamp": "0x67c96e4c",
"eip7002TransitionTimestamp": "0x67c96e4c",
"eip7251TransitionTimestamp": "0x67c96e4c",
"eip7623TransitionTimestamp": "0x67c96e4c",
"eip7702TransitionTimestamp": "0x67c96e4c",
"eip4844FeeCollectorTransitionTimestamp": "0x67c96e4c",
"depositContractAddress": "0xb97036A26259B7147018913bD58a774cf91acf25",
"blobSchedule": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/Nethermind/Chains/holesky.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"blobSchedule": [
{
"name": "prague",
"timestamp": "0x67BCEAC0",
"timestamp": "0x67bceac0",
"target": 6,
"max": 9,
"baseFeeUpdateFraction": "0x4c6964"
Expand Down
36 changes: 18 additions & 18 deletions src/Nethermind/Chains/sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"accountStartNonce": "0x0",
"maximumExtraDataSize": "0x20",
"minGasLimit": "0x1388",
"networkID": "0xAA36A7",
"networkId": "0xaa36a7",
"forkBlock": "0x0",
"maxCodeSize": "0x6000",
"maxCodeSizeTransition": "0x0",
Expand Down Expand Up @@ -58,27 +58,27 @@
"terminalTotalDifficulty": "3C6568F12E8000",
"mergeForkIdTransition": "0x1A7ACB",
"beaconChainGenesisTimestamp": "0x62b07d60",
"eip4895TransitionTimestamp": "0x63FD7D60",
"eip3855TransitionTimestamp": "0x63FD7D60",
"eip3651TransitionTimestamp": "0x63FD7D60",
"eip3860TransitionTimestamp": "0x63FD7D60",
"eip1153TransitionTimestamp": "0x65B97D60",
"eip4788TransitionTimestamp": "0x65B97D60",
"eip4844TransitionTimestamp": "0x65B97D60",
"eip5656TransitionTimestamp": "0x65B97D60",
"eip6780TransitionTimestamp": "0x65B97D60",
"eip2537TransitionTimestamp": "0x67C7FD60",
"eip2935TransitionTimestamp": "0x67C7FD60",
"eip6110TransitionTimestamp": "0x67C7FD60",
"eip7002TransitionTimestamp": "0x67C7FD60",
"eip7251TransitionTimestamp": "0x67C7FD60",
"eip7623TransitionTimestamp": "0x67C7FD60",
"eip7702TransitionTimestamp": "0x67C7FD60",
"eip4895TransitionTimestamp": "0x63fd7d60",
"eip3855TransitionTimestamp": "0x63fd7d60",
"eip3651TransitionTimestamp": "0x63fd7d60",
"eip3860TransitionTimestamp": "0x63fd7d60",
"eip1153TransitionTimestamp": "0x65b97d60",
"eip4788TransitionTimestamp": "0x65b97d60",
"eip4844TransitionTimestamp": "0x65b97d60",
"eip5656TransitionTimestamp": "0x65b97d60",
"eip6780TransitionTimestamp": "0x65b97d60",
"eip2537TransitionTimestamp": "0x67c7fd60",
"eip2935TransitionTimestamp": "0x67c7fd60",
"eip6110TransitionTimestamp": "0x67c7fd60",
"eip7002TransitionTimestamp": "0x67c7fd60",
"eip7251TransitionTimestamp": "0x67c7fd60",
"eip7623TransitionTimestamp": "0x67c7fd60",
"eip7702TransitionTimestamp": "0x67c7fd60",
"depositContractAddress": "0x7f02c3e3c98b133055b8b348b2ac625669ed295d",
"blobSchedule": [
{
"name": "prague",
"timestamp": "0x67C7FD60",
"timestamp": "0x67c7fd60",
"target": 6,
"max": 9,
"baseFeeUpdateFraction": "0x4c6964"
Expand Down
1 change: 1 addition & 0 deletions src/Nethermind/Nethermind.Benchmark.Runner/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using System.Linq;
using BenchmarkDotNet.Toolchains.InProcess.NoEmit;
using BenchmarkDotNet.Columns;
using Nethermind.Benchmarks.State;
using Nethermind.Precompiles.Benchmark;

namespace Nethermind.Benchmark.Runner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class RecoverSignaturesBenchmark
public void GlobalSetup()
{
_ethereumEcdsa = new(_specProvider.ChainId);
_sut = new(_ethereumEcdsa, NullTxPool.Instance, _specProvider, NullLogManager.Instance);
_sut = new(_ethereumEcdsa, _specProvider, NullLogManager.Instance);

var rnd = new Random();

Expand Down
39 changes: 39 additions & 0 deletions src/Nethermind/Nethermind.Benchmark/Core/SpanSourceBenchmark.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// SPDX-FileCopyrightText: 2025 Demerzel Solutions Limited
// SPDX-License-Identifier: LGPL-3.0-only

using System;
using BenchmarkDotNet.Attributes;
using Nethermind.Core.Buffers;

namespace Nethermind.Benchmarks.Core;

[DisassemblyDiagnoser(maxDepth: 2)]
public class SpanSourceBenchmark
{
private static readonly SpanSource Array = new([1, 2, 3]);
private static readonly SpanSource CappedArray = new(new CappedArray<byte>([1, 2, 3]));

[Benchmark]
public int MemorySize_ByteArray()
{
return Array.MemorySize;
}

[Benchmark]
public int MemorySize_CappedArray()
{
return CappedArray.MemorySize;
}

[Benchmark]
public Span<byte> Span_ByteArray()
{
return Array.Span;
}

[Benchmark]
public Span<byte> Span_CappedArray()
{
return CappedArray.Span;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,21 @@ public RlpTrieNodeEncodingBenchmark()
}

[Benchmark]
public CappedArray<byte> Encode_Extension()
public SpanSource Encode_Extension()
{
TreePath path = default;
return _extension.RlpEncode(_store, ref path);
}

[Benchmark]
public CappedArray<byte> Encode_Branch()
public SpanSource Encode_Branch()
{
TreePath path = default;
return _branch.RlpEncode(_store, ref path);
}

[Benchmark]
public CappedArray<byte> Encode_Leaf()
public SpanSource Encode_Leaf()
{
TreePath path = default;
return _leaf.RlpEncode(_store, ref path);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ public void Can_collect_proof_with_branch()
{
TxReceipt receipt1 = Build.A.Receipt.WithAllFieldsFilled.TestObject;
TxReceipt receipt2 = Build.A.Receipt.WithAllFieldsFilled.TestObject;
using var pool = new TrackingCappedArrayPool();
ReceiptTrie<TxReceipt> trie = new(MainnetSpecProvider.Instance.GetSpec((ForkActivation)1),
[receipt1, receipt2], _decoder, true);
[receipt1, receipt2], _decoder, true, pool);
byte[][] proof = trie.BuildProof(0);
Assert.That(proof.Length, Is.EqualTo(2));

Expand All @@ -60,7 +61,7 @@ private void VerifyProof(byte[][] proof, Hash256 receiptRoot)
{
TrieNode node = new(NodeType.Unknown, proof.Last());
node.ResolveNode(Substitute.For<ITrieNodeResolver>(), TreePath.Empty);
TxReceipt receipt = _decoder.Decode(node.Value.AsRlpStream());
TxReceipt receipt = _decoder.Decode(node.Value.ToArray().AsRlpStream());
Assert.That(receipt.Bloom, Is.Not.Null);

for (int i = proof.Length; i > 0; i--)
Expand Down
10 changes: 7 additions & 3 deletions src/Nethermind/Nethermind.Blockchain.Test/Proofs/TxTrieTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Nethermind.Serialization.Rlp;
using Nethermind.Specs.Forks;
using Nethermind.State.Proofs;
using Nethermind.Trie;
using NUnit.Framework;

namespace Nethermind.Blockchain.Test.Proofs;
Expand Down Expand Up @@ -45,7 +46,8 @@ public void Can_calculate_root()
public void Can_collect_proof_trie_case_1()
{
Block block = Build.A.Block.WithTransactions(Build.A.Transaction.TestObject).TestObject;
TxTrie txTrie = new(block.Transactions, true);
using var pool = new TrackingCappedArrayPool();
TxTrie txTrie = new(block.Transactions, true, pool);
byte[][] proof = txTrie.BuildProof(0);

txTrie.UpdateRootHash();
Expand All @@ -56,7 +58,8 @@ public void Can_collect_proof_trie_case_1()
public void Can_collect_proof_with_trie_case_2()
{
Block block = Build.A.Block.WithTransactions(Build.A.Transaction.TestObject, Build.A.Transaction.TestObject).TestObject;
TxTrie txTrie = new(block.Transactions, true);
using var pool = new TrackingCappedArrayPool();
TxTrie txTrie = new(block.Transactions, true, pool);
byte[][] proof = txTrie.BuildProof(0);
Assert.That(proof.Length, Is.EqualTo(2));

Expand All @@ -68,7 +71,8 @@ public void Can_collect_proof_with_trie_case_2()
public void Can_collect_proof_with_trie_case_3_modified()
{
Block block = Build.A.Block.WithTransactions(Enumerable.Repeat(Build.A.Transaction.TestObject, 1000).ToArray()).TestObject;
TxTrie txTrie = new(block.Transactions, true);
using var pool = new TrackingCappedArrayPool();
TxTrie txTrie = new(block.Transactions, true, pool);

txTrie.UpdateRootHash();
for (int i = 0; i < 1000; i++)
Expand Down
1 change: 0 additions & 1 deletion src/Nethermind/Nethermind.Blockchain.Test/ReorgTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public void Setup()
blockProcessor,
new RecoverSignatures(
ecdsa,
txPool,
specProvider,
LimboLogs.Instance),
stateReader,
Expand Down
Loading