GetLastStakeModifier function

From Peercoin Wiki
Jump to: navigation, search

Source code

The GetLastStakeModifier function code can be found in the kernel.cpp file (v0.4.0ppc).


Get the last stake modifier and its generation time from a given block



Name Type Description
pindex const CBlockIndex* The block to start searching from
nStakeModifier uint64& The found stake modifier
nModifierTime int64& The time of the found stake modifier block

Return value

Type Description
bool true if last stake modifier was successfully found, otherwise false


What is the block index GeneratedStakeModifier method used for?
Checks that the BLOCK_STAKE_MODIFIER flag is set for this block index and so can be used as stake modifier

Feel free to add your own questions in this FAQ