mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-04-12 14:13:07 +00:00
30 lines
1.2 KiB
Bash
Executable File
30 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
export CFG_FILE_PATH="/config.yaml" \
|
|
CFG_SERVER_ADDR="http://cfgsync:4400" \
|
|
CFG_HOST_IP=$(hostname -i) \
|
|
CFG_HOST_IDENTIFIER="validator-$(hostname -i)" \
|
|
LOG_LEVEL="INFO" \
|
|
POL_PROOF_DEV_MODE=true
|
|
|
|
/usr/bin/logos-blockchain-cfgsync-client
|
|
|
|
# Download deployment settings generated by cfgsync
|
|
curl -sf "${CFG_SERVER_ADDR}/deployment-settings" -o /deployment-settings.yaml
|
|
|
|
# Single-node test setup: bump slot_activation_coeff from 1/10 to 1/2 so blocks
|
|
# (and LIB) advance ~5x faster, keeping the indexer integration test within budget.
|
|
# Safe with 1 node since there are no reorgs.
|
|
# Range-based sed: within the 4 lines after `slot_activation_coeff:`, rewrite any
|
|
# `denominator: <num>` to `denominator: 2` regardless of field order or spacing.
|
|
sed -i '/slot_activation_coeff:/,+4 s/denominator: [0-9]\+/denominator: 2/' /deployment-settings.yaml
|
|
|
|
# Lower security_param so finalization (LIB) lag is shorter — the indexer only
|
|
# sees finalized blocks, so a smaller security_param makes inscriptions visible
|
|
# to the indexer much sooner.
|
|
sed -i 's/security_param: [0-9]\+/security_param: 10/' /deployment-settings.yaml
|
|
|
|
exec /usr/bin/logos-blockchain-node /config.yaml --deployment /deployment-settings.yaml
|