corr cp param to ...addr1of2set
This commit is contained in:
@@ -909,7 +909,7 @@ template <typename Helper>UniValue HeirClaim(uint256 fundingtxid, uint64_t txfee
|
|||||||
Myprivkey(myprivkey);
|
Myprivkey(myprivkey);
|
||||||
|
|
||||||
// set pubkeys for finding 1of2 cc in FinalizeCCtx to sign it:
|
// set pubkeys for finding 1of2 cc in FinalizeCCtx to sign it:
|
||||||
Helper::CCaddrCoinsOrTokens1of2set(ownerPubkey, heirPubkey, coinaddr);
|
Helper::CCaddrCoinsOrTokens1of2set(cp, ownerPubkey, heirPubkey, coinaddr);
|
||||||
|
|
||||||
// add 1of2 vout validation pubkeys (this is for tokens):
|
// add 1of2 vout validation pubkeys (this is for tokens):
|
||||||
std::vector<CPubKey> voutTokenPubkeys;
|
std::vector<CPubKey> voutTokenPubkeys;
|
||||||
|
|||||||
@@ -51,10 +51,8 @@ public:
|
|||||||
cpHeir = CCinit(&heirC, EVAL_HEIR);
|
cpHeir = CCinit(&heirC, EVAL_HEIR);
|
||||||
return GetCCaddress1of2(cpHeir, coinaddr, ownerPubkey, heirPubkey);
|
return GetCCaddress1of2(cpHeir, coinaddr, ownerPubkey, heirPubkey);
|
||||||
}
|
}
|
||||||
static void CCaddrCoinsOrTokens1of2set(CPubKey ownerPubkey, CPubKey heirPubkey, char *coinaddr) {
|
static void CCaddrCoinsOrTokens1of2set(struct CCcontract_info *cp, CPubKey ownerPubkey, CPubKey heirPubkey, char *coinaddr) {
|
||||||
struct CCcontract_info *cpHeir, heirC;
|
CCaddr1of2set(cp, ownerPubkey, heirPubkey, coinaddr);
|
||||||
cpHeir = CCinit(&heirC, EVAL_HEIR);
|
|
||||||
CCaddr1of2set(cpHeir, ownerPubkey, heirPubkey, coinaddr);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -96,10 +94,9 @@ public:
|
|||||||
return GetTokensCCaddress1of2(cpHeir, coinaddr, ownerPubkey, heirPubkey);
|
return GetTokensCCaddress1of2(cpHeir, coinaddr, ownerPubkey, heirPubkey);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void CCaddrCoinsOrTokens1of2set(CPubKey ownerPubkey, CPubKey heirPubkey, char *coinaddr) {
|
static void CCaddrCoinsOrTokens1of2set(struct CCcontract_info *cp, CPubKey ownerPubkey, CPubKey heirPubkey, char *coinaddr) {
|
||||||
struct CCcontract_info *cpHeir, heirC;
|
|
||||||
cpHeir = CCinit(&heirC, EVAL_HEIR);
|
CCaddrTokens1of2set(cp, ownerPubkey, heirPubkey, coinaddr);
|
||||||
CCaddrTokens1of2set(cpHeir, ownerPubkey, heirPubkey, coinaddr);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user