From d30a22bfa5ef415ae4ea4d3bd184467a34aa2b11 Mon Sep 17 00:00:00 2001 From: noot <36753753+noot@users.noreply.github.com> Date: Sat, 8 Sep 2018 07:07:20 -0700 Subject: [PATCH] added bootnodes to bootnodes.go and added authorities array to GoerliChainConfig in params/config.go (#15) --- params/bootnodes.go | 9 ++++++--- params/config.go | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/params/bootnodes.go b/params/bootnodes.go index b36ff2f83c..fbe978da0f 100644 --- a/params/bootnodes.go +++ b/params/bootnodes.go @@ -48,8 +48,11 @@ var RinkebyBootnodes = []string{ } // Goerli testnet BootNodes -var GoerliBootnodes = []string { - "", +var GoerliBootnodes = []string{ + "enode://ffc0d1bcc54dee616617be06edf2b3abdd200beb3765d4475ae9fb1750d98fb0d753b30e691912bb6775b7d442b71072c91becab2141191ce73de5b6d57ac723@40.114.122.81:30303", + "enode://5b360e4baabf9e89e42e9241d4d00e7ff7a804759049be7dde30980ccce445f1fb0f91a4b9a4a28ee371b18d679fcced3cac3d73654059dd69c4a7b772bd4abf@40.87.8.76:30303", + "enode://b95468b5fa80293c4f2fce2df7a02a52f0b259063d99a78a571afcb69f736ead79ca73412b37cb2336da75066f02439d2e50e22dedc1b78380a6ab36ebdda3fc@40.87.4.17:30303", + "enode://3969e0879235c0b2bcc8957fc6d62d53763fcff0e750788eae029d40f1b4fa69f4d5a952ea3d02f85eb558faaae6bd5fbd1f394867edc6728c9fe7b9959329b0@40.87.1.35:30303", } // DiscoveryV5Bootnodes are the enode URLs of the P2P bootstrap nodes for the @@ -59,4 +62,4 @@ var DiscoveryV5Bootnodes = []string{ "enode://0cc5f5ffb5d9098c8b8c62325f3797f56509bff942704687b6530992ac706e2cb946b90a34f1f19548cd3c7baccbcaea354531e5983c7d1bc0dee16ce4b6440b@40.118.3.223:30304", "enode://1c7a64d76c0334b0418c004af2f67c50e36a3be60b5e4790bdac0439d21603469a85fad36f2473c9a80eb043ae60936df905fa28f1ff614c3e5dc34f15dcd2dc@40.118.3.223:30306", "enode://85c85d7143ae8bb96924f2b54f1b3e70d8c4d367af305325d30a61385a432f247d2c75c45c6b4a60335060d072d7f5b35dd1d4c45f76941f62a4f83b6e75daaf@40.118.3.223:30307", -} +} \ No newline at end of file diff --git a/params/config.go b/params/config.go index e97ba65b81..f482c672f8 100644 --- a/params/config.go +++ b/params/config.go @@ -94,6 +94,9 @@ var ( Aura: &AuraConfig{ Period: 15, Epoch: 30000, + Authorities: []string{ + "0x540a9fe3d2381016dec8ffba7235c6fb00b0f942", + }, Difficulty: 131072, }, } @@ -163,6 +166,7 @@ type CliqueConfig struct { type AuraConfig struct { Period uint64 `json:"period"` // Number of seconds between blocks to enforce Epoch uint64 `json:"epoch"` // Epoch length to reset votes and checkpoint + Authorities []string `json:"authorities"` // list of addresses of authorities Difficulty uint64 `json:"difficulty"` // Constant block difficulty }