Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
| Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | struct StakingReward { | ||||
| // Ordered list of acceptable winners, only the first is used for mining | // Ordered list of acceptable winners, only the first is used for mining | ||||
| std::vector<std::pair<ProofId, CScript>> winners; | std::vector<std::pair<ProofId, CScript>> winners; | ||||
| }; | }; | ||||
| mutable Mutex cs_stakingRewards; | mutable Mutex cs_stakingRewards; | ||||
| std::unordered_map<BlockHash, StakingReward, SaltedUint256Hasher> | std::unordered_map<BlockHash, StakingReward, SaltedUint256Hasher> | ||||
| stakingRewards GUARDED_BY(cs_stakingRewards); | stakingRewards GUARDED_BY(cs_stakingRewards); | ||||
| const bool m_preConsensus{false}; | |||||
| Processor(Config avaconfig, interfaces::Chain &chain, CConnman *connmanIn, | Processor(Config avaconfig, interfaces::Chain &chain, CConnman *connmanIn, | ||||
| ChainstateManager &chainman, CTxMemPool *mempoolIn, | ChainstateManager &chainman, CTxMemPool *mempoolIn, | ||||
| CScheduler &scheduler, std::unique_ptr<PeerData> peerDataIn, | CScheduler &scheduler, std::unique_ptr<PeerData> peerDataIn, | ||||
| CKey sessionKeyIn, uint32_t minQuorumTotalScoreIn, | CKey sessionKeyIn, uint32_t minQuorumTotalScoreIn, | ||||
| double minQuorumConnectedScoreRatioIn, | double minQuorumConnectedScoreRatioIn, | ||||
| int64_t minAvaproofsNodeCountIn, uint32_t staleVoteThresholdIn, | int64_t minAvaproofsNodeCountIn, uint32_t staleVoteThresholdIn, | ||||
| uint32_t staleVoteFactorIn, Amount stakeUtxoDustThresholdIn, | uint32_t staleVoteFactorIn, Amount stakeUtxoDustThresholdIn, | ||||
| bool preConsensus); | bool preConsensus); | ||||
| public: | public: | ||||
| const bool m_preConsensus{false}; | |||||
| ~Processor(); | ~Processor(); | ||||
| static std::unique_ptr<Processor> | static std::unique_ptr<Processor> | ||||
| MakeProcessor(const ArgsManager &argsman, interfaces::Chain &chain, | MakeProcessor(const ArgsManager &argsman, interfaces::Chain &chain, | ||||
| CConnman *connman, ChainstateManager &chainman, | CConnman *connman, ChainstateManager &chainman, | ||||
| CTxMemPool *mempoolIn, CScheduler &scheduler, | CTxMemPool *mempoolIn, CScheduler &scheduler, | ||||
| bilingual_str &error); | bilingual_str &error); | ||||
| ▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines | |||||