Where to look up current POS difficulty in ppcoin-qt ?
How often does POS difficulty (not POW difficulty) retargets ? The white paper only says it is adjusted continuously.
Where to look up current POS difficulty in ppcoin-qt ?
How often does POS difficulty (not POW difficulty) retargets ? The white paper only says it is adjusted continuously.
Via the RPC command “getdifficulty”.
But the difficulty is not exactly what is used internally. The calculation of difficulty from the internal “nBits” is here: https://github.com/ppcoin/ppcoin/blob/master/src/bitcoinrpc.cpp#L73-L89
After each block. The difficulty is calculated from the previous difficulty, the time between the last two blocks, and some constants.
It’s here: https://github.com/ppcoin/ppcoin/blob/master/src/main.cpp#L916-L923
This code handles both POS and POW.
Via the RPC command “getdifficulty”.[/quote]
Oops that is right. Why do I have the memory that the command only returns the POW difficulty… :-[
But the difficulty is not exactly what is used internally. The calculation of difficulty from the internal "nBits" is here: https://github.com/ppcoin/ppcoin/blob/master/src/bitcoinrpc.cpp#L73-L89
It is also explained here https://bitcointalk.org/index.php?topic=259725.0