mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
b6829f36fd
HF_ prefix makes zero sense to me. If it's "hardfork", then it's in the "Hardforks" section already. If it's "hotfix", then it made some sense back when it was HF_2712_FixSyscallFees, but now it's codenamed anyway. So we can drop it and have a cleaner config.
24 lines
618 B
Go
24 lines
618 B
Go
// Code generated by "stringer -type=Hardfork -linecomment"; DO NOT EDIT.
|
|
|
|
package config
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[HFAspidochelone-1]
|
|
}
|
|
|
|
const _Hardfork_name = "Aspidochelone"
|
|
|
|
var _Hardfork_index = [...]uint8{0, 13}
|
|
|
|
func (i Hardfork) String() string {
|
|
i -= 1
|
|
if i >= Hardfork(len(_Hardfork_index)-1) {
|
|
return "Hardfork(" + strconv.FormatInt(int64(i+1), 10) + ")"
|
|
}
|
|
return _Hardfork_name[_Hardfork_index[i]:_Hardfork_index[i+1]]
|
|
}
|