Skip to content

Commit 2f18a61

Browse files
committed
Use namespace, use const&.
1 parent a1b93d1 commit 2f18a61

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

include/bitcoin/node/protocols/protocol_explore.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,36 +72,36 @@ class BCN_API protocol_explore
7272
////bool handle_get_block_txs(const code& ec, interface::block_txs,
7373
//// uint8_t version, uint8_t media, std::optional<system::hash_cptr> hash,
7474
//// std::optional<uint32_t> height) NOEXCEPT;
75-
////
75+
7676
////bool handle_get_block_tx(const code& ec, interface::block_tx,
7777
//// uint8_t version, uint8_t media, uint32_t position,
7878
//// std::optional<system::hash_cptr> hash,
7979
//// std::optional<uint32_t> height, bool witness) NOEXCEPT;
80-
////
80+
8181
bool handle_get_transaction(const code& ec, interface::transaction,
82-
uint8_t version, uint8_t media, system::hash_cptr hash,
82+
uint8_t version, uint8_t media, const system::hash_cptr& hash,
8383
bool witness) NOEXCEPT;
8484
////bool handle_get_address(const code& ec, interface::address,
85-
//// uint8_t version, uint8_t media, system::hash_cptr hash) NOEXCEPT;
86-
////
85+
//// uint8_t version, uint8_t media, const system::hash_cptr& hash) NOEXCEPT;
86+
8787
////bool handle_get_input(const code& ec, interface::input,
88-
//// uint8_t version, uint8_t media, system::hash_cptr hash,
88+
//// uint8_t version, uint8_t media, const system::hash_cptr& hash,
8989
//// std::optional<uint32_t> index) NOEXCEPT;
9090
////bool handle_get_input_script(const code& ec, interface::input_script,
91-
//// uint8_t version, uint8_t media, system::hash_cptr hash,
91+
//// uint8_t version, uint8_t media, const system::hash_cptr& hash,
9292
//// std::optional<uint32_t> index) NOEXCEPT;
9393
////bool handle_get_input_witness(const code& ec, interface::input_witness,
94-
//// uint8_t version, uint8_t media, system::hash_cptr hash,
94+
//// uint8_t version, uint8_t media, const system::hash_cptr& hash,
9595
//// std::optional<uint32_t> index) NOEXCEPT;
96-
////
96+
9797
////bool handle_get_output(const code& ec, interface::output,
98-
//// uint8_t version, uint8_t media, system::hash_cptr hash,
98+
//// uint8_t version, uint8_t media, const system::hash_cptr& hash,
9999
//// std::optional<uint32_t> index) NOEXCEPT;
100100
////bool handle_get_output_script(const code& ec, interface::output_script,
101-
//// uint8_t version, uint8_t media, system::hash_cptr hash,
101+
//// uint8_t version, uint8_t media, const system::hash_cptr& hash,
102102
//// std::optional<uint32_t> index) NOEXCEPT;
103103
////bool handle_get_output_spender(const code& ec, interface::output_spender,
104-
//// uint8_t version, uint8_t media, system::hash_cptr hash,
104+
//// uint8_t version, uint8_t media, const system::hash_cptr& hash,
105105
//// std::optional<uint32_t> index) NOEXCEPT;
106106

107107
private:

src/protocols/protocol_explore.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ bool protocol_explore::try_dispatch_object(const request& request) NOEXCEPT
101101
// ----------------------------------------------------------------------------
102102

103103
bool protocol_explore::handle_get_block(const code& ec, interface::block,
104-
uint8_t, uint8_t media, std::optional<system::hash_cptr> hash,
104+
uint8_t, uint8_t media, std::optional<hash_cptr> hash,
105105
std::optional<uint32_t> height, bool witness) NOEXCEPT
106106
{
107107
BC_ASSERT(stranded());
@@ -139,7 +139,7 @@ bool protocol_explore::handle_get_block(const code& ec, interface::block,
139139
}
140140

141141
bool protocol_explore::handle_get_header(const code& ec, interface::header,
142-
uint8_t, uint8_t media, std::optional<system::hash_cptr> hash,
142+
uint8_t, uint8_t media, std::optional<hash_cptr> hash,
143143
std::optional<uint32_t> height) NOEXCEPT
144144
{
145145
BC_ASSERT(stranded());
@@ -177,7 +177,7 @@ bool protocol_explore::handle_get_header(const code& ec, interface::header,
177177
}
178178

179179
bool protocol_explore::handle_get_transaction(const code& ec,
180-
interface::transaction, uint8_t, uint8_t media, system::hash_cptr hash,
180+
interface::transaction, uint8_t, uint8_t media, const hash_cptr& hash,
181181
bool witness) NOEXCEPT
182182
{
183183
BC_ASSERT(stranded());

0 commit comments

Comments
 (0)