aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2019-03-20 15:26:21 -0700
committerMarcoFalke <[email protected]>2019-03-28 18:09:05 -0400
commit50c56f2fcf00385dbe8f91588af3ee1a89a9d2d0 (patch)
tree44cf9d89944d1bedaa647edbb4fb8a086b4e98b2 /src/net.h
parent[MOVEONLY] Move processing of orphan queue to ProcessOrphanTx (diff)
downloaddiscoin-50c56f2fcf00385dbe8f91588af3ee1a89a9d2d0.tar.xz
discoin-50c56f2fcf00385dbe8f91588af3ee1a89a9d2d0.zip
Interrupt orphan processing after every transaction
This makes orphan processing work like handling getdata messages: After every actual transaction validation attempt, interrupt processing to deal with messages arriving from other peers. Github-Pull: #15644 Rebased-From: 866c8058a706931f025335b3e794ed2f4d287918
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index f4a90e01f..f1d09f593 100644
--- a/src/net.h
+++ b/src/net.h
@@ -739,6 +739,8 @@ public:
CAmount lastSentFeeFilter{0};
int64_t nextSendTimeFeeFilter{0};
+ std::set<uint256> orphan_work_set;
+
CNode(NodeId id, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress &addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, const CAddress &addrBindIn, const std::string &addrNameIn = "", bool fInboundIn = false);
~CNode();
CNode(const CNode&) = delete;