Skip to content

Commit

Permalink
Remove time_tx from the inputs of operator_challenge_nack_tx (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
ozankaymak authored and ceyhunsen committed Jan 16, 2025
1 parent 78600f7 commit ea7ddaa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion core/src/builder/sighash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ pub fn create_nofn_sighash_stream(
let mut operator_challenge_nack_txhandler =
builder::transaction::create_operator_challenge_nack_txhandler(
&watchtower_challenge_txhandler,
&time_txhandler,
&kickoff_txhandler
);
yield convert_tx_to_script_spend(
Expand Down
8 changes: 0 additions & 8 deletions core/src/builder/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,6 @@ pub fn create_watchtower_challenge_txhandler(

pub fn create_operator_challenge_nack_txhandler(
watchtower_challenge_txhandler: &TxHandler,
time_tx1_txhandler: &TxHandler,
kickoff_txhandler: &TxHandler,
) -> TxHandler {
let tx_ins = create_tx_ins(vec![
Expand All @@ -582,10 +581,6 @@ pub fn create_operator_challenge_nack_txhandler(
txid: kickoff_txhandler.txid,
vout: 2,
},
OutPoint {
txid: time_tx1_txhandler.txid,
vout: 0,
},
]);
// let tx_outs = vec![builder::script::anyone_can_spend_txout()];
let tx_outs = vec![builder::script::anchor_output()];
Expand All @@ -597,17 +592,14 @@ pub fn create_operator_challenge_nack_txhandler(
prevouts: vec![
watchtower_challenge_txhandler.tx.output[0].clone(),
kickoff_txhandler.tx.output[2].clone(),
time_tx1_txhandler.tx.output[0].clone(),
],
prev_scripts: vec![
watchtower_challenge_txhandler.out_scripts[0].clone(),
kickoff_txhandler.out_scripts[2].clone(),
time_tx1_txhandler.out_scripts[0].clone(),
],
prev_taproot_spend_infos: vec![
watchtower_challenge_txhandler.out_taproot_spend_infos[0].clone(),
kickoff_txhandler.out_taproot_spend_infos[2].clone(),
time_tx1_txhandler.out_taproot_spend_infos[0].clone(),
],
out_scripts: vec![vec![]],
out_taproot_spend_infos: vec![None],
Expand Down

0 comments on commit ea7ddaa

Please sign in to comment.