mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 11:13:23 -03:00
rpc: Remove unused boost::this_thread::interruption_point
This commit is contained in:
parent
22e7eea629
commit
fa5facd3e7
2 changed files with 0 additions and 7 deletions
|
@ -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)) {
|
||||||
|
|
|
@ -38,8 +38,6 @@
|
||||||
|
|
||||||
#include <univalue.h>
|
#include <univalue.h>
|
||||||
|
|
||||||
#include <boost/thread/thread.hpp> // boost::thread::interrupt
|
|
||||||
|
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
@ -1975,7 +1973,6 @@ bool FindScriptPubKey(std::atomic<int>& scan_progress, const std::atomic<bool>&
|
||||||
Coin coin;
|
Coin coin;
|
||||||
if (!cursor->GetKey(key) || !cursor->GetValue(coin)) return false;
|
if (!cursor->GetKey(key) || !cursor->GetValue(coin)) return false;
|
||||||
if (++count % 8192 == 0) {
|
if (++count % 8192 == 0) {
|
||||||
boost::this_thread::interruption_point();
|
|
||||||
if (should_abort) {
|
if (should_abort) {
|
||||||
// allow to abort the scan via the abort reference
|
// allow to abort the scan via the abort reference
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue