mirror of
https://github.com/monero-project/monero.git
synced 2025-12-13 16:38:31 -05:00
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
This commit is contained in:
parent
77986023c3
commit
0299cb77ca
15 changed files with 536 additions and 225 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue