|
|
@ -14,9 +14,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
|
|
#include <boost/thread.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void ApplyStats(CCoinsStats &stats, CHashWriter& ss, const uint256& hash, const std::map<uint32_t, Coin>& outputs)
|
|
|
|
static void ApplyStats(CCoinsStats &stats, CHashWriter& ss, const uint256& hash, const std::map<uint32_t, Coin>& outputs)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
assert(!outputs.empty());
|
|
|
|
assert(!outputs.empty());
|
|
|
@ -51,7 +48,6 @@ bool GetUTXOStats(CCoinsView *view, CCoinsStats &stats)
|
|
|
|
uint256 prevkey;
|
|
|
|
uint256 prevkey;
|
|
|
|
std::map<uint32_t, Coin> outputs;
|
|
|
|
std::map<uint32_t, Coin> outputs;
|
|
|
|
while (pcursor->Valid()) {
|
|
|
|
while (pcursor->Valid()) {
|
|
|
|
boost::this_thread::interruption_point();
|
|
|
|
|
|
|
|
COutPoint key;
|
|
|
|
COutPoint key;
|
|
|
|
Coin coin;
|
|
|
|
Coin coin;
|
|
|
|
if (pcursor->GetKey(key) && pcursor->GetValue(coin)) {
|
|
|
|
if (pcursor->GetKey(key) && pcursor->GetValue(coin)) {
|
|
|
|