Skip to content

Commit

Permalink
Allow mining if token group is not created on all networks except main
Browse files Browse the repository at this point in the history
  • Loading branch information
cevap committed Mar 10, 2021
1 parent 50e7cd5 commit 6d4042e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pos/staker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ UniValue generateHybridBlocks(std::shared_ptr<CReserveKey> coinbaseKey, int nGen
};
} else {
if (fPosPowPhase) {
if (!tokenGroupManager->ElectronTokensCreated()) {
if (!tokenGroupManager->ElectronTokensCreated() && Params().NetworkIDString() == CBaseChainParams::MAIN) {
throw JSONRPCError(RPC_MISC_ERROR, "Error: Mining in hybrid mode, but the Electron token group is not yet created");
}
CScript coinbase_script;
Expand Down

0 comments on commit 6d4042e

Please sign in to comment.