Align struct COrphan definition

This commit is contained in:
Pieter Wuille 2016-12-02 19:24:23 -08:00
parent 2efcfa5acf
commit 2efc43874c
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;