mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-13 02:54:24 +01:00
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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user