From fc7d02f7f001707aef0eb6f93bc37303673a6706 Mon Sep 17 00:00:00 2001 From: tri Date: Thu, 15 Aug 2024 14:16:36 -0700 Subject: [PATCH] add mainnet Round Voting chainparams --- src/chainparams.cpp | 16 ++++++++++++---- src/qt/uploaddownload.h | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 5371ac957..76875c61a 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -210,10 +210,18 @@ class CMainParams : public CChainParams { Update(EUpdate::DEPLOYMENT_V17, std::string("v17"), 0, 4032, 419328, 1, 3, 1, false, VoteThreshold(80, 60, 5), VoteThreshold(0, 0, 1), false, 427392) ); - // updateManager.Add - // ( - // Update(EUpdate::ROUND_VOTING, std::string("Round Voting"), 7, 100, 100000, 5, 10, 5, false, VoteThreshold(85, 85, 1), VoteThreshold(95, 95, 1)) - // ); + updateManager.Add( + Update(EUpdate::ROUND_VOTING, std::string("Round Voting"), + 1, // bit + 720, // roundSize + 905760, // startHeight + 7, // votingPeriod + 365, // votingMaxRounds + 7, // gracePeriod + false, // forceUpdate + VoteThreshold(85, 85, 1), // minerThreshold + VoteThreshold(0, 0, 1)) // nodeThreshold + ); // The best chain should have at least this much work. consensus.nMinimumChainWork = uint256S( diff --git a/src/qt/uploaddownload.h b/src/qt/uploaddownload.h index 693d36eea..399043eef 100644 --- a/src/qt/uploaddownload.h +++ b/src/qt/uploaddownload.h @@ -15,7 +15,7 @@ static std::string GET_URI = "/get/"; static std::string UPLOAD_URI = "/upload"; static std::string IPFS_SERVICE_HOST = gArgs.GetArg("-ipfsservice", "ipfsm.raptoreum.com"); -static std::string IPFS_GATEWAY_URL = gArgs.GetArg("-ipfsgateway", "https://ipfsweb.raptoreum.com/ipfs/") +static std::string IPFS_GATEWAY_URL = gArgs.GetArg("-ipfsgateway", "https://ipfsweb.raptoreum.com/ipfs/"); void download(const std::string cid, std::string& response_data); void upload(const std::string& file_path, std::string& response_data);