@@ -936,7 +936,6 @@ UniValue colorcoin(const JSONRPCRequest& request)
936
936
" \n Arguments:\n "
937
937
" 1. \" dynamicaddress\" (string) The destination wallet address\n "
938
938
" 2. \" amount\" (int) The amount in " + CURRENCY_UNIT + " to color. eg 0.1\n "
939
- " 3. \" utxo list\" (string, optional) UTXO txids list seperated by commas\n "
940
939
" \n Result:\n "
941
940
" \" tx id\" (string) The transaction id for the coin coloring\n "
942
941
" \n Examples:\n "
@@ -946,6 +945,9 @@ UniValue colorcoin(const JSONRPCRequest& request)
946
945
947
946
EnsureWalletIsUnlocked ();
948
947
948
+ if (!sporkManager.IsSporkActive (SPORK_30_ACTIVATE_BDAP))
949
+ throw JSONRPCError (RPC_BDAP_SPORK_INACTIVE, strprintf (" Can not use the colorcoin RPC command until the BDAP spork is active." ));
950
+
949
951
if (!pwalletMain)
950
952
throw JSONRPCError (RPC_WALLET_ERROR, strprintf (" Error accessing wallet." ));
951
953
@@ -991,7 +993,7 @@ static const CRPCCommand commands[] =
991
993
{ " bdap" , " addgroup" , &addgroup, true , {" account id" , " common name" , " registration days" } },
992
994
{ " bdap" , " getgroupinfo" , &getgroupinfo, true , {" account id" } },
993
995
{ " bdap" , " mybdapaccounts" , &mybdapaccounts, true , {} },
994
- { " bdap" , " colorcoin" , &colorcoin, true , {" dynamicaddress" , " amount" , " utxo list " } },
996
+ { " bdap" , " colorcoin" , &colorcoin, true , {" dynamicaddress" , " amount" } },
995
997
#endif // ENABLE_WALLET
996
998
{ " bdap" , " makekeypair" , &makekeypair, true , {" prefix" } },
997
999
};
0 commit comments