Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/impl/btc/coin/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ class Node : public btc::interfaces::Node
{
if (!m_rpc)
return false;
return m_rpc->submit_block_hex(HexStr(block_bytes), /*ignore_failure=*/true);
// MSVC: disambiguate HexStr overload (std::vector<unsigned char> is viable
// for all span overloads). Feed the exact byte span the uint8_t overload wants.
return m_rpc->submit_block_hex(
HexStr(Span<const uint8_t>(block_bytes.data(), block_bytes.size())),
/*ignore_failure=*/true);
}

/// Broadcast a WON block with FALLBACK semantics: P2P relay is primary,
Expand Down
Loading