Browse Source

wallet: Add a struct to represent an onchaind transaction

This will be used to replay transactions that were witnessed in the blockchain
during startup, so that onchaind can be recreate its state.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
ppa-0.6.1
Christian Decker 7 years ago
parent
commit
d2dc93e3cb
  1. 10
      wallet/wallet.h

10
wallet/wallet.h

@ -128,6 +128,16 @@ struct channel_stats {
u64 out_msatoshi_offered, out_msatoshi_fulfilled;
};
struct onchaindtx {
u32 channel_id;
int type;
u32 blockheight;
struct bitcoin_txid txid;
struct bitcoin_tx *tx;
u32 input_num;
u32 depth;
};
/**
* wallet_new - Constructor for a new sqlite3 based wallet
*

Loading…
Cancel
Save