From d86d5b70303177d2c9185f8226a4a8ce650da42b Mon Sep 17 00:00:00 2001 From: Bushstar Date: Tue, 2 Apr 2024 07:29:11 +0100 Subject: [PATCH] Allow minting of loan tokens on mocknet --- src/dfi/consensus/tokens.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dfi/consensus/tokens.cpp b/src/dfi/consensus/tokens.cpp index e7c857c6bd..b19a2d4c6b 100644 --- a/src/dfi/consensus/tokens.cpp +++ b/src/dfi/consensus/tokens.cpp @@ -60,7 +60,7 @@ ResVal 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()); }