mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-18 05:13:31 +01:00
[refactor] change type of unique_parents to Txid
This commit is contained in:
parent
6951ddcefd
commit
62a9ff1870
@ -2978,7 +2978,7 @@ std::optional<node::PackageToValidate> PeerManagerImpl::ProcessInvalidTx(NodeId
|
||||
if (add_extra_compact_tx && RecursiveDynamicUsage(*ptx) < 100000) {
|
||||
AddToCompactExtraTransactions(ptx);
|
||||
}
|
||||
for (const uint256& parent_txid : unique_parents) {
|
||||
for (const Txid& parent_txid : unique_parents) {
|
||||
if (peer) AddKnownTx(*peer, parent_txid);
|
||||
}
|
||||
|
||||
|
@ -92,7 +92,7 @@ struct PackageToValidate {
|
||||
struct RejectedTxTodo
|
||||
{
|
||||
bool m_should_add_extra_compact_tx;
|
||||
std::vector<uint256> m_unique_parents;
|
||||
std::vector<Txid> m_unique_parents;
|
||||
std::optional<PackageToValidate> m_package_to_validate;
|
||||
};
|
||||
|
||||
|
@ -308,7 +308,7 @@ node::RejectedTxTodo TxDownloadManagerImpl::MempoolRejectedTx(const CTransaction
|
||||
// Whether we should call AddToCompactExtraTransactions at the end
|
||||
bool add_extra_compact_tx{first_time_failure};
|
||||
// Hashes to pass to AddKnownTx later
|
||||
std::vector<uint256> unique_parents;
|
||||
std::vector<Txid> unique_parents;
|
||||
// Populated if failure is reconsiderable and eligible package is found.
|
||||
std::optional<node::PackageToValidate> package_to_validate;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user