aboutsummaryrefslogtreecommitdiff
path: root/src/script/sigcache.cpp
diff options
context:
space:
mode:
authorGuido Vranken <guidovranken@gmail.com>2021-04-26 22:08:35 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-05-04 06:53:20 +0200
commitfabb6dfe6e734eadd91448122f2ce8c1612c39a6 (patch)
tree21f85bb563f76911304db14f5f7fe69a4450c6b5 /src/script/sigcache.cpp
parente2d4e67a8fccfaebad5accced629711bb6402d3f (diff)
script: Replace address-of idiom with vector data() method
Diffstat (limited to 'src/script/sigcache.cpp')
-rw-r--r--src/script/sigcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/sigcache.cpp b/src/script/sigcache.cpp
index c6d898a25a..c5ff3d8d13 100644
--- a/src/script/sigcache.cpp
+++ b/src/script/sigcache.cpp
@@ -53,7 +53,7 @@ public:
ComputeEntryECDSA(uint256& entry, const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubkey) const
{
CSHA256 hasher = m_salted_hasher_ecdsa;
- hasher.Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(&vchSig[0], vchSig.size()).Finalize(entry.begin());
+ hasher.Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(vchSig.data(), vchSig.size()).Finalize(entry.begin());
}
void