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>
This commit is contained in:
Christian Decker 2018-04-03 16:45:06 +02:00
parent 28feb2eb7d
commit d2dc93e3cb

View file

@ -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
*