Service responsible for load BoltDB files from LND nodes with graph data and convert to LevelDB structures and upload to GCP Bucket to be read by SimpleCoin Wallet later.
| Order | ID | Name | Description |
|---|---|---|---|
| 1. | startnode | Start Node | Starts the internal LND node and unlock it to update the graph data |
| 2. | syncchecker | Sync Checker | Checks if the internal LND node is sync to chain and graph data |
| 3. | stopnode | Stop Node | Stops the node which forces the node to write the graph data on disk |
| 4. | dirs | Dirs | Prepare the directories to next routines |
| 5. | b2b | B2B | Fetches the Bolt db only neededed buckets |
| 6. | b2l | B2L | Transforms the Bolt db into Level db data |
| 7. | zipper | Zipper | Compacts the Level db data |
| 8. | uploader | Uploader | Uploads the zip file to GCP bucket |
| 9. | startnode | Start Node | Starts again the internal node for another cycle after the DELAY timeout |
There are two ways to configure this project environment variables or config.yaml, the first way is the prefered one.
| Variable | Description | Default |
|---|---|---|
DELAY | Delay before run all routines again (seconds) | 3600 seconds |
DATADIR | The .lnd/data directory | /root/.lnd/data |
BUCKET_NAME | Name of the bucket on GCP | gcs-eu-channel-preload-service |
LND_NETWORK | Name of the BTC network to connect | regtest |
LND_PASSWORD | Password for the internal LND Wallet | password |
LND_PEER | Peer on another LND node to connect (required) | |
LND_PARAMS | Params to pass to lnd binary on run | |
HEALTH_CHECK_PORT | Health check port for HTTP route /health | 3000 |
ROUTINES | Select the available routines to run | startnode,syncchecker,stopnode,dirs,b2b,b2l,zipper,uploader |
RUN_FOREVER | Define if the routines will cycle or not | true |
The internal LND node on this image never holds any sats at all it is just a graph channel collector which passively reads the nearby nodes and builds graph channels database to be used later
Content type
Image
Digest
Size
25.6 MB
Last updated
over 5 years ago
docker pull simplecoin/channel-preload-service