Skip to content

Commit

Permalink
rusk: rename VoterWithCredits to Voter
Browse files Browse the repository at this point in the history
  • Loading branch information
fed-franz committed Jul 23, 2024
1 parent 47d8718 commit 9a138a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
10 changes: 4 additions & 6 deletions rusk/src/lib/chain/rusk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -219,7 +217,7 @@ impl Rusk {
generator: &BlsPublicKey,
txs: &[Transaction],
slashing: Vec<Slash>,
voters: Option<&[VoterWithCredits]>,
voters: Option<&[Voter]>,
) -> Result<(Vec<SpentTransaction>, VerificationOutput)> {
let session = self.session(block_height, None)?;

Expand Down Expand Up @@ -250,7 +248,7 @@ impl Rusk {
txs: Vec<Transaction>,
consistency_check: Option<VerificationOutput>,
slashing: Vec<Slash>,
voters: Option<&[VoterWithCredits]>,
voters: Option<&[Voter]>,
) -> Result<(Vec<SpentTransaction>, VerificationOutput)> {
let session = self.session(block_height, None)?;

Expand Down Expand Up @@ -439,7 +437,7 @@ fn accept(
generator: &BlsPublicKey,
txs: &[Transaction],
slashing: Vec<Slash>,
voters: Option<&[VoterWithCredits]>,
voters: Option<&[Voter]>,
gas_per_deploy_byte: Option<u64>,
) -> Result<(
Vec<SpentTransaction>,
Expand Down
8 changes: 3 additions & 5 deletions rusk/src/lib/chain/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -46,7 +44,7 @@ impl VMExecution for Rusk {
fn verify_state_transition(
&self,
blk: &Block,
voters: Option<&[VoterWithCredits]>,
voters: Option<&[Voter]>,
) -> anyhow::Result<VerificationOutput> {
info!("Received verify_state_transition request");
let generator = blk.header().generator_bls_pubkey;
Expand All @@ -72,7 +70,7 @@ impl VMExecution for Rusk {
fn accept(
&self,
blk: &Block,
voters: Option<&[VoterWithCredits]>,
voters: Option<&[Voter]>,
) -> anyhow::Result<(Vec<SpentTransaction>, VerificationOutput)> {
info!("Received accept request");
let generator = blk.header().generator_bls_pubkey;
Expand Down

0 comments on commit 9a138a5

Please sign in to comment.