ethereumjs / ethereumjs-monorepo
Showing 1 of 1 files from the diff.

@@ -53,7 +53,6 @@
Loading
53 53
  // Time (in ms) after which the synced state is reset
54 54
  private SYNCED_STATE_REMOVAL_PERIOD = 60000
55 55
  private _syncedStatusCheckInterval: NodeJS.Timeout | undefined /* global NodeJS */
56 -
  private _boundChainUpdatedEvent: () => void
57 56
58 57
  /**
59 58
   * Create new node
@@ -78,8 +77,9 @@
Loading
78 77
      }
79 78
    })
80 79
81 -
    this._boundChainUpdatedEvent = this.updateSynchronizedState.bind(this)
82 -
    this.config.events.on(Event.CHAIN_UPDATED, this._boundChainUpdatedEvent)
80 +
    this.config.events.on(Event.CHAIN_UPDATED, () => {
81 +
      this.updateSynchronizedState()
82 +
    })
83 83
  }
84 84
85 85
  /**
@@ -183,7 +183,6 @@
Loading
183 183
      return false
184 184
    }
185 185
    clearInterval(this._syncedStatusCheckInterval as NodeJS.Timeout)
186 -
    this.config.events.removeListener(Event.CHAIN_UPDATED, this._boundChainUpdatedEvent)
187 186
    await new Promise((resolve) => setTimeout(resolve, this.interval))
188 187
    this.running = false
189 188
    this.config.logger.info('Stopped synchronization.')
Files Coverage
packages 81.81%
Project Totals (133 files) 81.81%
1
coverage:
2
  status:
3
    project:
4
      default:
5
        target: auto
6
        threshold: 2%
7
    patch:
8
      default:
9
        target: auto
10
        threshold: 5%
11
comment:
12
  layout: 'reach, flags'
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading