aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/node.h')
-rw-r--r--src/interfaces/node.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/node.h b/src/interfaces/node.h
index 3f8df57124..aeb2612c07 100644
--- a/src/interfaces/node.h
+++ b/src/interfaces/node.h
@@ -204,8 +204,8 @@ public:
//! Unset RPC timer interface.
virtual void rpcUnsetTimerInterface(RPCTimerInterface* iface) = 0;
- //! Get unspent outputs associated with a transaction.
- virtual bool getUnspentOutput(const COutPoint& output, Coin& coin) = 0;
+ //! Get unspent output associated with a transaction.
+ virtual std::optional<Coin> getUnspentOutput(const COutPoint& output) = 0;
//! Broadcast transaction.
virtual TransactionError broadcastTransaction(CTransactionRef tx, CAmount max_tx_fee, std::string& err_string) = 0;