Skip to content

Commit 397919f

Browse files
committed
One does not simply rename an enum value
1 parent a3955e2 commit 397919f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Nethermind/Nethermind.Blockchain.Test/TransactionSelectorTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,12 @@ public static IEnumerable EnoughShardBlobTransactionsSelectedTestCases
180180
new byte[enoughTransactionsSelected.ReleaseSpec.MaxBlobCount][];
181181
expectedSelectedTransactions[0].MaxFeePerBlobGas = 1;
182182
expectedSelectedTransactions[0].NetworkWrapper =
183-
new ShardBlobNetworkWrapper(new byte[1][], new byte[1][], new byte[1][], ProofVersion.V1);
183+
new ShardBlobNetworkWrapper(new byte[1][], new byte[1][], new byte[1][], ProofVersion.V0);
184184
expectedSelectedTransactions[1].Type = TxType.Blob;
185185
expectedSelectedTransactions[1].BlobVersionedHashes = new byte[1][];
186186
expectedSelectedTransactions[1].MaxFeePerBlobGas = 1;
187187
expectedSelectedTransactions[1].NetworkWrapper =
188-
new ShardBlobNetworkWrapper(new byte[1][], new byte[1][], new byte[1][], ProofVersion.V1);
188+
new ShardBlobNetworkWrapper(new byte[1][], new byte[1][], new byte[1][], ProofVersion.V0);
189189
enoughTransactionsSelected.ExpectedSelectedTransactions.AddRange(
190190
expectedSelectedTransactions.Where(static (_, index) => index != 1));
191191
yield return new TestCaseData(enoughTransactionsSelected).SetName(

src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.V3.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public async Task GetPayloadV3_should_return_all_the_blobs([Values(0, 1, 2, 3, 4
141141
Assert.That(getPayloadResultBlobsBundle.Proofs!.Length, Is.EqualTo(blobTxCount));
142142
ShardBlobNetworkWrapper wrapper = new ShardBlobNetworkWrapper(getPayloadResultBlobsBundle.Blobs,
143143
getPayloadResultBlobsBundle.Commitments, getPayloadResultBlobsBundle.Proofs, ProofVersion.V1);
144-
Assert.That(IBlobProofsManager.For(ProofVersion.V1).ValidateProofs(wrapper), Is.True);
144+
Assert.That(IBlobProofsManager.For(ProofVersion.V0).ValidateProofs(wrapper), Is.True);
145145
}
146146

147147
[TestCase(false, PayloadStatus.Valid)]

src/Nethermind/Nethermind.Serialization.Rlp/TxDecoders/BlobTxDecoder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private static void DecodeShardBlobNetworkWrapper(Transaction transaction, RlpSt
148148
if (startingRlp.Length is 1)
149149
{
150150
version = (ProofVersion)rlpStream.ReadByte();
151-
if (version != ProofVersion.V1)
151+
if (version > ProofVersion.V1)
152152
{
153153
throw new RlpException($"Unknown version of {nameof(ShardBlobNetworkWrapper)}. Expected {0x01} and is {version}");
154154
}

0 commit comments

Comments
 (0)