diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-11-01 13:59:15 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-11-01 14:20:56 +0100 |
commit | fa93ef5a8aeae36304c792697a78af2d07fd9f41 (patch) | |
tree | 15a20252f07a2c95b9fb52be37a0369a6f5c4c80 /src/wallet/rpcdump.cpp | |
parent | 5574881ce329f91cc5bbc2b9585860a45fde7c3c (diff) |
refactor: Take Span in SetSeed
This makes calling code less verbose and less fragile. Also, by adding
the CKey::data() member function, it is now possible to call HexStr()
with a CKey object.
Diffstat (limited to 'src/wallet/rpcdump.cpp')
-rw-r--r-- | src/wallet/rpcdump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index 1f13b80f3e..5edd9f8f66 100644 --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -797,7 +797,7 @@ RPCHelpMan dumpwallet() CKey seed; if (spk_man.GetKey(seed_id, seed)) { CExtKey masterKey; - masterKey.SetSeed(seed.begin(), seed.size()); + masterKey.SetSeed(seed); file << "# extended private masterkey: " << EncodeExtKey(masterKey) << "\n\n"; } |