aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-08-29 10:37:24 +0200
committerWladimir J. van der Laan <[email protected]>2014-08-29 10:53:47 +0200
commitfaeb341da3b52121a143b2309efaf246bd5ae29f (patch)
treeac310bf2b40b8b22ad22f33d18435860b54f4622 /src/txmempool.cpp
parentMerge pull request #4772 (diff)
parentFix a few "Uninitialized scalar field" warnings (diff)
downloaddiscoin-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.cpp7
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