Allow donation=0
This commit is contained in:
@@ -153,5 +153,3 @@ class ShieldCoinbaseDonationTest (BitcoinTestFramework):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
ShieldCoinbaseDonationTest().main()
|
ShieldCoinbaseDonationTest().main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5562,7 +5562,7 @@ UniValue z_shieldcoinbase(const UniValue& params, bool fHelp, const CPubKey& myp
|
|||||||
uint8_t donation = 0;
|
uint8_t donation = 0;
|
||||||
if (params.size() > 4) {
|
if (params.size() > 4) {
|
||||||
donation = params[4].get_int();
|
donation = params[4].get_int();
|
||||||
if (donation < 1 || donation > 10 ) {
|
if (donation < 0 || donation > 10 ) {
|
||||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid donation percentage, must be an integer between 1 and 10");
|
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid donation percentage, must be an integer between 1 and 10");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user