diff options
| author | Thomas Winget <tewinget@gmail.com> | 2017-09-05 12:20:40 -0400 |
|---|---|---|
| committer | Thomas Winget <tewinget@gmail.com> | 2017-09-05 12:20:40 -0400 |
| commit | 0299cb77ca18073daf3cf371f8da013fb596ae48 (patch) | |
| tree | 14aa3b3c6ddbdf064246bb3800fec3e90c9b609d /src/rpc/message_data_structs.h | |
| parent | 77986023c37737e298fc7c3e9938cce0e10d8b80 (diff) | |
| download | monzero-core-0299cb77ca18073daf3cf371f8da013fb596ae48.tar.gz monzero-core-0299cb77ca18073daf3cf371f8da013fb596ae48.tar.xz monzero-core-0299cb77ca18073daf3cf371f8da013fb596ae48.zip | |
Fix various oversights/bugs in ZMQ RPC server code
- Add some RPC commands (and touch up a couple others)
- some bounds checking
- some better pointer management
- const correctness and error handling
-- Thanks @vtnerd for type help with serialization and CMake changes
Diffstat (limited to 'src/rpc/message_data_structs.h')
| -rw-r--r-- | src/rpc/message_data_structs.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/rpc/message_data_structs.h b/src/rpc/message_data_structs.h index c2492681d..00f1e0caa 100644 --- a/src/rpc/message_data_structs.h +++ b/src/rpc/message_data_structs.h @@ -164,6 +164,26 @@ namespace rpc uint64_t reward; }; + struct DaemonInfo + { + uint64_t height; + uint64_t target_height; + uint64_t difficulty; + uint64_t target; + uint64_t tx_count; + uint64_t tx_pool_size; + uint64_t alt_blocks_count; + uint64_t outgoing_connections_count; + uint64_t incoming_connections_count; + uint64_t white_peerlist_size; + uint64_t grey_peerlist_size; + bool testnet; + crypto::hash top_block_hash; + uint64_t cumulative_difficulty; + uint64_t block_size_limit; + uint64_t start_time; + }; + } // namespace rpc } // namespace cryptonote |
