diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-05-14 12:52:15 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-05-14 12:49:16 +0200 |
commit | fa2e614d16af84327adf1c02746d0f73e0f48111 (patch) | |
tree | 9b376181d98a70c87164de57c3bf6abc3ed6d0b2 /src/rpc | |
parent | 61fea5217118e19e0eefde4d32a11e18c841826c (diff) |
test: Fix off-by-one in mockscheduler test RPC
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/misc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index 0e0da8f22b..ab239fe79c 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -424,7 +424,7 @@ static RPCHelpMan mockscheduler() // check params are valid values RPCTypeCheck(request.params, {UniValue::VNUM}); int64_t delta_seconds = request.params[0].get_int64(); - if ((delta_seconds <= 0) || (delta_seconds > 3600)) { + if (delta_seconds <= 0 || delta_seconds > 3600) { throw std::runtime_error("delta_time must be between 1 and 3600 seconds (1 hr)"); } |