Skip to content

Conversation

@dkijania
Copy link
Contributor

@dkijania dkijania commented Mar 2, 2022

Looks like my issue with compilation on windows is resolved. Updating jormungandr and chain-wallet-libs to newest master

@dkijania dkijania requested a review from ecioppettini March 2, 2022 20:19
@dkijania dkijania self-assigned this Mar 2, 2022
let stake_control = StakeControl::new_with(tmp_ledger.accounts(), &utxo::Ledger::new());
let table = chain_vote::TallyOptimizationTable::generate(stake_control.assigned().into());
let table = chain_vote::TallyOptimizationTable::generate(
NonZeroU64::new(stake_control.assigned().into()).unwrap(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is probably not correct, but I'm not sure exactly what is the right thing to do. I imagine we may want to use batch_decrypt here too.

This may work nonetheless if the native stake is bigger than the tokens though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to change to batch_decrypt, but keep recieving CannotTallyVotes { source: InvalidDecryption }' in the test. I think this change exceeds my knowledge

@dkijania dkijania merged commit 2a0c355 into main Mar 7, 2022
@dkijania dkijania deleted the update_chain_wallet_libs branch March 7, 2022 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants