https://github.com/bobg/scp example scp in go. Will be a good reference
Clone stellar-core
locally.
$ git clone https://github.com/stellar/stellar-core
Follow instructions on how to install stellar-core
https://github.com/stellar/stellar-core/blob/master/INSTALL.md
In standalone-scp/Makefile
, set CORE_DIR?=
to the location of your built stellar-core
ex: in my Makefile
I have CORE_DIR?=$(HOME)/dev/cbdc/stellar-core
Run the following in standalone-scp/
:
$ make
If you make changes to any files or want to re-compile:
$ make clean
will remove any .o
& .exe
files
$ ./main.exe
This is the input file that defines the nodes and their trusted slices.
Each nodes quorum slices must have the node in their quorum slice.
I.e.
a
b, c
b,
a, c
c
a, b
Input file needs to be in the root folder of this repo. Format is as follows:
[node name]
[names of trusted nodes to be added to node's slice. Comma separated]
[empty line]
[node name]
[names of trusted nodes to be added to node's slice. Comma separated]
[empty line]
etc.