This commit is contained in:
jl777
2019-02-21 04:17:20 -11:00
parent c96ca4eab9
commit 6131a785d8

View File

@@ -135,9 +135,9 @@ UniValue musig_combine(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
UniValue result(UniValue::VOBJ); CPubKey pk; int32_t i,n; uint8_t pkhash[32]; char *hexstr,str[67]; secp256k1_pubkey combined_pk,spk; std::vector<secp256k1_pubkey> pubkeys;
if ( ctx == 0 )
ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY);
fprintf(stderr,"args.(%s)\n",jprint(params,0));
if ( params != 0 && (n= cJSON_GetArraySize(params)) > 0 )
{
fprintf(stderr,"n.%d args.(%s)\n",jprint(params,0));
for (i=0; i<n; i++)
{
if ( (hexstr= jstr(jitem(params,i),0)) != 0 && is_hexstr(hexstr,0) == 66 )