From 0de8a0d37d80295ced83a2686b046de52fcbc4e3 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 6 Nov 2019 14:18:54 +0000 Subject: wallet_rpc_server: new estimate_tx_size_and_weight RPC --- src/wallet/wallet2.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wallet/wallet2.h') diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index c86315f7c..07fc8fa6e 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -1252,6 +1252,8 @@ private: bool is_unattended() const { return m_unattended; } + std::pair estimate_tx_size_and_weight(bool use_rct, int n_inputs, int ring_size, int n_outputs, size_t extra_size); + bool get_rpc_payment_info(bool mining, bool &payment_required, uint64_t &credits, uint64_t &diff, uint64_t &credits_per_hash_found, cryptonote::blobdata &hashing_blob, uint64_t &height, uint64_t &seed_height, crypto::hash &seed_hash, crypto::hash &next_seed_hash, uint32_t &cookie); bool daemon_requires_payment(); bool make_rpc_payment(uint32_t nonce, uint32_t cookie, uint64_t &credits, uint64_t &balance); -- cgit v1.2.3