mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
onchaind: don't hand redundant commit_num to handle_unknown_commitment.
It's a global. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -3585,7 +3585,6 @@ static void update_ledger_unknown(const struct bitcoin_txid *txid,
|
|||||||
|
|
||||||
static void handle_unknown_commitment(const struct tx_parts *tx,
|
static void handle_unknown_commitment(const struct tx_parts *tx,
|
||||||
u32 tx_blockheight,
|
u32 tx_blockheight,
|
||||||
u64 commit_num,
|
|
||||||
const struct pubkey *possible_remote_per_commitment_point,
|
const struct pubkey *possible_remote_per_commitment_point,
|
||||||
const struct basepoints basepoints[NUM_SIDES],
|
const struct basepoints basepoints[NUM_SIDES],
|
||||||
const struct htlc_stub *htlcs,
|
const struct htlc_stub *htlcs,
|
||||||
@@ -3912,7 +3911,6 @@ int main(int argc, char *argv[])
|
|||||||
open_is_replay);
|
open_is_replay);
|
||||||
} else {
|
} else {
|
||||||
handle_unknown_commitment(tx, tx_blockheight,
|
handle_unknown_commitment(tx, tx_blockheight,
|
||||||
commit_num,
|
|
||||||
possible_remote_per_commitment_point,
|
possible_remote_per_commitment_point,
|
||||||
basepoints,
|
basepoints,
|
||||||
htlcs,
|
htlcs,
|
||||||
|
|||||||
Reference in New Issue
Block a user