ethereumjs / ethereumjs-monorepo

Compare 4fd401c ... +0 ... e001ba0

Coverage Reach
vm/src/evm/precompiles/09-blake2f.ts vm/src/evm/precompiles/util/bls12_381.ts vm/src/evm/precompiles/05-modexp.ts vm/src/evm/precompiles/10-bls12-pairing.ts vm/src/evm/precompiles/0c-bls12-g1multiexp.ts vm/src/evm/precompiles/0f-bls12-g2multiexp.ts vm/src/evm/precompiles/index.ts vm/src/evm/precompiles/0e-bls12-g2mul.ts vm/src/evm/precompiles/0a-bls12-g1add.ts vm/src/evm/precompiles/0d-bls12-g2add.ts vm/src/evm/precompiles/0b-bls12-g1mul.ts vm/src/evm/precompiles/12-bls12-map-fp2-to-g2.ts vm/src/evm/precompiles/11-bls12-map-fp-to-g1.ts vm/src/evm/precompiles/01-ecrecover.ts vm/src/evm/precompiles/08-ecpairing.ts vm/src/evm/precompiles/07-ecmul.ts vm/src/evm/precompiles/06-ecadd.ts vm/src/evm/precompiles/03-ripemd160.ts vm/src/evm/precompiles/04-identity.ts vm/src/evm/precompiles/02-sha256.ts vm/src/evm/opcodes/functions.ts vm/src/evm/opcodes/util.ts vm/src/evm/opcodes/EIP2929.ts vm/src/evm/opcodes/codes.ts vm/src/evm/opcodes/EIP2200.ts vm/src/evm/opcodes/EIP1283.ts vm/src/evm/opcodes/index.ts vm/src/evm/evm.ts vm/src/evm/eei.ts vm/src/evm/interpreter.ts vm/src/evm/stack.ts vm/src/evm/memory.ts vm/src/evm/message.ts vm/src/evm/txContext.ts vm/src/state/stateManager.ts vm/src/state/cache.ts vm/src/state/index.ts vm/src/runTx.ts vm/src/runBlock.ts vm/src/index.ts vm/src/buildBlock.ts vm/src/bloom/index.ts vm/src/exceptions.ts vm/src/runCall.ts vm/src/runCode.ts vm/src/runBlockchain.ts client/lib/sync/fetcher/fetcher.ts client/lib/sync/fetcher/blockfetcher.ts client/lib/sync/fetcher/headerfetcher.ts client/lib/sync/fetcher/blockfetcherbase.ts client/lib/sync/txpool.ts client/lib/sync/fullsync.ts client/lib/sync/execution/vmexecution.ts client/lib/sync/execution/execution.ts client/lib/sync/sync.ts client/lib/sync/lightsync.ts client/lib/net/protocol/boundprotocol.ts client/lib/net/protocol/ethprotocol.ts client/lib/net/protocol/lesprotocol.ts client/lib/net/protocol/protocol.ts client/lib/net/protocol/flowcontrol.ts client/lib/net/protocol/libp2psender.ts client/lib/net/protocol/rlpxsender.ts client/lib/net/protocol/sender.ts client/lib/net/server/rlpxserver.ts client/lib/net/server/libp2pserver.ts client/lib/net/server/server.ts client/lib/net/peer/rlpxpeer.ts client/lib/net/peer/libp2ppeer.ts client/lib/net/peer/peer.ts client/lib/net/peer/libp2pnode.ts client/lib/net/peerpool.ts client/lib/rpc/modules/eth.ts client/lib/rpc/modules/engine.ts client/lib/rpc/modules/admin.ts client/lib/rpc/modules/net.ts client/lib/rpc/modules/web3.ts client/lib/rpc/validation.ts client/lib/rpc/index.ts client/lib/rpc/error-code.ts client/lib/service/fullethereumservice.ts client/lib/service/service.ts client/lib/service/ethereumservice.ts client/lib/service/lightethereumservice.ts client/lib/miner/miner.ts client/lib/util/parse.ts client/lib/util/index.ts client/lib/config.ts client/lib/blockchain/chain.ts client/lib/client.ts client/lib/types.ts client/lib/logging.ts devp2p/src/rlpx/peer.ts devp2p/src/rlpx/ecies.ts devp2p/src/rlpx/rlpx.ts devp2p/src/rlpx/mac.ts devp2p/src/rlpx/index.ts devp2p/src/dpt/server.ts devp2p/src/dpt/dpt.ts devp2p/src/dpt/message.ts devp2p/src/dpt/kbucket.ts devp2p/src/dpt/ban-list.ts devp2p/src/dpt/index.ts devp2p/src/eth/index.ts devp2p/src/les/index.ts devp2p/src/dns/dns.ts devp2p/src/dns/enr.ts devp2p/src/dns/index.ts devp2p/src/util.ts devp2p/src/index.ts devp2p/src/browser/dns.ts block/src/header.ts block/src/block.ts block/src/from-rpc.ts block/src/helpers.ts block/src/header-from-rpc.ts block/src/clique.ts block/src/index.ts blockchain/src/index.ts tx/src/legacyTransaction.ts tx/src/eip1559Transaction.ts tx/src/eip2930Transaction.ts tx/src/baseTransaction.ts tx/src/util.ts tx/src/transactionFactory.ts tx/src/types.ts common/src/index.ts common/src/chains/index.ts common/src/genesisStates/index.ts common/src/eips/index.ts common/src/hardforks/index.ts ethash/src/index.ts ethash/src/util.ts

Flags

Flags have been temporarily removed from this view while the flagging feature is refactored for better performance and user experience.

You can still use flags when viewing individual files. Flag-level thresholds will also remain on pull and merge requests in your repository provider.

More information can be found in our documentation.

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.')

Learn more Showing 62 files with coverage changes found.

Changes in packages/devp2p/src/rlpx/rlpx.ts
-2
+1
+1
Loading file...
Changes in packages/block/src/helpers.ts
+2
+1
Loading file...
Changes in packages/devp2p/src/rlpx/mac.ts
+4
Loading file...
Changes in packages/block/src/header-from-rpc.ts
+6
Loading file...
Changes in packages/block/src/clique.ts
+1
Loading file...
Changes in packages/common/src/genesisStates/index.ts
+3
Loading file...
Changes in packages/common/src/chains/index.ts
+7
Loading file...
packages/blockchain/src/clique.ts
Loading file...
packages/tx/src/index.ts
Loading file...
New file packages/client/lib/net/protocol/ethprotocol.ts
New
Loading file...
New file packages/client/lib/sync/sync.ts
New
Loading file...
New file packages/client/lib/service/fullethereumservice.ts
New
Loading file...
New file packages/client/lib/net/peer/libp2ppeer.ts
New
Loading file...
New file packages/client/lib/net/protocol/libp2psender.ts
New
Loading file...
New file packages/client/lib/service/service.ts
New
Loading file...
New file packages/devp2p/src/dpt/index.ts
New
Loading file...
New file packages/client/lib/rpc/modules/admin.ts
New
Loading file...
New file packages/devp2p/src/rlpx/index.ts
New
Loading file...
New file packages/client/lib/net/protocol/boundprotocol.ts
New
Loading file...
New file packages/client/lib/sync/fetcher/blockfetcherbase.ts
New
Loading file...
New file packages/common/src/hardforks/index.ts
New
Loading file...
New file packages/client/lib/sync/fetcher/headerfetcher.ts
New
Loading file...
New file packages/client/lib/service/lightethereumservice.ts
New
Loading file...
New file packages/client/lib/sync/fetcher/fetcher.ts
New
Loading file...
New file packages/client/lib/blockchain/chain.ts
New
Loading file...
New file packages/client/lib/util/parse.ts
New
Loading file...
New file packages/client/lib/sync/txpool.ts
New
Loading file...
New file packages/client/lib/rpc/modules/engine.ts
New
Loading file...
New file packages/client/lib/client.ts
New
Loading file...
New file packages/client/lib/rpc/error-code.ts
New
Loading file...
New file packages/client/lib/net/protocol/lesprotocol.ts
New
Loading file...
New file packages/client/lib/util/index.ts
New
Loading file...
New file packages/client/lib/rpc/modules/net.ts
New
Loading file...
New file packages/client/lib/net/protocol/flowcontrol.ts
New
Loading file...
New file packages/client/lib/miner/miner.ts
New
Loading file...
New file packages/devp2p/src/index.ts
New
Loading file...
New file packages/devp2p/src/dns/index.ts
New
Loading file...
New file packages/client/lib/config.ts
New
Loading file...
New file packages/client/lib/sync/lightsync.ts
New
Loading file...
New file packages/client/lib/sync/execution/execution.ts
New
Loading file...
New file packages/client/lib/rpc/validation.ts
New
Loading file...
New file packages/client/lib/sync/execution/vmexecution.ts
New
Loading file...
New file packages/client/lib/logging.ts
New
Loading file...
New file packages/client/lib/rpc/index.ts
New
Loading file...
New file packages/block/src/index.ts
New
Loading file...
New file packages/client/lib/service/ethereumservice.ts
New
Loading file...
New file packages/client/lib/net/server/server.ts
New
Loading file...
New file packages/client/lib/net/protocol/sender.ts
New
Loading file...
New file packages/client/lib/types.ts
New
Loading file...
New file packages/client/lib/net/peer/libp2pnode.ts
New
Loading file...
New file packages/common/src/eips/index.ts
New
Loading file...
New file packages/client/lib/net/protocol/rlpxsender.ts
New
Loading file...
New file packages/client/lib/net/server/libp2pserver.ts
New
Loading file...
New file packages/client/lib/net/server/rlpxserver.ts
New
Loading file...
New file packages/client/lib/rpc/modules/eth.ts
New
Loading file...
New file packages/client/lib/net/peerpool.ts
New
Loading file...
New file packages/client/lib/net/peer/rlpxpeer.ts
New
Loading file...
New file packages/client/lib/sync/fullsync.ts
New
Loading file...
New file packages/client/lib/sync/fetcher/blockfetcher.ts
New
Loading file...
New file packages/client/lib/rpc/modules/web3.ts
New
Loading file...
New file packages/client/lib/net/protocol/protocol.ts
New
Loading file...
New file packages/client/lib/net/peer/peer.ts
New
Loading file...
Files Coverage
packages -1.15% 81.81%
Project Totals (133 files) 81.81%
Loading