From 8bca30ea17cd4c1dacee28eaa27e5fa3493b021d Mon Sep 17 00:00:00 2001 From: Amiti Uttarwar Date: Wed, 12 Feb 2020 11:12:20 -0800 Subject: [rpc] expose ability to mock scheduler via the rpc --- src/rpc/client.cpp | 1 + src/rpc/misc.cpp | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) (limited to 'src/rpc') diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index 2eaa3427eb..c1762483e9 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -27,6 +27,7 @@ public: static const CRPCConvertParam vRPCConvertParams[] = { { "setmocktime", 0, "timestamp" }, + { "mockscheduler", 0, "delta_time" }, { "utxoupdatepsbt", 1, "descriptors" }, { "generatetoaddress", 0, "nblocks" }, { "generatetoaddress", 2, "maxtries" }, diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index 56bd33b0ec..ba5a3d83d1 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -5,10 +5,12 @@ #include #include +#include #include #include #include #include +#include #include