From e12defa7fbe641ab5b336c6c20bbccfaa2819be0 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 6 Jul 2020 14:58:43 +0930 Subject: [PATCH] wallet: no longer expose wallet_add_utxo function. All users are now internal. Signed-off-by: Rusty Russell --- wallet/wallet.c | 12 +++++++++--- wallet/wallet.h | 8 -------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/wallet/wallet.c b/wallet/wallet.c index 326ebc1da..3fdc8ee9d 100644 --- a/wallet/wallet.c +++ b/wallet/wallet.c @@ -73,9 +73,15 @@ struct wallet *wallet_new(struct lightningd *ld, struct timers *timers) return wallet; } -/* This can fail if we've already seen UTXO. */ -bool wallet_add_utxo(struct wallet *w, struct utxo *utxo, - enum wallet_output_type type) +/** + * wallet_add_utxo - Register an UTXO which we (partially) own + * + * Add an UTXO to the set of outputs we care about. + * + * This can fail if we've already seen UTXO. + */ +static bool wallet_add_utxo(struct wallet *w, struct utxo *utxo, + enum wallet_output_type type) { struct db_stmt *stmt; diff --git a/wallet/wallet.h b/wallet/wallet.h index 3eef562a9..19ef4fe58 100644 --- a/wallet/wallet.h +++ b/wallet/wallet.h @@ -333,14 +333,6 @@ struct wallet_transaction { */ struct wallet *wallet_new(struct lightningd *ld, struct timers *timers); -/** - * wallet_add_utxo - Register an UTXO which we (partially) own - * - * Add an UTXO to the set of outputs we care about. - */ -bool wallet_add_utxo(struct wallet *w, struct utxo *utxo, - enum wallet_output_type type); - /** * wallet_confirm_tx - Confirm a tx which contains a UTXO. */