Browse Source

Enable "blockoneminer" as null again

pull/434/head
miketout 2 years ago
parent
commit
2fc87bc922
  1. 2
      src/rpc/pbaasrpc.cpp

2
src/rpc/pbaasrpc.cpp

@ -8269,7 +8269,7 @@ CCurrencyDefinition ValidateNewUnivalueCurrencyDefinition(const UniValue &uniObj
for (auto &oneID : newCurrency.preAllocation)
{
if (!CIdentity::LookupIdentity(CIdentityID(oneID.first)).IsValid())
if (!(newCurrency.IsPBaaSChain() && oneID.first.IsNull()) && !CIdentity::LookupIdentity(CIdentityID(oneID.first)).IsValid())
{
throw JSONRPCError(RPC_INVALID_PARAMETER, "attempting to pre-allocate currency to a non-existent ID.");
}

Loading…
Cancel
Save