This commit is contained in:
@@ -63,6 +63,7 @@ CTxOut MakeCC1of2vout(uint8_t evalcode,CAmount nValue,CPubKey pk1,CPubKey pk2)
|
|||||||
CTxOut vout;
|
CTxOut vout;
|
||||||
CC *payoutCond = MakeCCcond1of2(evalcode,pk1,pk2);
|
CC *payoutCond = MakeCCcond1of2(evalcode,pk1,pk2);
|
||||||
vout = CTxOut(nValue,CCPubKey(payoutCond));
|
vout = CTxOut(nValue,CCPubKey(payoutCond));
|
||||||
|
fprintf(stderr,"payoutCond: %s\n",cc_conditionToJSONString(payoutCond));
|
||||||
cc_free(payoutCond);
|
cc_free(payoutCond);
|
||||||
return(vout);
|
return(vout);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4910,6 +4910,7 @@ UniValue channelsaddress(const UniValue& params, bool fHelp)
|
|||||||
result.push_back(Pair("otherpubkey", params[0].get_str()));
|
result.push_back(Pair("otherpubkey", params[0].get_str()));
|
||||||
GetCCaddress1of2(cp,destaddr,pk,pk2);
|
GetCCaddress1of2(cp,destaddr,pk,pk2);
|
||||||
result.push_back(Pair("channeladdress",destaddr));
|
result.push_back(Pair("channeladdress",destaddr));
|
||||||
|
if ( 0 )
|
||||||
{
|
{
|
||||||
int32_t i;
|
int32_t i;
|
||||||
for (i=0; i<100; i++)
|
for (i=0; i<100; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user