Created
July 29, 2020 12:21
-
-
Save tuxcanfly/b20e36c6f6cb38ac99007523ee7d3133 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1541 passing (49s) | |
3 pending | |
10 failing | |
1) Disable TXs | |
should reject tx from mempool before txStart: | |
AssertionError [ERR_ASSERTION]: Missing expected rejection. | |
await assert.rejects(node.mempool.addTX(tx), | |
at async Context.<anonymous> (/home/tuxcanfly/Work/hsd/test/txstart-test.js:77:5) | |
2) Disable TXs | |
should reject claim from mempool before txStart: | |
AssertionError [ERR_ASSERTION]: Missing expected rejection. | |
await assert.rejects(node.mempool.addClaim(claim), | |
at async Context.<anonymous> (/home/tuxcanfly/Work/hsd/test/txstart-test.js:86:7) | |
3) Disable TXs | |
should reject airdrop from mempool before txStart: | |
AssertionError [ERR_ASSERTION]: Missing expected rejection. | |
await assert.rejects(node.mempool.addAirdrop(proof), | |
at async Context.<anonymous> (/home/tuxcanfly/Work/hsd/test/txstart-test.js:94:5) | |
4) Disable TXs | |
should reject block with >1 coinbase output before txStart: | |
AssertionError [ERR_ASSERTION]: Missing expected rejection. | |
await assert.rejects(node.chain.add(block, VERIFY_NONE), | |
at async Context.<anonymous> (/home/tuxcanfly/Work/hsd/test/txstart-test.js:111:5) | |
5) Disable TXs | |
should reject non-empty block before txStart: | |
AssertionError [ERR_ASSERTION]: Missing expected rejection. | |
await assert.rejects(node.chain.add(block, VERIFY_NONE), | |
at async Context.<anonymous> (/home/tuxcanfly/Work/hsd/test/txstart-test.js:135:5) | |
6) Disable TXs | |
should add blocks until one block before txStart: | |
AssertionError [ERR_ASSERTION]: 4 strictEqual 2 | |
Expected values to be strictly equal: | |
4 !== 2 | |
assert.strictEqual(node.chain.height + 1, node.network.txStart); | |
^ | |
at Context.<anonymous> (/home/tuxcanfly/Work/hsd/test/txstart-test.js:169:12) | |
at /home/tuxcanfly/Work/hsd/node_modules/bmocha/lib/bmocha.js:1153:30 | |
at new Promise (<anonymous>) | |
7) Disable TXs | |
should allow tx in mempool one block before txStart: | |
Error: Verification failure: bad-txns-premature-spend-of-coinbase (code=invalid score=0 hash=2c24604645678ef77c5a0e3aba9317520c15c854641796203917e055f4050a4f) | |
throw new VerifyError(tx, 'invalid', reason, score); | |
^ | |
at Mempool.verify (/home/tuxcanfly/Work/hsd/lib/mempool/mempool.js:1613:13) | |
at async Mempool.insertTX (/home/tuxcanfly/Work/hsd/lib/mempool/mempool.js:1507:5) | |
at async Mempool._addTX (/home/tuxcanfly/Work/hsd/lib/mempool/mempool.js:1388:17) | |
at async Mempool.addTX (/home/tuxcanfly/Work/hsd/lib/mempool/mempool.js:1367:14) | |
at async Context.<anonymous> (/home/tuxcanfly/Work/hsd/test/txstart-test.js:182:5) | |
8) Disable TXs | |
should allow claim in mempool one block before txStart: | |
Error: Verification failure: name-already-in-mempool (code=alreadyknown score=0 hash=4303fd61bc93b5d62dab14dc3ce052efa6e066e48e95938fab34ffb98d448feb) | |
throw new VerifyError(claim, | |
^ | |
at Mempool.insertClaim (/home/tuxcanfly/Work/hsd/lib/mempool/mempool.js:1078:13) | |
at runMicrotasks (<anonymous>) | |
at processTicksAndRejections (internal/process/task_queues.js:97:5) | |
at async Mempool._addClaim (/home/tuxcanfly/Work/hsd/lib/mempool/mempool.js:1031:5) | |
at async Mempool.addClaim (/home/tuxcanfly/Work/hsd/lib/mempool/mempool.js:1012:14) | |
at async Context.<anonymous> (/home/tuxcanfly/Work/hsd/test/txstart-test.js:193:7) | |
9) Disable TXs | |
should allow airdrop in mempool one block before txStart: | |
Error: Verification failure: txn-already-in-mempool (code=alreadyknown score=0 hash=e4b65f71252d96b12154dbd29ea32895460cec3402981f26e112fc2ce9f2c87c) | |
throw new VerifyError(proof, | |
^ | |
at Mempool.insertAirdrop (/home/tuxcanfly/Work/hsd/lib/mempool/mempool.js:1250:13) | |
at Mempool._addAirdrop (/home/tuxcanfly/Work/hsd/lib/mempool/mempool.js:1228:16) | |
at Mempool.addAirdrop (/home/tuxcanfly/Work/hsd/lib/mempool/mempool.js:1209:25) | |
at async Context.<anonymous> (/home/tuxcanfly/Work/hsd/test/txstart-test.js:203:5) | |
10) Disable TXs | |
should accept a block full of goodies at txStart: | |
AssertionError [ERR_ASSERTION]: 4 strictEqual 2 | |
Expected values to be strictly equal: | |
4 !== 2 | |
assert.strictEqual(node.chain.height, node.network.txStart); | |
^ | |
at Context.<anonymous> (/home/tuxcanfly/Work/hsd/test/txstart-test.js:219:12) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment