aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2014-07-25 21:21:10 -0400
committerAlex Morcos <morcos@chaincode.com>2014-07-27 21:41:13 -0400
commit17f15678d399275a093be496914c59b463929fe4 (patch)
treeabf40a511e264e008003b02266a730da1befbc81 /src/txmempool.cpp
parent3955c3940eff83518c186facfec6f50545b5aab5 (diff)
Fixed a bug with index bounds checking
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r--src/txmempool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index 164e2741a2..0725441fba 100644
--- a/src/txmempool.cpp
+++ b/src/txmempool.cpp
@@ -299,7 +299,7 @@ public:
size_t nPrevSize = 0;
for (int i = 0; i < nBlocksToConfirm; i++)
nPrevSize += history.at(i).PrioritySamples();
- size_t index = min(nPrevSize + nBucketSize/2, sortedFeeSamples.size()-1);
+ size_t index = min(nPrevSize + nBucketSize/2, sortedPrioritySamples.size()-1);
return sortedPrioritySamples[index];
}