Search Apps Documentation Source Content File Folder Download Copy Actions Download

init.gno

0.80 Kb ยท 31 lines
 1package validators
 2
 3import (
 4	"gno.land/p/nt/avl"
 5	"gno.land/p/nt/poa"
 6	"gno.land/p/sys/validators"
 7)
 8
 9func init() {
10	// Prepare the initial validator set
11	set := []validators.Validator{
12		// gnocore-val-01
13		{
14			Address:     address("g1e8j30772p4fvjd27eqq0e50vs74ekst50f5hz6"),
15			PubKey:      "gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pqdw9mje8pwpd8p6pu3h0ke9mxp3s7l5vr6jtsffyd9wazpgxufwrssj367n",
16			VotingPower: 1,
17		},
18		// gnocore-val-02
19		{
20			Address:     address("g18k5nz67cg03lrdkwnf9qmdfzf0ptaq7lxefe4y"),
21			PubKey:      "gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq0mxx3hhmy5hsl9kv8ne2ch46l8uk3kpnwc8kr900066ejz3zlhqcj6wjna",
22			VotingPower: 1,
23		},
24	}
25
26	// The default valset protocol is PoA
27	vp = poa.NewPoA(poa.WithInitialSet(set))
28
29	// No changes to apply initially
30	changes = avl.NewTree()
31}