Skip to content

Commit

Permalink
Merge pull request #385 from pocketnetteam/fix/wrong-key-threshold
Browse files Browse the repository at this point in the history
fix: wrong map key threshold_shark_reg_depth -> threshold_whale_reg_depth
  • Loading branch information
andyoknen authored Aug 30, 2022
2 parents 8383efb + 8abd1bb commit b8bc0ad
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/pocketdb/consensus/Base.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ namespace PocketConsensus
{ NetworkTest, { {0, 0} } }
} },
{ threshold_shark_likers_comment, {
{ NetworkMain, { {0, 15}, {1862000, 25} } },
{ NetworkMain, { {0, 15}, {1873500, 25} } },
{ NetworkTest, { {0, 1} } }
} },
{ threshold_shark_likers_comment_answer, {
Expand All @@ -315,7 +315,7 @@ namespace PocketConsensus
} },

// Thresholds for obtaining badges - WHALE
{ threshold_shark_reg_depth, {
{ threshold_whale_reg_depth, {
{ NetworkMain, { {0, 207360} } },
{ NetworkTest, { {0, 1} } }
} },
Expand Down Expand Up @@ -426,7 +426,7 @@ namespace PocketConsensus
{ NetworkTest, { {0, 30} } }
} },
{ ConsensusLimit_full_score, {
{ NetworkMain, { {0, 90}, {175600, 200}, {1757000, 60}, {1791787, 100}, {1862000, 200} } },
{ NetworkMain, { {0, 90}, {175600, 200}, {1757000, 60}, {1791787, 100}, {1873500, 200} } },
{ NetworkTest, { {0, 200} } }
} },
{ ConsensusLimit_full_complain, {
Expand All @@ -438,7 +438,7 @@ namespace PocketConsensus
{ NetworkTest, { {0, 300} } }
} },
{ ConsensusLimit_full_comment_score, {
{ NetworkMain, { {0, 600}, {1757000, 200}, {1862000, 300} } },
{ NetworkMain, { {0, 600}, {1757000, 200}, {1873500, 300} } },
{ NetworkTest, { {0, 600} } }
} },

Expand Down
2 changes: 1 addition & 1 deletion src/pocketdb/consensus/social/Blocking.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ namespace PocketConsensus
protected:
const vector<ConsensusCheckpoint<BlockingConsensus>> m_rules = {
{ 0, 0, [](int height) { return make_shared<BlockingConsensus>(height); }},
{ 1862000, 1114500, [](int height) { return make_shared<BlockingConsensus_checkpoint_multiple_blocking>(height); }}, // TODO (o1q): set checkpoint height for multiple locks
{ 1873500, 1114500, [](int height) { return make_shared<BlockingConsensus_checkpoint_multiple_blocking>(height); }}, // TODO (o1q): set checkpoint height for multiple locks
};
public:
shared_ptr<BlockingConsensus> Instance(int height)
Expand Down
2 changes: 1 addition & 1 deletion src/pocketdb/consensus/social/CommentDelete.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ namespace PocketConsensus
private:
const vector<ConsensusCheckpoint < CommentDeleteConsensus>> m_rules = {
{ 0, 0, [](int height) { return make_shared<CommentDeleteConsensus>(height); }},
{ 1862000, 1155000, [](int height) { return make_shared<CommentDeleteConsensus_checkpoint_check_author>(height); }},
{ 1873500, 1155000, [](int height) { return make_shared<CommentDeleteConsensus_checkpoint_check_author>(height); }},
};
public:
shared_ptr<CommentDeleteConsensus> Instance(int height)
Expand Down
2 changes: 1 addition & 1 deletion src/pocketdb/consensus/social/CommentEdit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ namespace PocketConsensus
const vector<ConsensusCheckpoint < CommentEditConsensus>> m_rules = {
{ 0, -1, [](int height) { return make_shared<CommentEditConsensus>(height); }},
{ 1180000, 0, [](int height) { return make_shared<CommentEditConsensus_checkpoint_1180000>(height); }},
{ 1862000, 1155000, [](int height) { return make_shared<CommentEditConsensus_checkpoint_check_author>(height); }},
{ 1873500, 1155000, [](int height) { return make_shared<CommentEditConsensus_checkpoint_check_author>(height); }},
};
public:
shared_ptr<CommentEditConsensus> Instance(int height)
Expand Down
2 changes: 1 addition & 1 deletion src/pocketdb/web/PocketRpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static const CRPCCommand commands[] =
{"contents", "getcontents", &GetContents, {"address"}},
{"contents", "getrandomcontents", &GetRandomContents, {}},
{"contents", "getcontentactions", &GetContentActions, {"contentHash"}},
{"contents", "getnotifications", &GetNotifications, {"height", "filters"}},
// {"contents", "getnotifications", &GetNotifications, {"height", "filters"}},

// Tags
// {"artifacts", "searchtags", &gettemplate, {"search_string", "count"}},
Expand Down

0 comments on commit b8bc0ad

Please sign in to comment.