Last active
October 13, 2018 20:16
-
-
Save thomasklemm/87001398fffff38f88f36e8fa519f19b to your computer and use it in GitHub Desktop.
Stellar Core config for complete catchup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upgrade a Linux instance after first boot | |
$ apt-get update | |
$ apt-get full-upgrade | |
$ apt-get autoremove | |
$ apt-get autoclean | |
$ reboot | |
$ docker run -it -v "/str:/opt/stellar" -p "5432:5432" -p "8000:8000" --name stellar stellar/quickstart --pubnet | |
# Edit stellar core config | |
$ nano /str/core/etc/stellar-core.cfg | |
$ docker run -d -v "/str:/opt/stellar" -p "5432:5432" -p "8000:8000" --name stellar stellar/quickstart --pubnet | |
$ docker exec -it stellar /bin/bash | |
# In Docker container | |
$ stellar-core -c info | |
$ watch stellar-core -c info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Customized nodes and quorum set. This is just part of the Stellar Core config. | |
# | |
# Source 1: Stellar Quickstart Docker Image | |
# https://github.com/stellar/docker-stellar-core-horizon/blob/master/pubnet/core/etc/stellar-core.cfg | |
# Source 2: Stellar Core Example Config | |
# https://github.com/stellar/stellar-core/blob/master/docs/stellar-core_example.cfg | |
DATABASE="postgresql://dbname=core host=localhost user=stellar password=.........." | |
NETWORK_PASSPHRASE="Public Global Stellar Network ; September 2015" | |
CATCHUP_COMPLETE=true | |
AUTOMATIC_MAINTENANCE_PERIOD=0 | |
AUTOMATIC_MAINTENANCE_COUNT=0 | |
NODE_NAMES=[ | |
# Stellar Development Foundation | |
"GCGB2S2KGYARPVIA37HYZXVRM2YZUEXA6S33ZU5BUDC6THSB62LZSTYH sdf1", | |
"GCM6QMP3DLRPTAZW2UZPCPX2LF3SXWXKPMP3GKFZBDSF3QZGV2G5QSTK sdf2", | |
"GABMKJM6I25XI4K7U6XWMULOUQIQ27BCTMLS6BYYSOWKTBUXVRJSXHYQ sdf3", | |
# IBM | |
"GCKWUQGSVO45ZV3QK7POYL7HMFWDKWJVMFVEGUJKCAEVUITUCTQWFSM6 ibm_au", | |
"GBUJA3Z5TLAKLI5MEH4TETLXJBQVSVW74MNEKP5UUHTP3IMLNSUPOTVA ibm_br", | |
"GB2HF2NHRKKFZYFDGD7MUENOYROOEK7SWYV2APYOODP6P7BUJTLILKIL ibm_ca", | |
"GBJ7T3BTLX2BP3T5Q4256PUF7JMDAB35LLO32QRDYE67TDDMN7H33GGE ibm_hk", | |
"GAEEH4TBR7YQQWKJ2FIT57HXZZTMK2BX5LY4POJUYFSEZ7Y2ONHPPTES ibm_it", | |
"GCH3O5PTCZVR4G65W3B4XDKWI5V677HQB3QO7CW4YPVYDDFBE2GE7G6V ibm_in", | |
"GDRA72H7JWXAXWJKOONQOPH3JKNSH5MQ6BO5K74C3X6FO2G3OG464BPU ibm_no", | |
"GAENPO2XRTTMAJXDWM3E3GAALNLG4HVMKJ4QF525TR25RI42YPEDULOW ibm_uk", | |
"GARBCBH4YSHUJLYEPKEPMVYZIJ3ZSQR3QCJ245CWGY64X72JLN4A6RSG ibm_us", | |
# Stronghold | |
"GDIQKLQVOCD5UD6MUI5D5PTPVX7WTP5TAPP5OBMOLENBBD5KG434KYQ2 stronghold1", | |
"GA7MREQ7673YDVANF4WBPN7LBQM4BSH4BQUFUTC4YLSSQCQUQTXRVBZN stronghold2", | |
"GDHV7FL7JP6LUEWWYUOA4C3QAFQ4LZ6OHFBWFIL6IFIS3AOBI2DHV62F stronghold3", | |
# Tempo | |
"GCJCSMSPIWKKPR7WEPIQG63PDF7JGGEENRC33OKVBSPUDIRL6ZZ5M7OO tempo", | |
# SatoshiPay | |
"GC5SXLNAM3C4NMGK2PXK4R34B5GNZ47FYQ24ZIBFDFOCU6D4KBN4POAE satoshipay1", | |
"GBJQUIXUO4XSNPAUT6ODLZUJRV2NPXYASKUBY4G5MYP3M47PCVI55MNT satoshipay2", | |
"GAK6Z5UVGUVSEK6PEOCAYJISTT5EJBB34PN3NOLEQG2SUKXRVV2F6HZY satoshipay3" | |
] | |
KNOWN_PEERS=[ | |
"core-live-a.stellar.org:11625", | |
"core-live-b.stellar.org:11625", | |
"core-live-c.stellar.org:11625", | |
"au.stellar.ibm.com:11625", | |
"br.stellar.ibm.com:11625", | |
"ca.stellar.ibm.com:11625", | |
"hk.stellar.ibm.com:11625", | |
"it.stellar.ibm.com:11625", | |
"in.stellar.ibm.com:11625", | |
"no.stellar.ibm.com:11625", | |
"uk.stellar.ibm.com:11625", | |
"us.stellar.ibm.com:11625", | |
"validator1.stellar.stronghold.co:11625", | |
"validator2.stellar.stronghold.co:11625", | |
"validator3.stellar.stronghold.co:11625", | |
"validator4.stellar.stronghold.co:11625", | |
"validator5.stellar.stronghold.co:11625", | |
"stellar1.tempo.eu.com:11625", | |
"stellar1.satoshipay.io:11625", | |
"stellar2.satoshipay.io:11625", | |
"stellar3.satoshipay.io:11625" | |
] | |
[QUORUM_SET] | |
THRESHOLD_PERCENT=75 | |
VALIDATORS=[ | |
"$sdf1", | |
"$sdf2", | |
"$sdf3", | |
"$stronghold1", | |
"$stronghold2", | |
"$tempo", | |
"$satoshipay1", | |
"$satoshipay2" | |
] | |
[HISTORY.local] | |
get="cp /tmp/stellar-core/history/vs/{0} {1}" | |
mkdir="mkdir -p /tmp/stellar-core/history/vs/{0}" | |
[HISTORY.cache] | |
get="cp /opt/stellar/core/history-cache/{0} {1}" | |
mkdir="mkdir -p /opt/stellar/core/history-cache/" | |
[HISTORY.stellar] | |
get="curl http://history.stellar.org/{0} -o {1}" | |
[HISTORY.sdf1] | |
get="curl http://history.stellar.org/prd/core-live/core_live_001/{0} -o {1}" | |
[HISTORY.sdf2] | |
get="curl http://history.stellar.org/prd/core-live/core_live_002/{0} -o {1}" | |
[HISTORY.sdf3] | |
get="curl http://history.stellar.org/prd/core-live/core_live_003/{0} -o {1}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment