Run a Smart Vault with the Full Blockchain

If you would like your Smart Vault instance to run with a local blockchain synchronized with the blockchain network, you can do this with the following commands.
The following example is to synchronize the Smart Vault with the Sirius Test Network. To synchronize with Lightstreams' mainnet replace the parameter --network=sirius with --network=mainnet for each command.

Initialize the node

leth init --nodeid=1 --network=sirius

Start the node

leth run --nodeid=1 --network=sirius --https
It will take some time (hours) to synchronize with the blockchain as each block needs to be downloaded and validated.
To find the current state of the Sirius test network, open the Sirius Block Explorer to see how many blocks are needed for you local node be fully synchronized.
The "LAST BLOCK" shows the latest block number.

Creating a Second Node without Synchronizing

Smart Vault is all about peer-to-peer content sharing. If you are interested in Smart Vault, sooner or later you will want to share a file between two nodes. Once you have a node fully synchronized to the blockchain network, it is not necessary for your computer to revalidate all the blocks again. Instead, the following is a quick convenient way to setup a second distinct node on the same computer for testing the peer-to-peer behaviour between Smart Vault nodes.
Ensure stop node 1 by pressing Ctrl+C.
Initialize the second node:
leth init --nodeid=2 --network=sirius
Copy the database from node 1:
cp -rf ~/.lightstreams_1/sirius/consensus/data ~/.lightstreams_2/sirius/consensus
cp -rf ~/.lightstreams_1/sirius/database/chaindata ~/.lightstreams_2/sirius/database/
Now run both nodes:
leth run --nodeid=1 --network=sirius --https
leth run --nodeid=2 --network=sirius --https