go-ethereum/consensus/XDPoS/utils
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
..
constants.go isEpochSwitch, getMasternodes (#35) 2022-01-08 00:17:21 +08:00
errors.go v2 miner function implementation and happy path (#22) 2021-12-30 11:45:18 +11:00
pool.go xin-106 add generated message into its pool (#32) 2021-12-30 11:45:22 +11:00
pool_test.go add ProcessQC tests 2021-12-30 11:12:18 +11:00
types.go isEpochSwitch, getMasternodes (#35) 2022-01-08 00:17:21 +08:00
types_test.go v2 miner function implementation and happy path (#22) 2021-12-30 11:45:18 +11:00
utils.go Xin 113 is epoch switch (#37) 2022-01-14 21:38:38 +11:00
utils_test.go Xin 113 is epoch switch (#37) 2022-01-14 21:38:38 +11:00