diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-08-29 10:37:24 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-08-29 10:53:47 +0200 |
| commit | faeb341da3b52121a143b2309efaf246bd5ae29f (patch) | |
| tree | ac310bf2b40b8b22ad22f33d18435860b54f4622 /src/txmempool.cpp | |
| parent | Merge pull request #4772 (diff) | |
| parent | Fix a few "Uninitialized scalar field" warnings (diff) | |
| download | discoin-faeb341da3b52121a143b2309efaf246bd5ae29f.tar.xz discoin-faeb341da3b52121a143b2309efaf246bd5ae29f.zip | |
Merge pull request #4777
8bdd287 Fix a few "Uninitialized scalar field" warnings (Wladimir J. van der Laan)
Diffstat (limited to 'src/txmempool.cpp')
| -rw-r--r-- | src/txmempool.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 8af1f1c91..238d5bab1 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -11,7 +11,8 @@ using namespace std; -CTxMemPoolEntry::CTxMemPoolEntry() +CTxMemPoolEntry::CTxMemPoolEntry(): + nFee(0), nTxSize(0), nTime(0), dPriority(0.0) { nHeight = MEMPOOL_HEIGHT; } @@ -345,7 +346,9 @@ public: }; -CTxMemPool::CTxMemPool(const CFeeRate& _minRelayFee) : minRelayFee(_minRelayFee) +CTxMemPool::CTxMemPool(const CFeeRate& _minRelayFee) : + nTransactionsUpdated(0), + minRelayFee(_minRelayFee) { // Sanity checks off by default for performance, because otherwise // accepting transactions becomes O(N^2) where N is the number |