From dabc18fc0755e24d4b0910af66402a4e25dc298a Mon Sep 17 00:00:00 2001
From: Benjamin Bollen <ben@erisindustries.com>
Date: Fri, 3 Jun 2016 00:33:07 +0200
Subject: [PATCH] for now, write tendermint priv_validator to root directory

---
 consensus/tendermint/tendermint.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/consensus/tendermint/tendermint.go b/consensus/tendermint/tendermint.go
index 2d762435..ae9a3c39 100644
--- a/consensus/tendermint/tendermint.go
+++ b/consensus/tendermint/tendermint.go
@@ -65,7 +65,7 @@ func NewTendermintNode(moduleConfig *config.ModuleConfig,
   // TODO: [ben] implement the signer for Private validator over eris-keys
   // TODO: [ben] copy from rootDir to tendermint workingDir;
   privateValidator := tendermint_types.LoadOrGenPrivValidator(
-    path.Join(moduleConfig.WorkDir,
+    path.Join(moduleConfig.RootDir,
     moduleConfig.Config.GetString("private_validator_file")))
   fmt.Printf("priv: %s", privateValidator.Address)
   // newNode := node.NewNode(tmintConfig, )
-- 
GitLab