Skip to content

Commit f8b35a3

Browse files
committed
Ensure legacy investor config key is removed in config json file.
1 parent 09b8e16 commit f8b35a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gridcoin/researcher.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ bool UpdateRWSettingsForMode(const ResearcherMode mode, const std::string& email
6565
{
6666
std::vector<std::pair<std::string, util::SettingsValue>> settings;
6767

68+
// Ensure old (legacy) investor key is removed.
69+
settings.push_back(std::make_pair("investor", util::SettingsValue(UniValue::VNULL)));
70+
6871
if (mode == ResearcherMode::NONCRUNCHER) {
6972
settings.push_back(std::make_pair("email", util::SettingsValue(UniValue::VNULL)));
7073
settings.push_back(std::make_pair("noncruncher", "1"));

0 commit comments

Comments
 (0)