diff options
Diffstat (limited to 'src/wallet/coincontrol.h')
-rw-r--r-- | src/wallet/coincontrol.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/wallet/coincontrol.h b/src/wallet/coincontrol.h index 4f87d13d99..1d1f5c4da2 100644 --- a/src/wallet/coincontrol.h +++ b/src/wallet/coincontrol.h @@ -46,9 +46,7 @@ public: /** Set the weight for this input. */ void SetInputWeight(int64_t weight); /** Retrieve the input weight for this input. */ - int64_t GetInputWeight() const; - /** Return whether the input weight is set. */ - bool HasInputWeight() const; + std::optional<int64_t> GetInputWeight() const; }; /** Coin Control Features. */ @@ -132,13 +130,9 @@ public: */ void SetInputWeight(const COutPoint& outpoint, int64_t weight); /** - * Returns true if the input weight is set. - */ - bool HasInputWeight(const COutPoint& outpoint) const; - /** * Returns the input weight. */ - int64_t GetInputWeight(const COutPoint& outpoint) const; + std::optional<int64_t> GetInputWeight(const COutPoint& outpoint) const; private: //! Selected inputs (inputs that will be used, regardless of whether they're optimal or not) |