File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 6
6
#define BITCOIN_INTERFACES_NODE_H
7
7
8
8
#include < amount.h> // For CAmount
9
+ #include < external_signer.h>
9
10
#include < net.h> // For NodeId
10
11
#include < net_types.h> // For banmap_t
11
12
#include < netaddress.h> // For Network
@@ -110,6 +111,11 @@ class Node
110
111
// ! Disconnect node by id.
111
112
virtual bool disconnectById (NodeId id) = 0;
112
113
114
+ #ifdef ENABLE_EXTERNAL_SIGNER
115
+ // ! List external signers
116
+ virtual std::vector<ExternalSigner> externalSigners () = 0;
117
+ #endif
118
+
113
119
// ! Get total bytes recv.
114
120
virtual int64_t getTotalBytesRecv () = 0;
115
121
Original file line number Diff line number Diff line change @@ -170,6 +170,16 @@ class NodeImpl : public Node
170
170
}
171
171
return false ;
172
172
}
173
+ #ifdef ENABLE_EXTERNAL_SIGNER
174
+ std::vector<ExternalSigner> externalSigners () override
175
+ {
176
+ std::vector<ExternalSigner> signers = {};
177
+ const std::string command = gArgs .GetArg (" -signer" , " " );
178
+ if (command == " " ) return signers;
179
+ ExternalSigner::Enumerate (command, signers, Params ().NetworkIDString ());
180
+ return signers;
181
+ }
182
+ #endif
173
183
int64_t getTotalBytesRecv () override { return m_context->connman ? m_context->connman ->GetTotalBytesRecv () : 0 ; }
174
184
int64_t getTotalBytesSent () override { return m_context->connman ? m_context->connman ->GetTotalBytesSent () : 0 ; }
175
185
size_t getMempoolSize () override { return m_context->mempool ? m_context->mempool ->size () : 0 ; }
You can’t perform that action at this time.
0 commit comments