Skip to content

Commit

Permalink
Add option to retain sat index entries of spent outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jan 12, 2024
1 parent bf7ad35 commit 9f55765
Show file tree
Hide file tree
Showing 15 changed files with 332 additions and 202 deletions.
9 changes: 9 additions & 0 deletions src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ impl Chain {
bitcoin::blockdata::constants::genesis_block(self.network())
}

// todo: do I need this?
#[allow(unused)]
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 9f55765

Please sign in to comment.