diff options
author | am2rican5 <am2rican5@gmail.com> | 2017-07-31 16:44:08 +0800 |
---|---|---|
committer | am2rican5 <am2rican5@gmail.com> | 2017-07-31 16:44:08 +0800 |
commit | 0732ad4e478144ec66b3866de34d99ffa2ee4890 (patch) | |
tree | d6b1252365eae909563a9284e875858fdae62e79 /mobile/params.go | |
parent | 3d32690b54539d13ec8e7884bf3416ada6046354 (diff) | |
download | dexon-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar dexon-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar.gz dexon-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar.bz2 dexon-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar.lz dexon-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar.xz dexon-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar.zst dexon-0732ad4e478144ec66b3866de34d99ffa2ee4890.zip |
mobile: add RinkebyGenesis method
Diffstat (limited to 'mobile/params.go')
-rw-r--r-- | mobile/params.go | 9 |
1 files changed, 9 insertions, 0 deletions
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 { |