Skip to content

Commit

Permalink
Rename the chain transaction IDs method
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Apr 14, 2022
1 parent 287aa80 commit feb498a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion zebra-state/src/service/non_finalized_state/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ impl Chain {
/// Since address transactions are only appended by blocks,
/// and the finalized state query reads them in order,
/// it is impossible to get inconsistent transactions for a single address.
pub fn partial_transparent_transaction_ids(
pub fn partial_transparent_tx_ids(
&self,
addresses: &HashSet<transparent::Address>,
) -> BTreeMap<TransactionLocation, transaction::Hash> {
Expand Down
6 changes: 1 addition & 5 deletions zebra-state/src/service/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,7 @@ where

let chain_tx_ids = chain
.as_ref()
.map(|chain| {
chain
.as_ref()
.partial_transparent_transaction_ids(addresses)
})
.map(|chain| chain.as_ref().partial_transparent_tx_ids(addresses))
.unwrap_or_default();

// First try the in-memory chain, then the disk database
Expand Down

0 comments on commit feb498a

Please sign in to comment.