Changeset View
Changeset View
Standalone View
Standalone View
src/bloom.cpp
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | for (size_t i = 0; i < tx.vout.size(); i++) { | ||||
} | } | ||||
if (data.size() != 0 && contains(data)) { | if (data.size() != 0 && contains(data)) { | ||||
fFound = true; | fFound = true; | ||||
if ((nFlags & BLOOM_UPDATE_MASK) == BLOOM_UPDATE_ALL) { | if ((nFlags & BLOOM_UPDATE_MASK) == BLOOM_UPDATE_ALL) { | ||||
insert(COutPoint(txid, i)); | insert(COutPoint(txid, i)); | ||||
} else if ((nFlags & BLOOM_UPDATE_MASK) == | } else if ((nFlags & BLOOM_UPDATE_MASK) == | ||||
BLOOM_UPDATE_P2PUBKEY_ONLY) { | BLOOM_UPDATE_P2PUBKEY_ONLY) { | ||||
std::vector<std::vector<uint8_t>> vSolutions; | std::vector<std::vector<uint8_t>> vSolutions; | ||||
txnouttype type = Solver(txout.scriptPubKey, vSolutions); | TxoutType type = Solver(txout.scriptPubKey, vSolutions); | ||||
if (type == TX_PUBKEY || type == TX_MULTISIG) { | if (type == TxoutType::PUBKEY || | ||||
type == TxoutType::MULTISIG) { | |||||
insert(COutPoint(txid, i)); | insert(COutPoint(txid, i)); | ||||
} | } | ||||
} | } | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |