• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revisioneaf5d99924f4111d7c0993ff0bc27354ab1984ae (tree)
Time2019-07-17 17:58:24
AuthorHAOYUatHZ <haoyu@prot...>
CommiterHAOYUatHZ

Log Message

fix config & update mysql dump

Change Summary

Incremental Difference

--- a/docs/federation/README-en.md
+++ b/docs/federation/README-en.md
@@ -26,7 +26,7 @@ A `fed_cfg.json` would look like this:
2626 },
2727 "federation_prog" : "0020305dc12c0dbec0c1dc1f30e835034c1f19094c06afb0eb953a6d1af42222a721",
2828 "mainchain" : {
29- "name" : "bytom",
29+ "name" : "btm",
3030 "confirmations" : 10,
3131 "upstream" : "http://127.0.0.1:9888",
3232 "sync_seconds" : 150
--- a/docs/federation/federation.sql
+++ b/docs/federation/federation.sql
@@ -31,10 +31,23 @@ CREATE TABLE `chains` (
3131 LOCK TABLES `chains` WRITE;
3232 /*!40000 ALTER TABLE `chains` DISABLE KEYS */;
3333
34+------------------------------------ bytom consensus --------------------------------------
35+-- chain name should be the same as BytomChainName in toolbar/federation/common/const.go --
36+-------------------------------------------------------------------------------------------
37+-- bytom mainnet consensus start--
38+-- INSERT INTO `chains`
39+-- (`id`, `name`, `block_height`, `block_hash`, `created_at`, `updated_at`)
40+-- VALUES
41+-- (1,'btm',0,'a75483474799ea1aa6bb910a1a5025b4372bf20bef20f246a2c2dc5e12e8a053','2018-09-13 05:10:43','2018-11-27 09:42:06');
42+-- bytom mainnet consensus end--
43+
44+-- bytom testnet&solonet consensus start--
3445 INSERT INTO `chains`
3546 (`id`, `name`, `block_height`, `block_hash`, `created_at`, `updated_at`)
3647 VALUES
37-(1,'bytom',0,'a75483474799ea1aa6bb910a1a5025b4372bf20bef20f246a2c2dc5e12e8a053','2018-09-13 05:10:43','2018-11-27 09:42:06');
48+(1,'btm',0,'ce4fe9431cd0225b3a811f8f8ec922f2b07a921bb12a8dddae9a85540072c770','2018-09-13 05:10:43','2018-11-27 09:42:06');
49+-- bytom testnet&solonet consensus end--
50+
3851
3952 /*!40000 ALTER TABLE `chains` ENABLE KEYS */;
4053 UNLOCK TABLES;
Show on old repository browser