Skip to content

Commit

Permalink
forkid: add mordor and classic ECIP1099 fork block numbers to forkid …
Browse files Browse the repository at this point in the history
…tests

Signed-off-by: meows <b5c6@protonmail.com>
  • Loading branch information
meowsbits committed Sep 29, 2020
1 parent 6f88679 commit 107dfff
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions core/forkid/forkid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ func TestCreation(t *testing.T) {
{9573000, ID{Hash: checksumToBytes(0x7ba22882), Next: 10500839}},
{9573001, ID{Hash: checksumToBytes(0x7ba22882), Next: 10500839}},
{10500838, ID{Hash: checksumToBytes(0x7ba22882), Next: 10500839}},
{10500839, ID{Hash: checksumToBytes(0x9007bfcc), Next: 0}},
{10500840, ID{Hash: checksumToBytes(0x9007bfcc), Next: 0}},
{10500839, ID{Hash: checksumToBytes(0x9007bfcc), Next: 11_700_000}},
{10500840, ID{Hash: checksumToBytes(0x9007bfcc), Next: 11_700_000}},
{11_699_999, ID{Hash: checksumToBytes(0x9007bfcc), Next: 11_700_000}},
{11_700_000, ID{Hash: checksumToBytes(0xdb63a1ca), Next: 0}},
},
},
{
Expand Down Expand Up @@ -197,8 +199,10 @@ func TestCreation(t *testing.T) {
{301243, ID{Hash: checksumToBytes(0x604f6ee1), Next: 999983}},
{301244, ID{Hash: checksumToBytes(0x604f6ee1), Next: 999983}},
{999982, ID{Hash: checksumToBytes(0x604f6ee1), Next: 999983}},
{999983, ID{Hash: checksumToBytes(0xf42f5539), Next: 0}},
{999984, ID{Hash: checksumToBytes(0xf42f5539), Next: 0}},
{999983, ID{Hash: checksumToBytes(0xf42f5539), Next: 2_520_000}},
{999984, ID{Hash: checksumToBytes(0xf42f5539), Next: 2_520_000}},
{2_519_999, ID{Hash: checksumToBytes(0xf42f5539), Next: 2_520_000}},
{2_520_000, ID{Hash: checksumToBytes(0x66b5c286), Next: 0}},
},
},
}
Expand Down Expand Up @@ -321,7 +325,7 @@ func TestGatherForks(t *testing.T) {
{
"classic",
params.ClassicChainConfig,
[]uint64{1150000, 2500000, 3000000, 5000000, 5900000, 8772000, 9573000, 10500839},
[]uint64{1150000, 2500000, 3000000, 5000000, 5900000, 8772000, 9573000, 10500839, 11_700_000},
},
{
"mainnet",
Expand All @@ -331,7 +335,7 @@ func TestGatherForks(t *testing.T) {
{
"mordor",
params.MordorChainConfig,
[]uint64{301_243, 999_983},
[]uint64{301_243, 999_983, 2_520_000},
},
{
"kotti",
Expand Down

0 comments on commit 107dfff

Please sign in to comment.