Kaynağa Gözat

mobile: add RinkebyGenesis method

am2rican5 8 yıl önce
ebeveyn
işleme
0732ad4e47
1 değiştirilmiş dosya ile 9 ekleme ve 0 silme
  1. 9 0
      mobile/params.go

+ 9 - 0
mobile/params.go

@@ -41,6 +41,15 @@ func TestnetGenesis() string {
 	return string(enc)
 }
 
+// RinkebyGenesis returns the JSON spec to use for the Rinkeby test network
+func RinkebyGenesis() string {
+	enc, err := json.Marshal(core.DefaultRinkebyGenesisBlock())
+	if err != nil {
+		panic(err)
+	}
+	return string(enc)
+}
+
 // FoundationBootnodes returns the enode URLs of the P2P bootstrap nodes operated
 // by the foundation running the V5 discovery protocol.
 func FoundationBootnodes() *Enodes {