aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2019-10-29 20:53:49 +0100
committerSjors Provoost <sjors@sprovoost.nl>2021-05-27 14:01:54 +0200
commit3f845ea2994f53e29abeb3fa158c35f1ee56e7e8 (patch)
treec17a98c7ae68cc85c897bf1c9b957b6158df8154 /src/node
parent62ac119f919ae1160ed67af796f24b78025fa8e3 (diff)
downloadbitcoin-3f845ea2994f53e29abeb3fa158c35f1ee56e7e8.tar.xz
node: add externalSigners to interface
Diffstat (limited to 'src/node')
-rw-r--r--src/node/interfaces.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp
index 8befbf5e30..171f15d4fb 100644
--- a/src/node/interfaces.cpp
+++ b/src/node/interfaces.cpp
@@ -170,6 +170,16 @@ public:
}
return false;
}
+#ifdef ENABLE_EXTERNAL_SIGNER
+ std::vector<ExternalSigner> externalSigners() override
+ {
+ std::vector<ExternalSigner> signers = {};
+ const std::string command = gArgs.GetArg("-signer", "");
+ if (command == "") return signers;
+ ExternalSigner::Enumerate(command, signers, Params().NetworkIDString());
+ return signers;
+ }
+#endif
int64_t getTotalBytesRecv() override { return m_context->connman ? m_context->connman->GetTotalBytesRecv() : 0; }
int64_t getTotalBytesSent() override { return m_context->connman ? m_context->connman->GetTotalBytesSent() : 0; }
size_t getMempoolSize() override { return m_context->mempool ? m_context->mempool->size() : 0; }