Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Oct 26, 2023
1 parent ebae19a commit f68f7fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tx-pool/src/component/orphan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ impl OrphanPool {
self.limit_size()
}

pub fn find_by_previous(&self, tx: &TransactionView) -> Vec<ProposalShortId> {
pub fn find_by_previous(&self, tx: &TransactionView) -> Vec<&ProposalShortId> {
tx.output_pts()
.iter()
.filter_map(|out_point| self.by_out_point.get(out_point).cloned())
.filter_map(|out_point| self.by_out_point.get(out_point))
.flatten()
.collect::<Vec<_>>()
}
Expand Down

0 comments on commit f68f7fd

Please sign in to comment.