resolved the yield calculation issue

This commit is contained in:
Some Random Crypto Guy
2024-05-12 22:59:43 +01:00
parent 34b2f9b315
commit b0ce6d2969
6 changed files with 83 additions and 52 deletions
+22
View File
@@ -33,6 +33,7 @@
#include "string_tools.h"
#include "cryptonote_protocol/cryptonote_protocol_defs.h"
#include "blockchain_db/blockchain_db.h"
#include "cryptonote_basic/cryptonote_basic.h"
#include "cryptonote_basic/difficulty.h"
#include "crypto/hash.h"
@@ -1222,6 +1223,27 @@ namespace cryptonote
typedef epee::misc_utils::struct_init<response_t> response;
};
struct COMMAND_RPC_GET_YIELD_INFO
{
struct request_t
{
BEGIN_KV_SERIALIZE_MAP()
END_KV_SERIALIZE_MAP()
};
typedef epee::misc_utils::struct_init<request_t> request;
struct response_t
{
cryptonote::yield_block_info& latest_ybi;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(latest_ybi)
END_KV_SERIALIZE_MAP()
};
typedef epee::misc_utils::struct_init<response_t> response;
};
struct COMMAND_RPC_GET_LAST_BLOCK_HEADER
{
struct request_t: public rpc_access_request_base