diff --git a/rusk/src/lib/chain/rusk.rs b/rusk/src/lib/chain/rusk.rs index 0ae63b1e9a..f634842137 100644 --- a/rusk/src/lib/chain/rusk.rs +++ b/rusk/src/lib/chain/rusk.rs @@ -20,9 +20,7 @@ use dusk_consensus::config::{ validation_committee_quorum, validation_extra, RATIFICATION_COMMITTEE_CREDITS, VALIDATION_COMMITTEE_CREDITS, }; -use dusk_consensus::operations::{ - CallParams, VerificationOutput, VoterWithCredits, -}; +use dusk_consensus::operations::{CallParams, VerificationOutput, Voter}; use execution_core::bytecode::Bytecode; use execution_core::transfer::ContractDeploy; use execution_core::{ @@ -219,7 +217,7 @@ impl Rusk { generator: &BlsPublicKey, txs: &[Transaction], slashing: Vec, - voters: Option<&[VoterWithCredits]>, + voters: Option<&[Voter]>, ) -> Result<(Vec, VerificationOutput)> { let session = self.session(block_height, None)?; @@ -250,7 +248,7 @@ impl Rusk { txs: Vec, consistency_check: Option, slashing: Vec, - voters: Option<&[VoterWithCredits]>, + voters: Option<&[Voter]>, ) -> Result<(Vec, VerificationOutput)> { let session = self.session(block_height, None)?; @@ -439,7 +437,7 @@ fn accept( generator: &BlsPublicKey, txs: &[Transaction], slashing: Vec, - voters: Option<&[VoterWithCredits]>, + voters: Option<&[Voter]>, gas_per_deploy_byte: Option, ) -> Result<( Vec, diff --git a/rusk/src/lib/chain/vm.rs b/rusk/src/lib/chain/vm.rs index aa15ca1f7f..9714ca0cdf 100644 --- a/rusk/src/lib/chain/vm.rs +++ b/rusk/src/lib/chain/vm.rs @@ -9,9 +9,7 @@ mod query; use tracing::info; use dusk_bytes::DeserializableSlice; -use dusk_consensus::operations::{ - CallParams, VerificationOutput, VoterWithCredits, -}; +use dusk_consensus::operations::{CallParams, VerificationOutput, Voter}; use dusk_consensus::user::provisioners::Provisioners; use dusk_consensus::user::stake::Stake; use execution_core::{ @@ -46,7 +44,7 @@ impl VMExecution for Rusk { fn verify_state_transition( &self, blk: &Block, - voters: Option<&[VoterWithCredits]>, + voters: Option<&[Voter]>, ) -> anyhow::Result { info!("Received verify_state_transition request"); let generator = blk.header().generator_bls_pubkey; @@ -72,7 +70,7 @@ impl VMExecution for Rusk { fn accept( &self, blk: &Block, - voters: Option<&[VoterWithCredits]>, + voters: Option<&[Voter]>, ) -> anyhow::Result<(Vec, VerificationOutput)> { info!("Received accept request"); let generator = blk.header().generator_bls_pubkey;