From d2dc93e3cb51c0d2e2b411cb2e4b883064080a26 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 3 Apr 2018 16:45:06 +0200 Subject: [PATCH] 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 --- wallet/wallet.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wallet/wallet.h b/wallet/wallet.h index 0e41591f7..d07d734cb 100644 --- a/wallet/wallet.h +++ b/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 *