From 0732ad4e478144ec66b3866de34d99ffa2ee4890 Mon Sep 17 00:00:00 2001 From: am2rican5 Date: Mon, 31 Jul 2017 17:44:08 +0900 Subject: [PATCH] mobile: add RinkebyGenesis method --- mobile/params.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mobile/params.go b/mobile/params.go index 9c58a90ab..45fe870ee 100644 --- a/mobile/params.go +++ b/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 {