core: allow to create hard-fork
This commit is contained in:
parent
d1588115a2
commit
e70bf7d12e
6 changed files with 86 additions and 1 deletions
|
@ -100,6 +100,12 @@ func TestProtocolConfigurationValidation(t *testing.T) {
|
|||
ValidatorsHistory: map[uint32]int{0: 4, 100: 4},
|
||||
}
|
||||
require.Error(t, p.Validate())
|
||||
p = &ProtocolConfiguration{
|
||||
Hardforks: map[string]uint32{
|
||||
"HF_Unknown": 123, // Unknown hard-fork.
|
||||
},
|
||||
}
|
||||
require.Error(t, p.Validate())
|
||||
p = &ProtocolConfiguration{
|
||||
StandbyCommittee: []string{
|
||||
"02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue