@@ -47,11 +47,71 @@ class BCN_API protocol_electrum
4747 void start () NOEXCEPT override ;
4848
4949protected:
50- // / Handlers.
50+ // / Handlers (blockchain).
51+ bool handle_blockchain_block_header (const code& ec,
52+ rpc_interface::blockchain_block_header, double height,
53+ double cp_height) NOEXCEPT;
54+ bool handle_blockchain_block_headers (const code& ec,
55+ rpc_interface::blockchain_block_headers, double start_height,
56+ double count, double cp_height) NOEXCEPT;
5157 bool handle_blockchain_headers_subscribe (const code& ec,
5258 rpc_interface::blockchain_headers_subscribe) NOEXCEPT;
59+ bool handle_blockchain_estimatefee (const code& ec,
60+ rpc_interface::blockchain_estimatefee, double ) NOEXCEPT;
5361 bool handle_blockchain_relayfee (const code& ec,
5462 rpc_interface::blockchain_relayfee) NOEXCEPT;
63+ bool handle_blockchain_scripthash_get_balance (const code& ec,
64+ rpc_interface::blockchain_scripthash_get_balance,
65+ const std::string& scripthash) NOEXCEPT;
66+ bool handle_blockchain_scripthash_get_history (const code& ec,
67+ rpc_interface::blockchain_scripthash_get_history,
68+ const std::string& scripthash) NOEXCEPT;
69+ bool handle_blockchain_scripthash_get_mempool (const code& ec,
70+ rpc_interface::blockchain_scripthash_get_mempool,
71+ const std::string& scripthash) NOEXCEPT;
72+ bool handle_blockchain_scripthash_listunspent (const code& ec,
73+ rpc_interface::blockchain_scripthash_listunspent,
74+ const std::string& scripthash) NOEXCEPT;
75+ bool handle_blockchain_scripthash_subscribe (const code& ec,
76+ rpc_interface::blockchain_scripthash_subscribe,
77+ const std::string& scripthash) NOEXCEPT;
78+ bool handle_blockchain_scripthash_unsubscribe (const code& ec,
79+ rpc_interface::blockchain_scripthash_unsubscribe,
80+ const std::string& scripthash) NOEXCEPT;
81+ bool handle_blockchain_transaction_broadcast (const code& ec,
82+ rpc_interface::blockchain_transaction_broadcast,
83+ const std::string& raw_tx) NOEXCEPT;
84+ bool handle_blockchain_transaction_get (const code& ec,
85+ rpc_interface::blockchain_transaction_get, const std::string& tx_hash,
86+ bool verbose) NOEXCEPT;
87+ bool handle_blockchain_transaction_get_merkle (const code& ec,
88+ rpc_interface::blockchain_transaction_get_merkle,
89+ const std::string& tx_hash, double height) NOEXCEPT;
90+ bool handle_blockchain_transaction_id_from_pos (const code& ec,
91+ rpc_interface::blockchain_transaction_id_from_pos, double height,
92+ double tx_pos, bool merkle) NOEXCEPT;
93+
94+ // / Handlers (server).
95+ bool handle_server_add_peer (const code& ec,
96+ rpc_interface::server_add_peer,
97+ const network::rpc::object_t & features) NOEXCEPT;
98+ bool handle_server_banner (const code& ec,
99+ rpc_interface::server_banner) NOEXCEPT;
100+ bool handle_server_donation_address (const code& ec,
101+ rpc_interface::server_donation_address) NOEXCEPT;
102+ bool handle_server_features (const code& ec,
103+ rpc_interface::server_features) NOEXCEPT;
104+ bool handle_server_peers_subscribe (const code& ec,
105+ rpc_interface::server_peers_subscribe) NOEXCEPT;
106+ bool handle_server_ping (const code& ec,
107+ rpc_interface::server_ping) NOEXCEPT;
108+ bool handle_server_version (const code& ec,
109+ rpc_interface::server_version, const std::string& client_name,
110+ const network::rpc::value_t & protocol_version) NOEXCEPT;
111+
112+ // / Handlers (mempool).
113+ bool handle_mempool_get_fee_histogram (const code& ec,
114+ rpc_interface::mempool_get_fee_histogram) NOEXCEPT;
55115};
56116
57117} // namespace node
0 commit comments