Skip to content

Commit

Permalink
Update precomputed checkpoints and implement DNS checkpointing for Om…
Browse files Browse the repository at this point in the history
…bre.
  • Loading branch information
mrheinen committed Mar 8, 2018
1 parent fe2224e commit 0e50ecb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
Binary file modified src/blocks/checkpoints.dat
Binary file not shown.
17 changes: 6 additions & 11 deletions src/cryptonote_core/checkpoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,20 +201,15 @@ namespace cryptonote

bool checkpoints::load_checkpoints_from_dns(bool testnet)
{
// All SumoPulse domains have DNSSEC on and valid
// All OmbrePulse domains have DNSSEC on and valid
static const std::vector<std::string> dns_urls =
{
"checkpoints.sumopulse.stream"
, "checkpoints.sumopulse.download"
, "checkpoints.sumopulse.win"
, "checkpoints.sumopulse.bid"
"checkpoints1.ombre.io",
"checkpoints2.ombre.io"
};

static const std::vector<std::string> testnet_dns_urls = {
"testpoints.sumopulse.stream"
, "testpoints.sumopulse.download"
, "testpoints.sumopulse.win"
, "testpoints.sumopulse.bid"
"testpoints.ombre.io"
};

std::vector<std::vector<std::string> > records;
Expand Down Expand Up @@ -271,7 +266,7 @@ namespace cryptonote

if (num_valid_records < 2)
{
LOG_PRINT_L0("WARNING: no two valid SumoPulse DNS checkpoint records were received");
LOG_PRINT_L0("WARNING: no two valid OmbrePule DNS checkpoint records were received");
return true;
}

Expand All @@ -293,7 +288,7 @@ namespace cryptonote

if (good_records_index < 0)
{
LOG_PRINT_L0("WARNING: no two SumoPulse DNS checkpoint records matched");
LOG_PRINT_L0("WARNING: no two OmbrePule DNS checkpoint records matched");
return true;
}

Expand Down

0 comments on commit 0e50ecb

Please sign in to comment.