Skip to content

Commit fd017da

Browse files
committed
Fix ambiguous send_wire().
1 parent 2a6aef4 commit fd017da

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

include/bitcoin/node/protocols/protocol_explore.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ class BCN_API protocol_explore
126126

127127
private:
128128
void send_wire(uint8_t media, system::data_chunk&& data) NOEXCEPT;
129-
void send_wire(uint8_t media, const system::data_slice& slice) NOEXCEPT;
130129
database::header_link to_header(const std::optional<uint32_t>& height,
131130
const std::optional<system::hash_cptr>& hash) NOEXCEPT;
132131

src/protocols/protocol_explore.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ bool protocol_explore::handle_get_block_txs(const code& ec,
194194
case text:
195195
{
196196
const auto data = pointer_cast<const uint8_t>(hashes.data());
197-
send_wire(media, { data, std::next(data, size) });
197+
send_wire(media, to_chunk({ data, std::next(data, size) }));
198198
return true;
199199
}
200200
case json:
@@ -762,15 +762,6 @@ void protocol_explore::send_wire(uint8_t media, data_chunk&& chunk) NOEXCEPT
762762
send_text({}, encode_base16(chunk));
763763
}
764764

765-
void protocol_explore::send_wire(uint8_t media,
766-
const data_slice& slice) NOEXCEPT
767-
{
768-
if (media == data)
769-
send_chunk({}, to_chunk(slice));
770-
else
771-
send_text({}, encode_base16(slice));
772-
}
773-
774765
database::header_link protocol_explore::to_header(
775766
const std::optional<uint32_t>& height,
776767
const std::optional<hash_cptr>& hash) NOEXCEPT

0 commit comments

Comments
 (0)