Skip to content

Commit f8fd391

Browse files
committed
Comments.
1 parent 5a69f69 commit f8fd391

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/protocols/protocol_electrum.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ void protocol_electrum::start() NOEXCEPT
8484

8585
void protocol_electrum::stopping(const code& ec) NOEXCEPT
8686
{
87-
// Unsubscriber race is ok.
8887
BC_ASSERT(stranded());
88+
89+
// Unsubscription is asynchronous, race is ok.
8990
unsubscribe_events();
9091
protocol_rpc<channel_electrum>::stopping(ec);
9192
}
@@ -181,7 +182,7 @@ void protocol_electrum::handle_blockchain_block_headers(const code& ec,
181182
blockchain_block_headers(starting, quantity, waypoint, true);
182183
}
183184

184-
// Common implementation for block_header/s.
185+
// Common implementation for blockchain_block_header/s.
185186
void protocol_electrum::blockchain_block_headers(size_t starting,
186187
size_t quantity, size_t waypoint, bool multiplicity) NOEXCEPT
187188
{
@@ -314,6 +315,7 @@ void protocol_electrum::handle_blockchain_headers_subscribe(const code& ec,
314315
}, 256, BIND(complete, _1));
315316
}
316317

318+
// Notifier for blockchain_headers_subscribe events.
317319
void protocol_electrum::do_header(node::header_t link) NOEXCEPT
318320
{
319321
BC_ASSERT(stranded());

0 commit comments

Comments
 (0)