Trace comment on new block inclusion (#100)

This commit is contained in:
rakita
2020-12-02 11:31:11 +01:00
committed by GitHub
parent 51d824fbdc
commit 56131b6d92
26 changed files with 146 additions and 45 deletions

View File

@@ -175,6 +175,7 @@ impl<C> ChainNotificationHandler<C> {
}
impl<C: BlockChainClient> ChainNotify for ChainNotificationHandler<C> {
// t_nb 11.3 RPC. Notify subscriber header/logs about new block
fn new_blocks(&self, new_blocks: NewBlocks) {
if self.heads_subscribers.read().is_empty() && self.logs_subscribers.read().is_empty() {
return;