core-lightning/plugins/bkpr/test
niftynei 0617690981 coin_mvt/bkpr: add "stealable" tag to stealable outputs
If we expect further events for an onchain output (because we can steal
it away from the 'external'/rightful owner), we mark them.

This prevents us from marking a channel as 'onchain-resolved' before
all events that we're interested in have actually hit the chain.

Case that this matters:
Peer publishes a (cheating) unilateral close and a timeout htlc (which
we can steal).
We then steal the timeout htlc.

W/o the stealable flag, we'd have marked the channel as resolved when
the peer published the timeout htlc, which is incorrect as we're still
waiting for the resolution of that timeout htlc (b/c we *can* steal it).
2022-07-28 12:08:18 +09:30
..
Makefile bkpr: tests for db crud 2022-07-28 12:08:18 +09:30
run-bkpr_db.c bkpr: properly account for onchain fees for channel closes 2022-07-28 12:08:18 +09:30
run-recorder.c coin_mvt/bkpr: add "stealable" tag to stealable outputs 2022-07-28 12:08:18 +09:30
test_utils.h bkpr-tests: first test of plugin bkpr database 2022-07-28 12:08:18 +09:30