Skip to content

Commit

Permalink
Demonstrate complete_tx does something unexpected
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed May 11, 2024
1 parent f38a381 commit ea461f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ckb/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1982,8 +1982,8 @@ impl ChannelActorState {

for local in [true, false] {
dbg!("Before completed tx: {:?}", &tx);
let tx = context.complete_tx(tx.clone());
dbg!("After completed tx: {:?}", &tx);
let _tx = context.complete_tx(tx.clone());
dbg!("After completed tx: {:?}", &_tx);

// Use the second output as an input to the new transaction.
let commitment_out_point = &tx.output_pts()[1];
Expand Down

0 comments on commit ea461f5

Please sign in to comment.