mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 17:47:30 +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:
parent
28feb2eb7d
commit
d2dc93e3cb
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue