Skip to content

Commit 810a746

Browse files
committed
Style, delint.
1 parent 0d3ba59 commit 810a746

5 files changed

Lines changed: 30 additions & 4 deletions

File tree

src/protocols/native/protocol_native_address.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@
2424
namespace libbitcoin {
2525
namespace server {
2626

27+
#define CLASS protocol_native
28+
2729
using namespace system;
2830

29-
#define CLASS protocol_native
31+
BC_PUSH_WARNING(NO_INCOMPLETE_SWITCH)
3032

3133
// handle_get_address
3234
// ----------------------------------------------------------------------------
@@ -231,5 +233,7 @@ void protocol_native::complete_get_address_balance(const code& ec,
231233
send_not_found();
232234
}
233235

236+
BC_POP_WARNING()
237+
234238
} // namespace server
235239
} // namespace libbitcoin

src/protocols/native/protocol_native_block.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ namespace server {
3030
using namespace system;
3131
using namespace network::messages::peer;
3232

33+
BC_PUSH_WARNING(NO_INCOMPLETE_SWITCH)
34+
3335
bool protocol_native::handle_get_top(const code& ec, interface::top,
3436
uint8_t, uint8_t media) NOEXCEPT
3537
{
@@ -484,5 +486,7 @@ bool protocol_native::handle_get_block_tx(const code& ec, interface::block_tx,
484486
return true;
485487
}
486488

489+
BC_POP_WARNING()
490+
487491
} // namespace server
488492
} // namespace libbitcoin

src/protocols/native/protocol_native_input.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ namespace server {
2626

2727
using namespace system;
2828

29+
BC_PUSH_WARNING(NO_INCOMPLETE_SWITCH)
30+
BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
31+
2932
bool protocol_native::handle_get_inputs(const code& ec, interface::inputs,
3033
uint8_t, uint8_t media, const hash_cptr& hash, bool witness) NOEXCEPT
3134
{
@@ -94,7 +97,7 @@ bool protocol_native::handle_get_input(const code& ec, interface::input,
9497
// Json input serialization includes witness.
9598
send_json(value_from(input),
9699
two * input->serialized_size(witness));
97-
return true;
100+
return true;
98101
}
99102
}
100103

@@ -155,13 +158,16 @@ bool protocol_native::handle_get_input_witness(const code& ec,
155158
case json:
156159
send_json(value_from(witness),
157160
two * witness->serialized_size(false));
158-
return true;
161+
return true;
159162
}
160163
}
161164

162165
send_not_found();
163166
return true;
164167
}
165168

169+
BC_POP_WARNING()
170+
BC_POP_WARNING()
171+
166172
} // namespace server
167173
} // namespace libbitcoin

src/protocols/native/protocol_native_output.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ namespace server {
2626

2727
using namespace system;
2828

29+
BC_PUSH_WARNING(NO_INCOMPLETE_SWITCH)
30+
BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
31+
2932
bool protocol_native::handle_get_outputs(const code& ec, interface::outputs,
3033
uint8_t, uint8_t media, const hash_cptr& hash) NOEXCEPT
3134
{
@@ -90,7 +93,7 @@ bool protocol_native::handle_get_output(const code& ec, interface::output,
9093
return true;
9194
case json:
9295
send_json(value_from(output), two * size);
93-
return true;
96+
return true;
9497
}
9598
}
9699

@@ -194,5 +197,8 @@ bool protocol_native::handle_get_output_spenders(const code& ec,
194197
return true;
195198
}
196199

200+
BC_POP_WARNING()
201+
BC_POP_WARNING()
202+
197203
} // namespace server
198204
} // namespace libbitcoin

src/protocols/native/protocol_native_tx.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ namespace server {
2626

2727
using namespace system;
2828

29+
BC_PUSH_WARNING(NO_INCOMPLETE_SWITCH)
30+
BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
31+
2932
bool protocol_native::handle_get_tx(const code& ec, interface::tx, uint8_t,
3033
uint8_t media, const hash_cptr& hash, bool witness) NOEXCEPT
3134
{
@@ -167,5 +170,8 @@ bool protocol_native::handle_get_tx_details(const code& ec,
167170
return true;
168171
}
169172

173+
BC_POP_WARNING()
174+
BC_POP_WARNING()
175+
170176
} // namespace server
171177
} // namespace libbitcoin

0 commit comments

Comments
 (0)