Skip to content

Commit

Permalink
update with the latest dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed Oct 14, 2021
1 parent 9f5ada0 commit ed87a94
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 33 deletions.
70 changes: 44 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/recovery/tally.rs
Expand Up @@ -604,12 +604,12 @@ mod test {
use chain_impl_mockchain::chaintypes::ConsensusType;
use chain_impl_mockchain::vote::Choice;
use chain_impl_mockchain::vote::Tally;
use jormungandr_integration_tests::common::jormungandr::ConfigurationBuilder;
use jormungandr_lib::interfaces::load_persistent_fragments_logs_from_folder_path;
use jormungandr_lib::interfaces::KesUpdateSpeed;
use jormungandr_lib::interfaces::PersistentFragmentLog;
use jormungandr_lib::time::SecondsSinceUnixEpoch;
use jormungandr_testing_utils::testing::fragments::write_into_persistent_log;
use jormungandr_testing_utils::testing::jormungandr::ConfigurationBuilder;
use jormungandr_testing_utils::testing::vote_plan_cert;
use jormungandr_testing_utils::testing::VotePlanBuilder;
use jormungandr_testing_utils::wallet::Wallet as TestWallet;
Expand Down
7 changes: 4 additions & 3 deletions tests/tally/generator.rs
Expand Up @@ -69,7 +69,7 @@ impl VoteRoundGenerator {
);
}

let block0_hash = config.to_block().header.id().into();
let block0_hash = config.to_block().header().id().into();
Self {
block0: config,
block0_hash,
Expand Down Expand Up @@ -172,7 +172,7 @@ impl VoteRoundGenerator {
.map(|member| member.public_key())
.collect::<Vec<_>>();

let tmp_ledger = Ledger::new(block0.header.id(), block0.fragments()).unwrap();
let tmp_ledger = Ledger::new(block0.header().id(), block0.fragments()).unwrap();
let stake_control = StakeControl::new_with(tmp_ledger.accounts(), &utxo::Ledger::new());
let table = chain_vote::TallyOptimizationTable::generate(stake_control.assigned().into());

Expand Down Expand Up @@ -230,7 +230,8 @@ impl VoteRoundGenerator {
}
})
.collect::<Vec<_>>(),
);
)
.unwrap();

manager = manager
.finalize_private_tally(&decrypted_tally, &Default::default(), |_| ())
Expand Down
6 changes: 3 additions & 3 deletions tests/tally/main.rs
Expand Up @@ -404,7 +404,7 @@ fn votes_outside_voting_phase() {
committee_wallet.update_counter(0);
let early_tally_fragment = committee_wallet
.issue_vote_tally_cert(
&generator.block0().header.id().into(),
&generator.block0().header().id().into(),
&generator
.block0_config()
.blockchain_configuration
Expand Down Expand Up @@ -483,7 +483,7 @@ fn transaction_transfer() {
// transfer all funds from the first wallet to the second
let transaction = (&mut wallets[0])
.transaction_to(
&generator.block0().header.id().into(),
&generator.block0().header().id().into(),
&generator
.block0_config()
.blockchain_configuration
Expand Down Expand Up @@ -593,7 +593,7 @@ fn cast_vote(
) -> Fragment {
wallet
.issue_vote_cast_cert(
&generator.block0().header.id().into(),
&generator.block0().header().id().into(),
&generator
.block0_config()
.blockchain_configuration
Expand Down

0 comments on commit ed87a94

Please sign in to comment.