Implement stake kernel mining as a separate function
authorCryptoManiac <balthazar@yandex.ru>
Tue, 19 Aug 2014 18:41:31 +0000 (22:41 +0400)
committerCryptoManiac <balthazar@yandex.ru>
Tue, 19 Aug 2014 18:41:31 +0000 (22:41 +0400)
commit642beb691d0ea6dfb101ff1bbbfdfc4f8d0289c0
treed0cc89982e95d109a385a20b533fc3b234ecb27a
parent846206ee84302163a6dba48b12886f52948b42dc
Implement stake kernel mining as a separate function

This change allows us to reduce amount of intermediatte operations, such as header hashing or modifier calculation. As the result, we've got ~20x drop of CPU load and 60x boost of kernel scanning speed.
src/kernel.cpp
src/kernel.h
src/main.cpp
src/wallet.cpp