File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ static Checkpoints::MapCheckpoints mapCheckpoints =
43
43
(295000 , uint256S(" 0x00000000000000004d9b4ef50f0f9d686fd69db2e03af35a100370c64632a983" ))
44
44
;
45
45
static const Checkpoints::CCheckpointData data = {
46
- & mapCheckpoints,
46
+ mapCheckpoints,
47
47
1397080064 , // * UNIX timestamp of last checkpoint block
48
48
36544669 , // * total number of transactions between genesis and last checkpoint
49
49
// (the tx=... number in the SetBestChain debug.log lines)
@@ -55,7 +55,7 @@ static Checkpoints::MapCheckpoints mapCheckpointsTestnet =
55
55
( 546 , uint256S(" 000000002a936ca763904c3c35fce2f3556c559c0214345d31b1bcebf76acb70" ))
56
56
;
57
57
static const Checkpoints::CCheckpointData dataTestnet = {
58
- & mapCheckpointsTestnet,
58
+ mapCheckpointsTestnet,
59
59
1337966069 ,
60
60
1488 ,
61
61
300
@@ -66,7 +66,7 @@ static Checkpoints::MapCheckpoints mapCheckpointsRegtest =
66
66
( 0 , uint256S(" 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206" ))
67
67
;
68
68
static const Checkpoints::CCheckpointData dataRegtest = {
69
- & mapCheckpointsRegtest,
69
+ mapCheckpointsRegtest,
70
70
0 ,
71
71
0 ,
72
72
0
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ namespace Checkpoints {
30
30
if (!fEnabled )
31
31
return true ;
32
32
33
- const MapCheckpoints& checkpoints = * Params ().Checkpoints ().mapCheckpoints ;
33
+ const MapCheckpoints& checkpoints = Params ().Checkpoints ().mapCheckpoints ;
34
34
35
35
MapCheckpoints::const_iterator i = checkpoints.find (nHeight);
36
36
if (i == checkpoints.end ()) return true ;
@@ -74,7 +74,7 @@ namespace Checkpoints {
74
74
if (!fEnabled )
75
75
return 0 ;
76
76
77
- const MapCheckpoints& checkpoints = * Params ().Checkpoints ().mapCheckpoints ;
77
+ const MapCheckpoints& checkpoints = Params ().Checkpoints ().mapCheckpoints ;
78
78
79
79
return checkpoints.rbegin ()->first ;
80
80
}
@@ -84,7 +84,7 @@ namespace Checkpoints {
84
84
if (!fEnabled )
85
85
return NULL ;
86
86
87
- const MapCheckpoints& checkpoints = * Params ().Checkpoints ().mapCheckpoints ;
87
+ const MapCheckpoints& checkpoints = Params ().Checkpoints ().mapCheckpoints ;
88
88
89
89
BOOST_REVERSE_FOREACH (const MapCheckpoints::value_type& i, checkpoints)
90
90
{
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace Checkpoints
20
20
typedef std::map<int , uint256> MapCheckpoints;
21
21
22
22
struct CCheckpointData {
23
- const MapCheckpoints * mapCheckpoints;
23
+ MapCheckpoints mapCheckpoints;
24
24
int64_t nTimeLastCheckpoint;
25
25
int64_t nTransactionsLastCheckpoint;
26
26
double fTransactionsPerDay ;
You can’t perform that action at this time.
0 commit comments