aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.cpp
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2015-04-22 17:55:00 -0400
committerCory Fields <cory-nospam-@coryfields.com>2015-04-30 23:14:08 -0400
commit9f13a10548bf77fb785a9c116234258275de6c04 (patch)
tree0b8ec1207e3056383e2681807c6e532db3ef80c5 /src/checkpoints.cpp
parent8a10000222cb49eb253b41802ecf312adaf79439 (diff)
downloadbitcoin-9f13a10548bf77fb785a9c116234258275de6c04.tar.xz
checkpoints: store mapCheckpoints in CCheckpointData rather than a pointer
Diffstat (limited to 'src/checkpoints.cpp')
-rw-r--r--src/checkpoints.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp
index 71579bb309..97ea8e2fee 100644
--- a/src/checkpoints.cpp
+++ b/src/checkpoints.cpp
@@ -30,7 +30,7 @@ namespace Checkpoints {
if (!fEnabled)
return true;
- const MapCheckpoints& checkpoints = *Params().Checkpoints().mapCheckpoints;
+ const MapCheckpoints& checkpoints = Params().Checkpoints().mapCheckpoints;
MapCheckpoints::const_iterator i = checkpoints.find(nHeight);
if (i == checkpoints.end()) return true;
@@ -74,7 +74,7 @@ namespace Checkpoints {
if (!fEnabled)
return 0;
- const MapCheckpoints& checkpoints = *Params().Checkpoints().mapCheckpoints;
+ const MapCheckpoints& checkpoints = Params().Checkpoints().mapCheckpoints;
return checkpoints.rbegin()->first;
}
@@ -84,7 +84,7 @@ namespace Checkpoints {
if (!fEnabled)
return NULL;
- const MapCheckpoints& checkpoints = *Params().Checkpoints().mapCheckpoints;
+ const MapCheckpoints& checkpoints = Params().Checkpoints().mapCheckpoints;
BOOST_REVERSE_FOREACH(const MapCheckpoints::value_type& i, checkpoints)
{