diff options
author | fanquake <fanquake@gmail.com> | 2021-04-13 19:41:50 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-04-13 20:09:34 +0800 |
commit | 9e0b199b976617edeb1c58d4203df5f83a26c1e3 (patch) | |
tree | 484cc9e0faf1146d4e3d9d15d7518575c51ed53e /src/external_signer.h | |
parent | aaa4e5a45bd9ec5563ffa7b9e0d46d2de3cb9242 (diff) |
external_signer: use const where appropriate
Diffstat (limited to 'src/external_signer.h')
-rw-r--r-- | src/external_signer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/external_signer.h b/src/external_signer.h index 02946b22a9..798662672e 100644 --- a/src/external_signer.h +++ b/src/external_signer.h @@ -34,7 +34,7 @@ public: //! @param[in] fingerprint master key fingerprint of the signer //! @param[in] chain "main", "test", "regtest" or "signet" //! @param[in] name device name - ExternalSigner(const std::string& command, const std::string& fingerprint, std::string chain, std::string name); + ExternalSigner(const std::string& command, const std::string& fingerprint, const std::string chain, const std::string name); //! Master key fingerprint of the signer std::string m_fingerprint; @@ -52,7 +52,7 @@ public: //! @param[in,out] signers vector to which new signers (with a unique master key fingerprint) are added //! @param chain "main", "test", "regtest" or "signet" //! @returns success - static bool Enumerate(const std::string& command, std::vector<ExternalSigner>& signers, std::string chain); + static bool Enumerate(const std::string& command, std::vector<ExternalSigner>& signers, const std::string chain); //! Display address on the device. Calls `<command> displayaddress --desc <descriptor>`. //! @param[in] descriptor Descriptor specifying which address to display. @@ -63,7 +63,7 @@ public: //! Calls `<command> getdescriptors --account <account>` //! @param[in] account which BIP32 account to use (e.g. `m/44'/0'/account'`) //! @returns see doc/external-signer.md - UniValue GetDescriptors(int account); + UniValue GetDescriptors(const int account); //! Sign PartiallySignedTransaction on the device. //! Calls `<command> signtransaction` and passes the PSBT via stdin. |