Skip to content

Commit

Permalink
Add option to retain sat index for spent outputs (#2999)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Jan 15, 2024
1 parent 750f232 commit 41d9474
Show file tree
Hide file tree
Showing 17 changed files with 568 additions and 282 deletions.
7 changes: 7 additions & 0 deletions src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ impl Chain {
bitcoin::blockdata::constants::genesis_block(self.network())
}

pub(crate) fn genesis_coinbase_outpoint(self) -> OutPoint {
OutPoint {
txid: self.genesis_block().coinbase().unwrap().txid(),
vout: 0,
}
}

pub(crate) fn address_from_script(
self,
script: &Script,
Expand Down
Loading

0 comments on commit 41d9474

Please sign in to comment.