go-ethereum/consensus/tests
Jerome f8d3f9f8c6
Xin 113 is epoch switch (#37)
* add isEpochSwitch function and refactor utils

* fix broken first v2 epoch switch block

* use adaptor epoch switch function to determine v1 v2 epoch swtich block

* add test for the GetMasternodesByNumber and GetCurrentEpochSwitchBlock function

* add v2 test for isAuthroisedAddress

* Use GetCurrentEpochSwitchBlock in findNearestSignedBlock api
2022-01-14 21:38:38 +11:00
..
adaptor_test.go Xin 113 is epoch switch (#37) 2022-01-14 21:38:38 +11:00
authorised_masternode_test.go Xin 113 is epoch switch (#37) 2022-01-14 21:38:38 +11:00
block_signer_test.go v2 miner function implementation and happy path (#22) 2021-12-30 11:45:18 +11:00
blockchain_race_condition_test.go v2 miner function implementation and happy path (#22) 2021-12-30 11:45:18 +11:00
countdown_test.go Commit grand grand parent block(continous rounds) if enough votes or by proposedBlockHandler 2022-01-01 16:20:33 +11:00
proposed_block_test.go Commit grand grand parent block(continous rounds) if enough votes or by proposedBlockHandler 2022-01-01 16:20:33 +11:00
sync_info_test.go Commit grand grand parent block(continous rounds) if enough votes or by proposedBlockHandler 2022-01-01 16:20:33 +11:00
test_helper.go Xin 113 is epoch switch (#37) 2022-01-14 21:38:38 +11:00
timeout_test.go Commit grand grand parent block(continous rounds) if enough votes or by proposedBlockHandler 2022-01-01 16:20:33 +11:00
vote_test.go Commit grand grand parent block(continous rounds) if enough votes or by proposedBlockHandler 2022-01-01 16:20:33 +11:00