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/protocols/protocol_electrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ void protocol_electrum::handle_server_ping(const code& ec,
send_code(error::not_implemented);
}

// TODO: move to handshake protocol.
// TODO: strip extraneous args before dispatch.
// Changed in version 1.6: server must tolerate and ignore extraneous args.
void protocol_electrum::handle_server_version(const code& ec,
Expand All @@ -268,7 +269,7 @@ void protocol_electrum::handle_server_version(const code& ec,
{ string_t{ get_server() } },
{ string_t{ get_version() } }
}
}, 100);
}, 70);
}

// Handlers (mempool).
Expand Down Expand Up @@ -348,6 +349,9 @@ bool protocol_electrum::set_version(const value_t& version) NOEXCEPT
if (lower > upper)
return false;

LOGA("Electrum [" << authority() << "] version ("
<< version_to_string(client_max) << ") " << get_client());

version_ = upper;
return true;
}
Expand Down
Loading