Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 5aacfee

Browse files
authored
Merge pull request jl777#500 from jl777/dev
Fix help error
2 parents a7f15a8 + e9d7391 commit 5aacfee

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/komodo_gateway.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ void komodo_stateind_set(struct komodo_state *sp,uint32_t *inds,int32_t n,uint8_
14221422
}
14231423
else if ( func == 'V' )
14241424
{
1425-
if ( KOMODO_PAX != 0 || numv > numV-1440 )
1425+
if ( KOMODO_PAX != 0 && numv > numV-1440 )
14261426
doissue = 1;
14271427
numv++;
14281428
}

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,9 @@ UniValue paxdeposit(const UniValue& params, bool fHelp)
614614
uint64_t available,deposited,issued,withdrawn,approved,redeemed,seed,komodoshis = 0; int32_t height; char destaddr[64]; uint8_t i,pubkey37[33];
615615
bool fSubtractFeeFromAmount = false;
616616
if ( KOMODO_PAX == 0 )
617-
throw JSONRPCError(RPC_TYPE_ERROR, "paxdeposit disabled, since pax not enabled with komodod -pax");
617+
{
618+
throw runtime_error("paxdeposit dispabled without -pax");
619+
}
618620
if ( komodo_is_issuer() != 0 )
619621
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "paxdeposit only from KMD");
620622
if (!EnsureWalletIsAvailable(fHelp))

0 commit comments

Comments
 (0)