TARAXA
|
#include <slashing_manager.hpp>
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 | |
SlashingManager & | operator= (const SlashingManager &)=delete |
SlashingManager & | operator= (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::FinalChain > | final_chain_ |
std::shared_ptr< TransactionManager > | trx_manager_ |
std::shared_ptr< GasPricer > | gas_pricer_ |
ExpirationCache< dev::h256 > | double_voting_proofs_ |
const FullNodeConfig & | kConfig |
const addr_t | kAddress |
const secret_t | kPrivateKey |
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 | ||
) |
|
delete |
|
delete |
|
delete |
|
delete |
bool taraxa::SlashingManager::submitDoubleVotingProof | ( | const std::shared_ptr< PbftVote > & | vote_a, |
const std::shared_ptr< PbftVote > & | vote_b | ||
) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |