From ef5c41612da0d544b0ed1f3e986b4b07126723a1 Mon Sep 17 00:00:00 2001 From: Ken Sedgwick Date: Thu, 9 Mar 2023 09:42:48 -0800 Subject: [PATCH] Fix rpc error: blockheight: should be an integer --- Boss/Mod/BlockTracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Boss/Mod/BlockTracker.cpp b/Boss/Mod/BlockTracker.cpp index d6aeb6fbb..9ef2d3163 100644 --- a/Boss/Mod/BlockTracker.cpp +++ b/Boss/Mod/BlockTracker.cpp @@ -26,7 +26,7 @@ Ev::Io BlockTracker::loop(Boss::Mod::Rpc& rpc) { return Ev::yield().then([this, &rpc]() { auto js = Json::Out() .start_object() - .field("blockheight", double(height + 1)) + .field("blockheight", std::uint32_t(height + 1)) .field("timeout", double(86400)) .end_object() ;