OSDN Git Service

wip config
[bytom/vapor.git] / config / toml.go
index ceb448c..44c640e 100644 (file)
@@ -51,16 +51,21 @@ laddr = "tcp://0.0.0.0:56659"
 seeds = ""
 `
 
+var FederationConfigTmpl = `[fed]
+xpubs = "1,2"
+quorum = 1
+`
+
 // Select network seeds to merge a new string.
 func selectNetwork(network string) string {
        switch network {
        case "mainnet":
-               return defaultConfigTmpl + mainNetConfigTmpl
+               return defaultConfigTmpl + mainNetConfigTmpl + FederationConfigTmpl
        case "testnet":
-               return defaultConfigTmpl + testNetConfigTmpl
+               return defaultConfigTmpl + testNetConfigTmpl + FederationConfigTmpl
        case "vapor":
-               return defaultConfigTmpl + vaporNetConfigTmpl
+               return defaultConfigTmpl + vaporNetConfigTmpl + FederationConfigTmpl
        default:
-               return defaultConfigTmpl + soloNetConfigTmpl
+               return defaultConfigTmpl + soloNetConfigTmpl + FederationConfigTmpl
        }
 }