Fix help error

This commit is contained in:
jl777
2017-11-06 13:52:29 +02:00
parent e31b961607
commit e9d73912be
2 changed files with 4 additions and 2 deletions

View File

@@ -1422,7 +1422,7 @@ void komodo_stateind_set(struct komodo_state *sp,uint32_t *inds,int32_t n,uint8_
}
else if ( func == 'V' )
{
if ( KOMODO_PAX != 0 || numv > numV-1440 )
if ( KOMODO_PAX != 0 && numv > numV-1440 )
doissue = 1;
numv++;
}

View File

@@ -614,7 +614,9 @@ UniValue paxdeposit(const UniValue& params, bool fHelp)
uint64_t available,deposited,issued,withdrawn,approved,redeemed,seed,komodoshis = 0; int32_t height; char destaddr[64]; uint8_t i,pubkey37[33];
bool fSubtractFeeFromAmount = false;
if ( KOMODO_PAX == 0 )
throw JSONRPCError(RPC_TYPE_ERROR, "paxdeposit disabled, since pax not enabled with komodod -pax");
{
throw runtime_error("paxdeposit dispabled without -pax");
}
if ( komodo_is_issuer() != 0 )
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "paxdeposit only from KMD");
if (!EnsureWalletIsAvailable(fHelp))