Skip to content

Commit

Permalink
Problem: pystarport don't support join existing network (#282)
Browse files Browse the repository at this point in the history
Solution:
- support join existing network by specify genesis file and peers
- support recover from existing mnemonic and consensus key
  • Loading branch information
yihuang authored Nov 26, 2020
1 parent 0bb5f19 commit f91257f
Show file tree
Hide file tree
Showing 7 changed files with 544 additions and 34 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ rec {

shellHook = ''
# prefer local pystarport directory for development
export PYTHONPATH=$PWD/pystarport:$PYTHONPATH
export PYTHONPATH=./pystarport:$PYTHONPATH
'';
};
}
11 changes: 11 additions & 0 deletions examples/testnet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
testnet-croeseid-1:
validators:
- name: debug
# optional, recover wallet from mnemonic
# mnemonic:
# optional, recover from existing consensus key, base64 encoded
# consensus_key:
# priv:
# pub:
genesis_file: "%(here)s/testnet_genesis.json"
peers: "66a557b8feef403805eb68e6e3249f3148d1a3f2@54.169.58.229:26656,3246d15d34802ca6ade7f51f5a26785c923fb385@54.179.111.207:26656,69c2fbab6b4f58b6cf1f79f8b1f670c7805e3f43@18.141.107.57:26656"
Loading

0 comments on commit f91257f

Please sign in to comment.