Skip to content

Commit 62a9ff1

Browse files
committed
[refactor] change type of unique_parents to Txid
1 parent 6951ddc commit 62a9ff1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2978,7 +2978,7 @@ std::optional<node::PackageToValidate> PeerManagerImpl::ProcessInvalidTx(NodeId
29782978
if (add_extra_compact_tx && RecursiveDynamicUsage(*ptx) < 100000) {
29792979
AddToCompactExtraTransactions(ptx);
29802980
}
2981-
for (const uint256& parent_txid : unique_parents) {
2981+
for (const Txid& parent_txid : unique_parents) {
29822982
if (peer) AddKnownTx(*peer, parent_txid);
29832983
}
29842984

src/node/txdownloadman.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ struct PackageToValidate {
9292
struct RejectedTxTodo
9393
{
9494
bool m_should_add_extra_compact_tx;
95-
std::vector<uint256> m_unique_parents;
95+
std::vector<Txid> m_unique_parents;
9696
std::optional<PackageToValidate> m_package_to_validate;
9797
};
9898

src/node/txdownloadman_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ node::RejectedTxTodo TxDownloadManagerImpl::MempoolRejectedTx(const CTransaction
308308
// Whether we should call AddToCompactExtraTransactions at the end
309309
bool add_extra_compact_tx{first_time_failure};
310310
// Hashes to pass to AddKnownTx later
311-
std::vector<uint256> unique_parents;
311+
std::vector<Txid> unique_parents;
312312
// Populated if failure is reconsiderable and eligible package is found.
313313
std::optional<node::PackageToValidate> package_to_validate;
314314

0 commit comments

Comments
 (0)