Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TalDerei committed May 7, 2024
1 parent b482d64 commit 695cf94
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/view/src/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ use penumbra_tct as tct;
use penumbra_transaction::{
memo::MemoPlaintext,
plan::{ActionPlan, MemoPlan, TransactionPlan},
TransactionParameters,
ActionList
ActionList, TransactionParameters,
};

/// A planner for a [`TransactionPlan`] that can fill in the required spends and change outputs upon
Expand Down Expand Up @@ -473,6 +472,7 @@ impl<R: RngCore + CryptoRng> Planner<R> {
/// capital losses when possible, using cost basis information retained by the
/// view server.
fn prioritize_and_filter_spendable_notes(
&mut self,
records: Vec<SpendableNoteRecord>,
) -> Vec<SpendableNoteRecord> {
// Filter out zero valued notes.
Expand Down Expand Up @@ -536,8 +536,6 @@ impl<R: RngCore + CryptoRng> Planner<R> {
.await?;
notes_by_asset_id.insert(
required.asset_id,
// TODO: reorganize later, the important thing here is that this
// is separate from the Planner logic (will never be commonized)
self.prioritize_and_filter_spendable_notes(records),
);
}
Expand Down

0 comments on commit 695cf94

Please sign in to comment.