TARAXA
taraxa::SlashingManager Class Reference

#include <slashing_manager.hpp>

Collaboration diagram for taraxa::SlashingManager:

Public Member Functions

 SlashingManager (const FullNodeConfig &config, std::shared_ptr< final_chain::FinalChain > final_chain, std::shared_ptr< TransactionManager > trx_manager, std::shared_ptr< GasPricer > gas_pricer)
 
 SlashingManager (const SlashingManager &)=delete
 
 SlashingManager (SlashingManager &&)=delete
 
SlashingManageroperator= (const SlashingManager &)=delete
 
SlashingManageroperator= (SlashingManager &&)=delete
 
bool submitDoubleVotingProof (const std::shared_ptr< PbftVote > &vote_a, const std::shared_ptr< PbftVote > &vote_b)
 

Private Attributes

std::shared_ptr< final_chain::FinalChainfinal_chain_
 
std::shared_ptr< TransactionManagertrx_manager_
 
std::shared_ptr< GasPricergas_pricer_
 
ExpirationCache< dev::h256double_voting_proofs_
 
const FullNodeConfigkConfig
 
const addr_t kAddress
 
const secret_t kPrivateKey
 

Constructor & Destructor Documentation

◆ SlashingManager() [1/3]

taraxa::SlashingManager::SlashingManager ( const FullNodeConfig config,
std::shared_ptr< final_chain::FinalChain final_chain,
std::shared_ptr< TransactionManager trx_manager,
std::shared_ptr< GasPricer gas_pricer 
)

◆ SlashingManager() [2/3]

taraxa::SlashingManager::SlashingManager ( const SlashingManager )
delete

◆ SlashingManager() [3/3]

taraxa::SlashingManager::SlashingManager ( SlashingManager &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

SlashingManager& taraxa::SlashingManager::operator= ( const SlashingManager )
delete

◆ operator=() [2/2]

SlashingManager& taraxa::SlashingManager::operator= ( SlashingManager &&  )
delete

◆ submitDoubleVotingProof()

bool taraxa::SlashingManager::submitDoubleVotingProof ( const std::shared_ptr< PbftVote > &  vote_a,
const std::shared_ptr< PbftVote > &  vote_b 
)

Member Data Documentation

◆ double_voting_proofs_

ExpirationCache<dev::h256> taraxa::SlashingManager::double_voting_proofs_
private

◆ final_chain_

std::shared_ptr<final_chain::FinalChain> taraxa::SlashingManager::final_chain_
private

◆ gas_pricer_

std::shared_ptr<GasPricer> taraxa::SlashingManager::gas_pricer_
private

◆ kAddress

const addr_t taraxa::SlashingManager::kAddress
private

◆ kConfig

const FullNodeConfig& taraxa::SlashingManager::kConfig
private

◆ kPrivateKey

const secret_t taraxa::SlashingManager::kPrivateKey
private

◆ trx_manager_

std::shared_ptr<TransactionManager> taraxa::SlashingManager::trx_manager_
private

The documentation for this class was generated from the following files: