clboss/tests
Ken Sedgwick f6f7070da8
Some checks failed
Code Base Sanity Check / tests (push) Has been cancelled
Code Base Sanity Check / coverage (push) Has been cancelled
Code Base Sanity Check / build-clang (push) Has been cancelled
AmountSettingsHandler: enforce the Planner's channel size precondition (#147)
The ChannelCreator Planner asserts
min_channel + min_remaining <= max_channel at construction, where
min_remaining = 2 * min_channel + 20000 sats.  Option validation
only enforced max_channel >= 2 * min_channel, so a pair such as
min-channel=1000000 max-channel=2000000 passed startup and aborted
the plugin on the first channel-creation run (#147).  The old 2x
clamp never prevented the crash: any pair it adjusted still
violated the planner precondition.

AmountSettingsHandler now enforces the precondition directly.  On
conflict it keeps max-channel, which sets typical open size, and
lowers min-channel to the largest fitting value, logging a warning.
A max-channel too low for even the smallest permitted min-channel
is raised.

ChannelCreator::Manager also re-checks both planner preconditions
before constructing the Planner and skips the creation cycle with a
log line instead of aborting.  This covers the sibling assert
min_amount * 2 <= total, which fails when onchain funds change
between the decider's trigger and the creator's run (#137).
2026-08-11 10:48:26 -07:00
..
bitcoin Bitcoin/addr_to_scriptPubKey.cpp: Make a little more robust, add BIP173 test vectors. 2020-09-24 14:36:02 +08:00
boltz Boltz/Detail/match_lockscript.cpp: Function to check if the BOLTZ instance gave correct redeemscript. 2020-09-21 15:32:25 +08:00
boss AmountSettingsHandler: enforce the Planner's channel size precondition (#147) 2026-08-11 10:48:26 -07:00
dnsseed Add test cases for DNS seed parser crash on SOA records (#309) 2026-03-23 11:06:27 -07:00
ev tests: Cover more paths to try_schedule_cleanup 2026-01-21 11:40:43 -08:00
graph Graph/Dijkstra.hpp: Shortest-path-tree algorithm. 2020-10-02 12:10:52 +08:00
jsmn add Jsmn::Object::operator== 2024-09-25 13:23:04 -05:00
json Json/Out.hpp: JSON output. 2020-09-07 16:03:21 +08:00
ln ChannelCreator: prefer spliceable peers within the no-record tier 2026-08-04 11:02:22 -07:00
net Net/IPAddrOrOnion.cpp: Data type that could be either an IP address or onion hidden service. 2020-12-30 23:14:10 +00:00
ripemd160 tests/ripemd160/test_ripemd160.cpp: Check our understanding of endianness is correct. 2020-09-21 15:44:33 +08:00
s Ev/Io.hpp: Avoid copying objects, just move things around. 2020-09-14 09:12:46 +08:00
sha256 Sha256/HasherStream.cpp: std::ostream implementation of hasher. 2020-09-20 13:53:02 +08:00
sqlite3 Sqlite3*: Complete SQLITE3 support. 2020-09-12 15:29:03 +08:00
stats Stats/ReservoirSampler.hpp: Reservoir sampler implementation. 2020-10-01 16:51:59 +08:00
util Util::Str::group_digits -- readable msat/sat amounts in the xrebalance logs 2026-08-04 11:02:00 -07:00
test_uuid.cpp Uuid.cpp: Universally-unique identifiers. 2020-09-27 19:16:57 +08:00