Skip to content

Commit

Permalink
add delegator vote to planner
Browse files Browse the repository at this point in the history
  • Loading branch information
TalDerei committed Apr 2, 2024
1 parent e14a6c1 commit 452d960
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/view/src/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,8 @@ impl<R: RngCore + CryptoRng> Planner<R> {
unbonded_amount,
)
.into();
self.action(vote);

self.push(vote);
self
}

Expand Down Expand Up @@ -686,7 +687,10 @@ impl<R: RngCore + CryptoRng> Planner<R> {
// result in change sent back to us). This unlinks nullifiers used for voting on
// multiple non-overlapping proposals, increasing privacy.
if record.height_spent.is_none() {
self.spend(record.note.clone(), record.position);
self.push(
SpendPlan::new(&mut OsRng, record.clone().note, record.clone().position)
.into(),
);
}

self.delegator_vote_precise(
Expand Down

0 comments on commit 452d960

Please sign in to comment.