Browse Source

wallet: no longer expose wallet_add_utxo function.

All users are now internal.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
paymod-03
Rusty Russell 4 years ago
committed by Christian Decker
parent
commit
e12defa7fb
  1. 10
      wallet/wallet.c
  2. 8
      wallet/wallet.h

10
wallet/wallet.c

@ -73,8 +73,14 @@ 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,
/**
* 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;

8
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.
*/

Loading…
Cancel
Save