diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-09-19 15:13:11 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-09-19 15:13:11 +0800 |
commit | f9eb3072167603e70b018c295e305d71b69756e3 (patch) | |
tree | 8d2abf91cd0786e93400f4f99a752b5d1521c391 /core | |
parent | ad380cd57f9b7f8ed748b61b568f8733836ba2e3 (diff) | |
download | go-tangerine-f9eb3072167603e70b018c295e305d71b69756e3.tar go-tangerine-f9eb3072167603e70b018c295e305d71b69756e3.tar.gz go-tangerine-f9eb3072167603e70b018c295e305d71b69756e3.tar.bz2 go-tangerine-f9eb3072167603e70b018c295e305d71b69756e3.tar.lz go-tangerine-f9eb3072167603e70b018c295e305d71b69756e3.tar.xz go-tangerine-f9eb3072167603e70b018c295e305d71b69756e3.tar.zst go-tangerine-f9eb3072167603e70b018c295e305d71b69756e3.zip |
core/forkid, params: fix tests, enable Istanbul on Rinkeby + testers
Diffstat (limited to 'core')
-rw-r--r-- | core/forkid/forkid_test.go | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/core/forkid/forkid_test.go b/core/forkid/forkid_test.go index b33f85bec..304894023 100644 --- a/core/forkid/forkid_test.go +++ b/core/forkid/forkid_test.go @@ -72,8 +72,10 @@ func TestCreation(t *testing.T) { {4229999, ID{Hash: checksumToBytes(0x3ea159c7), Next: 4230000}}, // Last Byzantium block {4230000, ID{Hash: checksumToBytes(0x97b544f3), Next: 4939394}}, // First Constantinople block {4939393, ID{Hash: checksumToBytes(0x97b544f3), Next: 4939394}}, // Last Constantinople block - {4939394, ID{Hash: checksumToBytes(0xd6e2149b), Next: 0}}, // First Petersburg block - {5822692, ID{Hash: checksumToBytes(0xd6e2149b), Next: 0}}, // Today Petersburg block + {4939394, ID{Hash: checksumToBytes(0xd6e2149b), Next: 6485846}}, // First Petersburg block + {6485845, ID{Hash: checksumToBytes(0xd6e2149b), Next: 6485846}}, // Last Petersburg block + {6485846, ID{Hash: checksumToBytes(0x4bc66396), Next: 0}}, // First Istanbul block + {7500000, ID{Hash: checksumToBytes(0x4bc66396), Next: 0}}, // Future Istanbul block }, }, // Rinkeby test cases @@ -90,8 +92,10 @@ func TestCreation(t *testing.T) { {3660662, ID{Hash: checksumToBytes(0x8d748b57), Next: 3660663}}, // Last Byzantium block {3660663, ID{Hash: checksumToBytes(0xe49cab14), Next: 4321234}}, // First Constantinople block {4321233, ID{Hash: checksumToBytes(0xe49cab14), Next: 4321234}}, // Last Constantinople block - {4321234, ID{Hash: checksumToBytes(0xafec6b27), Next: 0}}, // First Petersburg block - {4586649, ID{Hash: checksumToBytes(0xafec6b27), Next: 0}}, // Today Petersburg block + {4321234, ID{Hash: checksumToBytes(0xafec6b27), Next: 5435345}}, // First Petersburg block + {5435344, ID{Hash: checksumToBytes(0xafec6b27), Next: 5435345}}, // Last Petersburg block + {5435345, ID{Hash: checksumToBytes(0xcbdb8838), Next: 0}}, // First Istanbul block + {6000000, ID{Hash: checksumToBytes(0xcbdb8838), Next: 0}}, // Future Istanbul block }, }, // Goerli test cases @@ -99,8 +103,10 @@ func TestCreation(t *testing.T) { params.GoerliChainConfig, params.GoerliGenesisHash, []testcase{ - {0, ID{Hash: checksumToBytes(0xa3f5ab08), Next: 0}}, // Unsynced, last Frontier, Homestead, Tangerine, Spurious, Byzantium, Constantinople and first Petersburg block - {795329, ID{Hash: checksumToBytes(0xa3f5ab08), Next: 0}}, // Today Petersburg block + {0, ID{Hash: checksumToBytes(0xa3f5ab08), Next: 1561651}}, // Unsynced, last Frontier, Homestead, Tangerine, Spurious, Byzantium, Constantinople and first Petersburg block + {1561650, ID{Hash: checksumToBytes(0xa3f5ab08), Next: 1561651}}, // Last Petersburg block + {1561651, ID{Hash: checksumToBytes(0xc25efa5c), Next: 0}}, // First Istanbul block + {2000000, ID{Hash: checksumToBytes(0xc25efa5c), Next: 0}}, // Future Istanbul block }, }, } |