Files
palladum-lightning/tests/plugins/compacter-slow.sh
Rusty Russell acb8a8cc15 gossipd: dev-compact-gossip-store to manually invoke compaction.
And tests!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2026-02-16 17:23:33 +10:30

12 lines
326 B
Bash
Executable File

#! /bin/sh -e
# This pretends to be lightning_gossip_compactd, but waits until the file "compactd-continue"
# exists. This lets us test race conditions.
if [ x"$1" != x"--version" ]; then
while [ ! -f "compactd-continue" ]; do
sleep 1
done
fi
exec "$(dirname "$0")"/../../lightningd/lightning_gossip_compactd "$@"