wallet: switch over to withdraw in module, remove lots of unused code.

This removes the reservation cleanup at startup, too, now they're all
using 'reserved_til'.

This changes test_withdraw, since it asserted that outputs were marked
spent as soon as we broadcast a transaction: now they're reserved until
it's mined.  Similarly, test_addfunds_from_block assumed we'd see funds
as soon as we broadcast the tx.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: JSON-RPC: `withdraw` now randomizes input and output order, not BIP69.
This commit is contained in:
Rusty Russell
2020-08-28 13:26:32 +09:30
parent 7a93363b0b
commit 83298c030a
20 changed files with 65 additions and 1012 deletions

View File

@@ -15,7 +15,6 @@
#include <common/penalty_base.h>
#include <common/per_peer_state.h>
#include <common/utils.h>
#include <common/wallet_tx.h>
#include <common/wire_error.h>
#include <connectd/connectd_wiregen.h>
#include <errno.h>