aboutsummaryrefslogtreecommitdiff
path: root/src/txorphanage.h
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2021-02-15 23:04:21 +1000
committerAnthony Towns <aj@erisian.com.au>2021-02-26 23:55:07 +1000
commit81dd57e5b1ab1afa7e59468e30ef41bd34f0c8d7 (patch)
treef72b8a881133c56daec1a2dc6b9c1cd41267f126 /src/txorphanage.h
parent9d5313df7eedad8562c822f5477747e924929fd3 (diff)
downloadbitcoin-81dd57e5b1ab1afa7e59468e30ef41bd34f0c8d7.tar.xz
txorphanage: Pass uint256 by reference instead of value
Diffstat (limited to 'src/txorphanage.h')
-rw-r--r--src/txorphanage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txorphanage.h b/src/txorphanage.h
index d97b4b1f43..343f12c9c5 100644
--- a/src/txorphanage.h
+++ b/src/txorphanage.h
@@ -23,7 +23,7 @@ struct COrphanTx {
size_t list_pos;
};
-int EraseOrphanTx(uint256 hash) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans);
+int EraseOrphanTx(const uint256& txid) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans);
void EraseOrphansFor(NodeId peer);
unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans);