aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2024-08-13 12:15:57 -0400
committerluigi1111 <luigi1111w@gmail.com>2024-08-13 12:15:57 -0400
commitbedfa83ea02718b65b236cbb222496903a148b92 (patch)
tree6d8dd3fd7fa0f6695d897f29347e6c15d88eae60 /src/rpc
parent76feeb64b7060f588739d1a267bcf8000be6f817 (diff)
parentc5ad937cc11d3181b7549db573ac37ec635be96e (diff)
downloadmonzero-core-bedfa83ea02718b65b236cbb222496903a148b92.tar.gz
monzero-core-bedfa83ea02718b65b236cbb222496903a148b92.tar.xz
monzero-core-bedfa83ea02718b65b236cbb222496903a148b92.zip
Merge pull request #9385
c5ad937 Fix ZMQ DaemonInfo: (Lee *!* Clagett)
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/daemon_handler.cpp2
-rw-r--r--src/rpc/message_data_structs.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc/daemon_handler.cpp b/src/rpc/daemon_handler.cpp
index 11ab80666..b13663ac9 100644
--- a/src/rpc/daemon_handler.cpp
+++ b/src/rpc/daemon_handler.cpp
@@ -520,6 +520,8 @@ namespace rpc
res.info.target_height = res.info.height;
}
+ m_core.get_blockchain_top(res.info.top_block_height, res.info.top_block_hash);
+
auto& chain = m_core.get_blockchain_storage();
res.info.wide_difficulty = chain.get_difficulty_for_next_block();
diff --git a/src/rpc/message_data_structs.h b/src/rpc/message_data_structs.h
index dd9d198ed..7f3b787b6 100644
--- a/src/rpc/message_data_structs.h
+++ b/src/rpc/message_data_structs.h
@@ -176,6 +176,7 @@ namespace rpc
{
uint64_t height;
uint64_t target_height;
+ uint64_t top_block_height;
cryptonote::difficulty_type wide_difficulty;
uint64_t difficulty;
uint64_t target;