Search Apps Documentation Source Content File Folder Download Copy Actions Download

init.gno

1.26 Kb ยท 43 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("g1gmg597aa85gk6u3wz3aluyxmctgfq9ld2fda7w"),
15			PubKey:      "gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pqvsdv9yhul20sq9zfk08r3u72ysqdntu59xcez0ju2ydjguya9fusuc8h27",
16			VotingPower: 1,
17		},
18		// gnocore-val-02
19		{
20			Address:     address("g1y8uw54dytc3twhv0vr4h8erghh7vxkczxvz9x0"),
21			PubKey:      "gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq06uuq3asdxgs5f438y863wkly5flazwtaz83ldvh33pmdecd0s0jyndfnl",
22			VotingPower: 1,
23		},
24		// onbloc-val-01
25		{
26			Address:     address("g1wmaglcam7xq3kwvrks6ysyeutf0jc877f4q3nl"),
27			PubKey:      "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zpelzea0ep9dclr83vygetymcs5uekam9j53t2sgcefumxth2wagquu3vrk",
28			VotingPower: 1,
29		},
30		// onbloc-val-02
31		{
32			Address:     address("g1quanjrv29f3zvy8cnsd7s3wjcnhmv4v4n3knhm"),
33			PubKey:      "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqz3ewj7qudswvtsex2l73g42v5tnkyguxcgft8tdg3mrpzwzzn4lde0vag",
34			VotingPower: 1,
35		},
36	}
37
38	// The default valset protocol is PoA
39	vp = poa.NewPoA(poa.WithInitialSet(set))
40
41	// No changes to apply initially
42	changes = avl.NewTree()
43}