Be clear that 0 and 10 are included as valid donation percentages
This commit is contained in:
@@ -69,7 +69,7 @@ AsyncRPCOperation_shieldcoinbase::AsyncRPCOperation_shieldcoinbase(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (donation < 0 || donation > 10 ) {
|
if (donation < 0 || donation > 10 ) {
|
||||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid donation percentage, must be an integer between 0 and 10");
|
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid donation percentage, must be an integer between 0 and 10 inclusive");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check the destination address is valid for this network i.e. not testnet being used on mainnet
|
// Check the destination address is valid for this network i.e. not testnet being used on mainnet
|
||||||
|
|||||||
Reference in New Issue
Block a user