Allow donation=0

This commit is contained in:
Duke
2025-10-14 10:57:40 -04:00
parent 75564c82ac
commit caf7178ffd
2 changed files with 1 additions and 3 deletions

View File

@@ -153,5 +153,3 @@ class ShieldCoinbaseDonationTest (BitcoinTestFramework):
if __name__ == '__main__':
ShieldCoinbaseDonationTest().main()

View File

@@ -5562,7 +5562,7 @@ UniValue z_shieldcoinbase(const UniValue& params, bool fHelp, const CPubKey& myp
uint8_t donation = 0;
if (params.size() > 4) {
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");
}
}