mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04:00
[refactor] change type of unique_parents to Txid
This commit is contained in:
parent
6951ddcefd
commit
62a9ff1870
3 changed files with 3 additions and 3 deletions
|
@ -2978,7 +2978,7 @@ std::optional<node::PackageToValidate> PeerManagerImpl::ProcessInvalidTx(NodeId
|
||||||
if (add_extra_compact_tx && RecursiveDynamicUsage(*ptx) < 100000) {
|
if (add_extra_compact_tx && RecursiveDynamicUsage(*ptx) < 100000) {
|
||||||
AddToCompactExtraTransactions(ptx);
|
AddToCompactExtraTransactions(ptx);
|
||||||
}
|
}
|
||||||
for (const uint256& parent_txid : unique_parents) {
|
for (const Txid& parent_txid : unique_parents) {
|
||||||
if (peer) AddKnownTx(*peer, parent_txid);
|
if (peer) AddKnownTx(*peer, parent_txid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ struct PackageToValidate {
|
||||||
struct RejectedTxTodo
|
struct RejectedTxTodo
|
||||||
{
|
{
|
||||||
bool m_should_add_extra_compact_tx;
|
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;
|
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
|
// Whether we should call AddToCompactExtraTransactions at the end
|
||||||
bool add_extra_compact_tx{first_time_failure};
|
bool add_extra_compact_tx{first_time_failure};
|
||||||
// Hashes to pass to AddKnownTx later
|
// 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.
|
// Populated if failure is reconsiderable and eligible package is found.
|
||||||
std::optional<node::PackageToValidate> package_to_validate;
|
std::optional<node::PackageToValidate> package_to_validate;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue