Skip to content

Commit fa5facd

Browse files
author
MarcoFalke
committed
rpc: Remove unused boost::this_thread::interruption_point
1 parent 22e7eea commit fa5facd

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/node/coinstats.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
#include <map>
1616

17-
#include <boost/thread.hpp>
18-
19-
2017
static void ApplyStats(CCoinsStats &stats, CHashWriter& ss, const uint256& hash, const std::map<uint32_t, Coin>& outputs)
2118
{
2219
assert(!outputs.empty());
@@ -51,7 +48,6 @@ bool GetUTXOStats(CCoinsView *view, CCoinsStats &stats)
5148
uint256 prevkey;
5249
std::map<uint32_t, Coin> outputs;
5350
while (pcursor->Valid()) {
54-
boost::this_thread::interruption_point();
5551
COutPoint key;
5652
Coin coin;
5753
if (pcursor->GetKey(key) && pcursor->GetValue(coin)) {

src/rpc/blockchain.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838

3939
#include <univalue.h>
4040

41-
#include <boost/thread/thread.hpp> // boost::thread::interrupt
42-
4341
#include <condition_variable>
4442
#include <memory>
4543
#include <mutex>
@@ -1975,7 +1973,6 @@ bool FindScriptPubKey(std::atomic<int>& scan_progress, const std::atomic<bool>&
19751973
Coin coin;
19761974
if (!cursor->GetKey(key) || !cursor->GetValue(coin)) return false;
19771975
if (++count % 8192 == 0) {
1978-
boost::this_thread::interruption_point();
19791976
if (should_abort) {
19801977
// allow to abort the scan via the abort reference
19811978
return false;

0 commit comments

Comments
 (0)