From 9660da046f67ca54b9565105a39860d5fec598dd Mon Sep 17 00:00:00 2001
From: Silas Davis <silas@monax.io>
Date: Mon, 14 May 2018 19:14:06 +0100
Subject: [PATCH] Expose Tendermint PersistentPeers config

Signed-off-by: Silas Davis <silas@monax.io>
---
 consensus/tendermint/config.go | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/consensus/tendermint/config.go b/consensus/tendermint/config.go
index f1566a89..a95a7711 100644
--- a/consensus/tendermint/config.go
+++ b/consensus/tendermint/config.go
@@ -8,10 +8,13 @@ import (
 // are applicable, we may not allow some values to specified, or we may not allow some to be set independently.
 // So this serves as a layer of indirection over Tendermint's real config that we derive from ours.
 type BurrowTendermintConfig struct {
-	Seeds          string
-	ListenAddress  string
-	Moniker        string
-	TendermintRoot string
+	// Initial peers we connect to for peer exchange
+	Seeds           string
+	// Peers to which we automatically connect
+	PersistentPeers string
+	ListenAddress   string
+	Moniker         string
+	TendermintRoot  string
 }
 
 func DefaultBurrowTendermintConfig() *BurrowTendermintConfig {
@@ -32,6 +35,7 @@ func (btc *BurrowTendermintConfig) TendermintConfig() *tm_config.Config {
 		conf.Mempool.RootDir = btc.TendermintRoot
 		conf.P2P.RootDir = btc.TendermintRoot
 		conf.P2P.Seeds = btc.Seeds
+		conf.P2P.PersistentPeers = btc.PersistentPeers
 		conf.P2P.ListenAddress = btc.ListenAddress
 		conf.P2P.AuthEnc = false
 		conf.Moniker = btc.Moniker
-- 
GitLab