veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
|
Definition at line 17 of file poprewards_calculator.hpp.
#include <poprewards_calculator.hpp>
Public Member Functions | |
virtual bool | getPopPayout (const AltBlockTree::hash_t &tip, PopPayouts &rewards, ValidationState &state)=0 |
Calculate POP rewards for miners. More... | |
|
pure virtual |
Rewards are calculated for the endorsed block which is PopPayoutDelay blocks behind the tip.
tip | last block of the active chain. Next block should contain POP payout calculated with this getPopPayout() call. | |
[out] | rewards | PopPayouts map with miner address as a key and reward amount as a value. |
[out] | state | validation state. |
Implemented in altintegration::DefaultPopRewardsCalculator.