Many changes
This commit is contained in:
@@ -541,7 +541,7 @@ template <class Helper> int64_t Add1of2AddressInputs(struct CCcontract_info* cp,
|
||||
isMyFuncId(funcId) &&
|
||||
(typeid(Helper) != typeid(TokenHelper) || IsTokensvout(true, true, cp, nullptr, heirtx, voutIndex, tokenid) > 0) && // token validation logic
|
||||
//(voutValue = IsHeirFundingVout<Helper>(cp, heirtx, voutIndex, ownerPubkey, heirPubkey)) > 0 && // heir contract vout validation logic - not used since we moved to 2-eval vouts
|
||||
!myIsutxo_spentinmempool(txid, voutIndex))
|
||||
!myIsutxo_spentinmempool(ignoretxid,ignorevin,txid, voutIndex))
|
||||
{
|
||||
std::cerr << "Add1of2AddressInputs() satoshis=" << it->second.satoshis << std::endl;
|
||||
if (total != 0 && maxinputs != 0)
|
||||
@@ -591,7 +591,7 @@ template <class Helper> int64_t LifetimeHeirContractFunds(struct CCcontract_info
|
||||
(txid == fundingtxid || fundingTxidInOpret == fundingtxid) &&
|
||||
isMyFuncId(funcId) && !isSpendingTx(funcId) &&
|
||||
(typeid(Helper) != typeid(TokenHelper) || IsTokensvout(true, true, cp, nullptr, heirtx, ivout, tokenid) > 0) &&
|
||||
!myIsutxo_spentinmempool(txid, ivout)) // exclude tx in mempool
|
||||
!myIsutxo_spentinmempool(ignoretxid,ignorevin,txid, ivout)) // exclude tx in mempool
|
||||
{
|
||||
total += it->second; // dont do this: tx.vout[ivout].nValue; // in vin[0] always is the pay to 1of2 addr (funding or change)
|
||||
//std::cerr << "LifetimeHeirContractFunds() added tx=" << txid.GetHex() << " it->second=" << it->second << " vout[0].nValue=" << tx.vout[ivout].nValue << " opreturn=" << (char)funcId << '\n';
|
||||
|
||||
Reference in New Issue
Block a user