Browse Source

Align struct COrphan definition

0.14
Pieter Wuille 8 years ago
parent
commit
2efc43874c
  1. 1
      src/net_processing.cpp
  2. 1
      src/test/DoS_tests.cpp

1
src/net_processing.cpp

@ -50,6 +50,7 @@ struct IteratorComparator @@ -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;

1
src/test/DoS_tests.cpp

@ -29,6 +29,7 @@ extern unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans); @@ -29,6 +29,7 @@ extern unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans);
struct COrphanTx {
CTransaction tx;
NodeId fromPeer;
int64_t nTimeExpire;
};
extern std::map<uint256, COrphanTx> mapOrphanTransactions;
extern std::map<uint256, std::set<uint256> > mapOrphanTransactionsByPrev;

Loading…
Cancel
Save