Skip to content

Commit

Permalink
Allow minting of loan tokens on mocknet (#2877)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar authored Apr 2, 2024
1 parent 6f82280 commit e28a55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfi/consensus/tokens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ ResVal<CScript> CTokensConsensus::MintableToken(DCT_ID id,
static const auto isMainNet = Params().NetworkIDString() == CBaseChainParams::MAIN;
// may be different logic with LPS, so, dedicated check:
auto &mnview = blockCtx.GetView();
if (!token.IsMintable() || (isMainNet && mnview.GetLoanTokenByID(id))) {
if (!token.IsMintable() || (isMainNet && !fMockNetwork && mnview.GetLoanTokenByID(id))) {
return Res::Err("token %s is not mintable!", id.ToString());
}

Expand Down

0 comments on commit e28a55f

Please sign in to comment.