From 2efc43874cedde7e022ac8f1051c7984331543fa Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Fri, 2 Dec 2016 19:24:23 -0800 Subject: [PATCH] Align struct COrphan definition --- src/net_processing.cpp | 1 + src/test/DoS_tests.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 747167264b..5a415cabbd 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -50,6 +50,7 @@ struct IteratorComparator }; struct COrphanTx { + // When modifying, adapt the copy of this definition in tests/DoS_tests. CTransaction tx; NodeId fromPeer; int64_t nTimeExpire; diff --git a/src/test/DoS_tests.cpp b/src/test/DoS_tests.cpp index 1a818a5756..a8c3c4ebb9 100644 --- a/src/test/DoS_tests.cpp +++ b/src/test/DoS_tests.cpp @@ -29,6 +29,7 @@ extern unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans); struct COrphanTx { CTransaction tx; NodeId fromPeer; + int64_t nTimeExpire; }; extern std::map mapOrphanTransactions; extern std::map > mapOrphanTransactionsByPrev;