aboutsummaryrefslogtreecommitdiffstats
path: root/mobile/params.go
diff options
context:
space:
mode:
authoram2rican5 <am2rican5@gmail.com>2017-07-31 16:44:08 +0800
committeram2rican5 <am2rican5@gmail.com>2017-07-31 16:44:08 +0800
commit0732ad4e478144ec66b3866de34d99ffa2ee4890 (patch)
treed6b1252365eae909563a9284e875858fdae62e79 /mobile/params.go
parent3d32690b54539d13ec8e7884bf3416ada6046354 (diff)
downloadgo-tangerine-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar
go-tangerine-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar.gz
go-tangerine-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar.bz2
go-tangerine-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar.lz
go-tangerine-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar.xz
go-tangerine-0732ad4e478144ec66b3866de34d99ffa2ee4890.tar.zst
go-tangerine-0732ad4e478144ec66b3866de34d99ffa2ee4890.zip
mobile: add RinkebyGenesis method
Diffstat (limited to 'mobile/params.go')
-rw-r--r--mobile/params.go9
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 {