forked from lthn/blockchain
zano: resolve build warnings (-Wdelete-non-virtual-dtor)
This commit is contained in:
parent
e344efefb7
commit
17373549c0
6 changed files with 11 additions and 3 deletions
|
|
@ -12,6 +12,8 @@ namespace currency
|
|||
{
|
||||
struct i_bc_service
|
||||
{
|
||||
virtual ~i_bc_service() = default;
|
||||
|
||||
virtual std::string get_id() = 0;
|
||||
virtual bool init(const std::string& config_folder, const boost::program_options::variables_map& vm) = 0;
|
||||
virtual bool deinit() = 0;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace currency
|
|||
/************************************************************************/
|
||||
/* */
|
||||
/************************************************************************/
|
||||
class simple_wallet : public tools::i_wallet2_callback,
|
||||
class simple_wallet final : public tools::i_wallet2_callback,
|
||||
public std::enable_shared_from_this<simple_wallet>
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
namespace tools
|
||||
{
|
||||
class default_http_core_proxy: public i_core_proxy
|
||||
class default_http_core_proxy final : public i_core_proxy
|
||||
{
|
||||
public:
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ namespace tools
|
|||
*/
|
||||
struct i_core_proxy
|
||||
{
|
||||
virtual ~i_core_proxy() = default;
|
||||
|
||||
virtual bool set_connection_addr(const std::string& url){ return false; }
|
||||
virtual bool call_COMMAND_RPC_GET_TX_GLOBAL_OUTPUTS_INDEXES(const currency::COMMAND_RPC_GET_TX_GLOBAL_OUTPUTS_INDEXES::request& rqt, currency::COMMAND_RPC_GET_TX_GLOBAL_OUTPUTS_INDEXES::response& rsp){ return false; }
|
||||
virtual bool call_COMMAND_RPC_GET_BLOCKS_FAST(const currency::COMMAND_RPC_GET_BLOCKS_FAST::request& rqt, currency::COMMAND_RPC_GET_BLOCKS_FAST::response& rsp){ return false; }
|
||||
|
|
|
|||
|
|
@ -68,6 +68,8 @@ namespace tools
|
|||
class i_wallet2_callback
|
||||
{
|
||||
public:
|
||||
virtual ~i_wallet2_callback() = default;
|
||||
|
||||
virtual void on_new_block(uint64_t /*height*/, const currency::block& /*block*/) {}
|
||||
virtual void on_transfer2(const wallet_rpc::wallet_transfer_info& wti, uint64_t balance, uint64_t unlocked_balance, uint64_t total_mined) {}
|
||||
virtual void on_pos_block_found(const currency::block& /*block*/) {}
|
||||
|
|
@ -1204,4 +1206,4 @@ namespace tools
|
|||
|
||||
#undef LOG_DEFAULT_CHANNEL
|
||||
#define LOG_DEFAULT_CHANNEL "wallet"
|
||||
ENABLE_CHANNEL_BY_DEFAULT("wallet");
|
||||
ENABLE_CHANNEL_BY_DEFAULT("wallet");
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
class test_core_listener
|
||||
{
|
||||
public:
|
||||
virtual ~test_core_listener() = default;
|
||||
|
||||
virtual void before_tx_pushed_to_core(const currency::transaction& tx, const currency::blobdata& blob, currency::core& c, bool invalid_tx = false) {} // invalid_tx is true when processing a tx, marked as invalid in a test
|
||||
virtual void before_block_pushed_to_core(const currency::block& block, const currency::blobdata& blob, currency::core& c) {}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue