Skip to content

Commit

Permalink
Add lock time
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Sep 9, 2024
1 parent bbbe25d commit c8cfcd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lending/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use Bitcoin::TX;
use Bitcoin::TXInput;
use Bitcoin::TXOutput;
use Bitcoin::Script;
use bitcoin::Set_lock_time;
use lightning::TX;

impl TX {
Expand Down Expand Up @@ -38,11 +39,14 @@ pub fn add_input(&mut self, input: TXInput) {
pub fn get_output(&self, index: usize) -> &TXOutput {
&self.outputs[index]
}
pub fn set_lock_time(&mut self, lock_time: u32) {
self.lock_time = lock_time;
}
impl lightning::TX for TX {
fn add_input(&mut self, input: TXInput) {
self.inputs.push(input);
}
fn add_output(&mut self, output: TXOutput) {
self.outputs.push(output);
}
}
}

0 comments on commit c8cfcd6

Please sign in to comment.