mirror of https://github.com/poanetwork/gecko.git
Merge branch 'master' into update-version
This commit is contained in:
commit
131e341597
|
@ -10,20 +10,21 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
errMsg = "__________ .___\n" +
|
errMsg = "" +
|
||||||
"\\______ \\____________ __| _/__.__.\n" +
|
`__________ .___` + "\n" +
|
||||||
" | | _/\\_ __ \\__ \\ / __ < | |\n" +
|
`\______ \____________ __| _/__.__.` + "\n" +
|
||||||
" | | \\ | | \\// __ \\_/ /_/ |\\___ |\n" +
|
` | | _/\_ __ \__ \ / __ < | |` + "\n" +
|
||||||
" |______ / |__| (____ /\\____ |/ ____|\n" +
|
` | | \ | | \// __ \_/ /_/ |\___ |` + "\n" +
|
||||||
" \\/ \\/ \\/\\/\n" +
|
` |______ / |__| (____ /\____ |/ ____|` + "\n" +
|
||||||
|
` \/ \/ \/\/` + "\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"🏆 🏆 🏆 🏆 🏆 🏆\n" +
|
`🏆 🏆 🏆 🏆 🏆 🏆` + "\n" +
|
||||||
" ________ ________ ________________\n" +
|
` ________ ________ ________________` + "\n" +
|
||||||
" / _____/ \\_____ \\ / _ \\__ ___/\n" +
|
` / _____/ \_____ \ / _ \__ ___/` + "\n" +
|
||||||
"/ \\ ___ / | \\ / /_\\ \\| |\n" +
|
`/ \ ___ / | \ / /_\ \| |` + "\n" +
|
||||||
"\\ \\_\\ \\/ | \\/ | \\ |\n" +
|
`\ \_\ \/ | \/ | \ |` + "\n" +
|
||||||
" \\______ /\\_______ /\\____|__ /____|\n" +
|
` \______ /\_______ /\____|__ /____|` + "\n" +
|
||||||
" \\/ \\/ \\/\n"
|
` \/ \/ \/` + "\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Parameters required for snowball consensus
|
// Parameters required for snowball consensus
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAddDefaultSubnetValidator(t *testing.T) {
|
func TestAddDefaultSubnetValidator(t *testing.T) {
|
||||||
expectedJSONString := `{"startTime":"0","endtime":"0","id":null,"destination":null,"delegationFeeRate":"0","payerNonce":"0"}`
|
expectedJSONString := `{"startTime":"0","endTime":"0","id":null,"destination":null,"delegationFeeRate":"0","payerNonce":"0"}`
|
||||||
args := AddDefaultSubnetValidatorArgs{}
|
args := AddDefaultSubnetValidatorArgs{}
|
||||||
bytes, err := json.Marshal(&args)
|
bytes, err := json.Marshal(&args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -44,7 +44,7 @@ type APIAccount struct {
|
||||||
// is sent when this staker is done staking.
|
// is sent when this staker is done staking.
|
||||||
type APIValidator struct {
|
type APIValidator struct {
|
||||||
StartTime json.Uint64 `json:"startTime"`
|
StartTime json.Uint64 `json:"startTime"`
|
||||||
EndTime json.Uint64 `json:"endtime"`
|
EndTime json.Uint64 `json:"endTime"`
|
||||||
Weight *json.Uint64 `json:"weight,omitempty"`
|
Weight *json.Uint64 `json:"weight,omitempty"`
|
||||||
StakeAmount *json.Uint64 `json:"stakeAmount,omitempty"`
|
StakeAmount *json.Uint64 `json:"stakeAmount,omitempty"`
|
||||||
ID ids.ShortID `json:"id"`
|
ID ids.ShortID `json:"id"`
|
||||||
|
|
Loading…
Reference in New Issue