add wallet rpc call to get default fee priority

This commit is contained in:
woodser 2025-02-15 15:15:23 -05:00
parent 84df77404e
commit 05184554a6
4 changed files with 56 additions and 1 deletions

View file

@ -47,7 +47,7 @@
// advance which version they will stop working with
// Don't go over 32767 for any of these
#define WALLET_RPC_VERSION_MAJOR 1
#define WALLET_RPC_VERSION_MINOR 27
#define WALLET_RPC_VERSION_MINOR 28
#define MAKE_WALLET_RPC_VERSION(major,minor) (((major)<<16)|(minor))
#define WALLET_RPC_VERSION MAKE_WALLET_RPC_VERSION(WALLET_RPC_VERSION_MAJOR, WALLET_RPC_VERSION_MINOR)
namespace tools
@ -2793,5 +2793,25 @@ namespace wallet_rpc
};
typedef epee::misc_utils::struct_init<response_t> response;
};
struct COMMAND_RPC_GET_DEFAULT_FEE_PRIORITY
{
struct request_t
{
BEGIN_KV_SERIALIZE_MAP()
END_KV_SERIALIZE_MAP()
};
typedef epee::misc_utils::struct_init<request_t> request;
struct response_t
{
uint32_t priority;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(priority)
END_KV_SERIALIZE_MAP()
};
typedef epee::misc_utils::struct_init<response_t> response;
};
}
}