From 452d96014abf14fe19128a80d70850fa4bae78cb Mon Sep 17 00:00:00 2001 From: Tal Derei Date: Mon, 1 Apr 2024 22:08:21 -0700 Subject: [PATCH] add delegator vote to planner --- crates/view/src/planner.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/view/src/planner.rs b/crates/view/src/planner.rs index 1659cdb322..289a4b3745 100644 --- a/crates/view/src/planner.rs +++ b/crates/view/src/planner.rs @@ -547,7 +547,8 @@ impl Planner { unbonded_amount, ) .into(); - self.action(vote); + + self.push(vote); self } @@ -686,7 +687,10 @@ impl Planner { // 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(