diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-07-17 03:33:13 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-07-17 13:27:46 +0200 |
commit | 7d92b1430a6fd42c4438810640576830d0ff8d13 (patch) | |
tree | 32be45317bee88287fd0b2fa19af2e3b327395a5 /src/txrequest.cpp | |
parent | 57b8336dfed6312003cf34cd5ae7099f77115e73 (diff) |
refactor: use Span for SipHash::Write
Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
Diffstat (limited to 'src/txrequest.cpp')
-rw-r--r-- | src/txrequest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txrequest.cpp b/src/txrequest.cpp index dd042103bd..4c94d4562d 100644 --- a/src/txrequest.cpp +++ b/src/txrequest.cpp @@ -124,7 +124,7 @@ public: Priority operator()(const uint256& txhash, NodeId peer, bool preferred) const { - uint64_t low_bits = CSipHasher(m_k0, m_k1).Write(txhash.begin(), txhash.size()).Write(peer).Finalize() >> 1; + uint64_t low_bits = CSipHasher(m_k0, m_k1).Write(txhash).Write(peer).Finalize() >> 1; return low_bits | uint64_t{preferred} << 63; } |