Compare 1599e32 ... +3 ... 00045d5

Coverage Reach
wallet/wallet.js wallet/txdb.js wallet/rpc.js wallet/http.js wallet/walletdb.js wallet/account.js wallet/masterkey.js wallet/records.js wallet/path.js wallet/nodeclient.js wallet/common.js wallet/walletcoinview.js wallet/walletkey.js wallet/nullclient.js wallet/plugin.js wallet/paths.js wallet/layout.js net/pool.js net/peer.js net/hostlist.js net/packets.js net/brontide.js net/bip152.js net/netaddress.js net/parser.js net/lookup.js net/slidingwindow.js net/common.js net/framer.js net/seeds/index.js net/seeds/testnet.js net/seeds/main.js primitives/tx.js primitives/mtx.js primitives/airdropproof.js primitives/airdropkey.js primitives/merkleblock.js primitives/keyring.js primitives/covenant.js primitives/abstractblock.js primitives/block.js primitives/address.js primitives/coin.js primitives/claim.js primitives/txmeta.js primitives/input.js primitives/output.js primitives/outpoint.js primitives/memblock.js primitives/headers.js primitives/invitem.js blockchain/chain.js blockchain/chaindb.js blockchain/chainentry.js blockchain/common.js blockchain/layout.js node/rpc.js node/http.js node/fullnode.js node/node.js node/spvnode.js mempool/mempool.js mempool/fees.js mempool/contractstate.js mempool/mempoolentry.js mempool/claimentry.js mempool/airdropentry.js mempool/layout.js script/script.js script/opcode.js script/stack.js script/witness.js script/scriptnum.js script/common.js script/scripterror.js covenants/rules.js covenants/namestate.js covenants/namedelta.js covenants/ownership.js covenants/reserved.js covenants/bitfield.js covenants/view.js covenants/undo.js mining/template.js mining/miner.js mining/cpuminer.js mining/common.js mining/mine.js workers/packets.js workers/workerpool.js workers/parser.js workers/child.js workers/jobs.js workers/framer.js dns/resource.js dns/server.js dns/key.js hd/private.js hd/mnemonic.js hd/public.js hd/hd.js hd/common.js hd/wordlist.js hd/words/french.js hd/words/japanese.js hd/words/chinese-simplified.js hd/words/italian.js hd/words/chinese-traditional.js hd/words/english.js hd/nfkd.js hd/index.js protocol/networks.js protocol/network.js protocol/consensus.js protocol/policy.js protocol/timedata.js protocol/errors.js protocol/genesis.js coins/coinview.js coins/coinentry.js coins/coins.js coins/compress.js coins/undocoins.js utils/fixed.js utils/util.js utils/binary.js ui/amount.js hsd.js pkg.js

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 2 of 4 files from the diff.

@@ -245,6 +245,8 @@
Loading
245 245
    this.add('sendrawairdrop', this.sendRawAirdrop);
246 246
    this.add('validateresource', this.validateResource);
247 247
248 +
    this.add('resetrootcache', this.resetRootCache);
249 +
248 250
    // Compat
249 251
    // this.add('getnameinfo', this.getNameInfo);
250 252
    // this.add('getnameresource', this.getNameResource);
@@ -2519,6 +2521,18 @@
Loading
2519 2521
    return resource.toJSON();
2520 2522
  }
2521 2523
2524 +
  async resetRootCache(args, help) {
2525 +
    if (help || args.length !== 0)
2526 +
      throw new RPCError(errs.MISC_ERROR, 'resetrootcache');
2527 +
2528 +
    if (!this.node.ns)
2529 +
      return null;
2530 +
2531 +
    this.node.ns.resetCache();
2532 +
2533 +
    return null;
2534 +
  }
2535 +
2522 2536
  /*
2523 2537
   * Helpers
2524 2538
   */

@@ -95,6 +95,10 @@
Loading
95 95
96 96
    return Message.decode(item.raw);
97 97
  }
98 +
99 +
  reset() {
100 +
    this.cache.reset();
101 +
  }
98 102
}
99 103
100 104
/**
@@ -409,6 +413,10 @@
Loading
409 413
    this.logger.info('Root nameserver listening on port %d.', this.port);
410 414
  }
411 415
416 +
  resetCache() {
417 +
    this.cache.reset();
418 +
  }
419 +
412 420
  serial() {
413 421
    const date = new Date();
414 422
    const y = date.getUTCFullYear() * 1e6;

Learn more Showing 1 files with coverage changes found.

Changes in lib/covenants/rules.js
-1
+1
Loading file...
Files Coverage
lib -0.02% 62.75%
Project Totals (129 files) 62.75%
Loading