cp = CCinit(&CC, EVAL_FINALIZE_EXPORT);
CTransactionFinalization finalization(0);
- printf("%s: Finalizing export with index dest %s\n", __func__, EncodeDestination(CKeyID(CCrossChainRPCData::GetConditionID(lastChainDef.systemID, EVAL_FINALIZE_EXPORT))).c_str());
+ //printf("%s: Finalizing export with index dest %s\n", __func__, EncodeDestination(CKeyID(CCrossChainRPCData::GetConditionID(lastChainDef.systemID, EVAL_FINALIZE_EXPORT))).c_str());
indexDests = std::vector<CTxDestination>({CKeyID(CCrossChainRPCData::GetConditionID(lastChainDef.systemID, EVAL_FINALIZE_EXPORT))});
dests = std::vector<CTxDestination>({CPubKey(ParseHex(CC.CChexstr)).GetID()});
uint160 systemDestID = importCurrencyDef.systemID; // native on destination system
uint160 importCurrencyID = importCurrencyDef.GetID();
- printf("%s\n", importCurrencyDef.ToUniValue().write(1,2).c_str());
+ //printf("%s\n", importCurrencyDef.ToUniValue().write(1,2).c_str());
std::map<uint160, CAmount> preAllocMap; // if this contains pre-allocations, only make the necessary map once
}
CReserveTransfer &curTransfer = *pCurTransfer;
- printf("currency transfer #%d:\n%s\n", i, curTransfer.ToUniValue().write(1,2).c_str());
+ //printf("currency transfer #%d:\n%s\n", i, curTransfer.ToUniValue().write(1,2).c_str());
CCurrencyDefinition currencyDest = ConnectedChains.GetCachedCurrency(curTransfer.destCurrencyID);
(nofilter || (m.vKeys.size() > 1 && GetDestinationID(m.vKeys[1]) == chainFilter)) &&
(rt.flags & flags) == flags)
{
- inputDescriptors.insert(make_pair(GetDestinationID(p.vKeys[1]),
+ inputDescriptors.insert(make_pair(GetDestinationID(m.vKeys[1]),
make_pair(CInputDescriptor(ntx.vout[i].scriptPubKey, ntx.vout[i].nValue, CTxIn(COutPoint(it->first.txhash, i))), rt)));
}
else if (p.IsValid() &&