From 9e0b199b976617edeb1c58d4203df5f83a26c1e3 Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 13 Apr 2021 19:41:50 +0800 Subject: external_signer: use const where appropriate --- src/external_signer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/external_signer.h') 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& signers, std::string chain); + static bool Enumerate(const std::string& command, std::vector& signers, const std::string chain); //! Display address on the device. Calls ` displayaddress --desc `. //! @param[in] descriptor Descriptor specifying which address to display. @@ -63,7 +63,7 @@ public: //! Calls ` getdescriptors --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 ` signtransaction` and passes the PSBT via stdin. -- cgit v1.2.3