-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into kch/change_checkpoint_urls
- Loading branch information
Showing
155 changed files
with
3,601 additions
and
763 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/Nethermind/Ethereum.Blockchain.Pyspec.Test/PragueBlockChainTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Ethereum.Test.Base; | ||
using NUnit.Framework; | ||
|
||
namespace Ethereum.Blockchain.Pyspec.Test; | ||
|
||
[TestFixture] | ||
[Parallelizable(ParallelScope.All)] | ||
[Explicit("These tests are not ready yet")] | ||
public class PragueBlockChainTests : BlockchainTestBase | ||
{ | ||
[TestCaseSource(nameof(LoadTests))] | ||
public async Task Test(BlockchainTest test) => await RunTest(test); | ||
|
||
private static IEnumerable<BlockchainTest> LoadTests() | ||
{ | ||
TestsSourceLoader loader = new(new LoadPyspecTestsStrategy(), $"fixtures/blockchain_tests/prague"); | ||
return loader.LoadTests().OfType<BlockchainTest>(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/Nethermind/Ethereum.Blockchain.Pyspec.Test/PragueStateTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Ethereum.Test.Base; | ||
using FluentAssertions; | ||
using NUnit.Framework; | ||
|
||
namespace Ethereum.Blockchain.Pyspec.Test; | ||
|
||
[TestFixture] | ||
[Parallelizable(ParallelScope.All)] | ||
[Explicit("These tests are not ready yet")] | ||
public class PragueStateTests : GeneralStateTestBase | ||
{ | ||
[TestCaseSource(nameof(LoadTests))] | ||
public void Test(GeneralStateTest test) => RunTest(test).Pass.Should().BeTrue(); | ||
|
||
private static IEnumerable<GeneralStateTest> LoadTests() | ||
{ | ||
TestsSourceLoader loader = new(new LoadPyspecTestsStrategy(), $"fixtures/state_tests/prague"); | ||
return loader.LoadTests().Cast<GeneralStateTest>(); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/Nethermind/Ethereum.Test.Base/AuthorizationListJson.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
using Nethermind.Core; | ||
|
||
namespace Ethereum.Test.Base; | ||
public class AuthorizationListJson | ||
{ | ||
public ulong ChainId { get; set; } | ||
public Address Address { get; set; } | ||
public ulong Nonce { get; set; } | ||
public ulong V { get; set; } | ||
public byte[] R { get; set; } | ||
public byte[] S { get; set; } | ||
public Address Signer { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.