Replace kernel scanning function with more usable implementation.
authorMASM fan <masmfan@gmail.com>
Tue, 7 Apr 2015 21:30:15 +0000 (14:30 -0700)
committerMASM fan <masmfan@gmail.com>
Tue, 7 Apr 2015 21:30:15 +0000 (14:30 -0700)
commit2bc0f8cca250b65426f9fecf44d176dc1698f399
tree1e9983ef157f6b89652041d141dbefaa4b04832e
parent7b6e43477ddbf20ed4eacbed496eb578bb081baf
Replace kernel scanning function with more usable implementation.

* Move midstate calculation to separate function;
* Don't operate with transaction index and other low level data inside the scanning function.

TODO:

* Automatic kernel midstate precalculation for all unspent inputs;
* Multi-threaded scanning.
src/kernel.cpp
src/kernel.h
src/rpcmining.cpp