aboutsummaryrefslogtreecommitdiff
path: root/src/key.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2018-01-23 13:16:56 -0500
committerRussell Yanofsky <[email protected]>2018-01-23 13:16:56 -0500
commit04ededf0015a05b90ce150dd0c7dddb4c028b08b (patch)
treee3786697186531b8a8d69adaf07454bb01153b6d /src/key.cpp
parentMerge #12187: [Docs] Updating benchmarkmarking.md with an updated sample output (diff)
downloaddiscoin-04ededf0015a05b90ce150dd0c7dddb4c028b08b.tar.xz
discoin-04ededf0015a05b90ce150dd0c7dddb4c028b08b.zip
Make CKey::Load references const
No change in behavior, this just prevents CKey::Load arguments from looking like outputs.
Diffstat (limited to 'src/key.cpp')
-rw-r--r--src/key.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/key.cpp b/src/key.cpp
index f8136f88b..e998e3db6 100644
--- a/src/key.cpp
+++ b/src/key.cpp
@@ -233,7 +233,7 @@ bool CKey::SignCompact(const uint256 &hash, std::vector<unsigned char>& vchSig)
return true;
}
-bool CKey::Load(CPrivKey &privkey, CPubKey &vchPubKey, bool fSkipCheck=false) {
+bool CKey::Load(const CPrivKey &privkey, const CPubKey &vchPubKey, bool fSkipCheck=false) {
if (!ec_privkey_import_der(secp256k1_context_sign, (unsigned char*)begin(), privkey.data(), privkey.size()))
return false;
fCompressed = vchPubKey.IsCompressed();