OSDN Git Service

fix config & update mysql dump (#306)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Wed, 17 Jul 2019 09:23:01 +0000 (17:23 +0800)
committerPaladz <yzhu101@uottawa.ca>
Wed, 17 Jul 2019 09:23:01 +0000 (17:23 +0800)
docs/federation/README-en.md
docs/federation/federation.sql

index 392e2a2..7d5c747 100644 (file)
@@ -26,7 +26,7 @@ A `fed_cfg.json` would look like this:
     },
     "federation_prog" : "0020305dc12c0dbec0c1dc1f30e835034c1f19094c06afb0eb953a6d1af42222a721",
     "mainchain" : {
-        "name" : "bytom",
+        "name" : "btm",
         "confirmations" : 10,
         "upstream" : "http://127.0.0.1:9888",
         "sync_seconds" : 150
index 0e19042..447fc88 100644 (file)
@@ -31,10 +31,23 @@ CREATE TABLE `chains` (
 LOCK TABLES `chains` WRITE;
 /*!40000 ALTER TABLE `chains` DISABLE KEYS */;
 
+------------------------------------ bytom consensus --------------------------------------
+-- chain name should be the same as BytomChainName in toolbar/federation/common/const.go --
+-------------------------------------------------------------------------------------------
+-- bytom mainnet consensus start--
+-- INSERT INTO `chains`
+-- (`id`, `name`, `block_height`, `block_hash`, `created_at`, `updated_at`)
+-- VALUES
+-- (1,'btm',0,'a75483474799ea1aa6bb910a1a5025b4372bf20bef20f246a2c2dc5e12e8a053','2018-09-13 05:10:43','2018-11-27 09:42:06');
+-- bytom mainnet consensus end--
+
+-- bytom testnet&solonet consensus start--
 INSERT INTO `chains`
 (`id`, `name`, `block_height`, `block_hash`, `created_at`, `updated_at`)
 VALUES
-(1,'bytom',0,'a75483474799ea1aa6bb910a1a5025b4372bf20bef20f246a2c2dc5e12e8a053','2018-09-13 05:10:43','2018-11-27 09:42:06');
+(1,'btm',0,'ce4fe9431cd0225b3a811f8f8ec922f2b07a921bb12a8dddae9a85540072c770','2018-09-13 05:10:43','2018-11-27 09:42:06');
+-- bytom testnet&solonet consensus end--
+
 
 /*!40000 ALTER TABLE `chains` ENABLE KEYS */;
 UNLOCK TABLES;