MCPcopy Index your code
hub / github.com/bcoin-org/bcoin / test

Method test

lib/script/script.js:2444–2457  ·  view source on GitHub ↗

* Test the script against a bloom filter. * @param {Bloom} filter * @returns {Boolean}

(filter)

Source from the content-addressed store, hash-verified

2442 */
2443
2444 test(filter) {
2445 for (const op of this.code) {
2446 if (op.value === -1)
2447 break;
2448
2449 if (!op.data || op.data.length === 0)
2450 continue;
2451
2452 if (filter.test(op.data))
2453 return true;
2454 }
2455
2456 return false;
2457 }
2458
2459 /**
2460 * Test the script to see if it contains only push ops.

Callers 15

hasRejectMethod · 0.45
fixed.jsFile · 0.45
common.jsFile · 0.45
importWalletMethod · 0.45
common.jsFile · 0.45
testFilterMethod · 0.45
fromStringMethod · 0.45
fromSymbolMethod · 0.45
checkMethod · 0.45
announceBlockMethod · 0.45
announceTXMethod · 0.45
scanMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected