Commit graph

115 commits

Author SHA1 Message Date
Daniel Cousens
16195cc6ce explicitly import mocha variables 2018-07-23 17:45:01 +10:00
Daniel Cousens
a5db0a4e44 sed -i 's/ var / const /', with const->let fixes 2018-06-25 18:26:23 +10:00
Daniel Cousens
91b8823aa8 sed -i 's/^var /const /' 2018-06-25 16:25:46 +10:00
Karel Bilek
f4e3b52325 Testing virtualSize and weight 2017-06-21 01:38:05 +10:00
Daniel Cousens
f1ab151c31 tests: use safe-buffers throughout 2017-05-23 18:39:53 +10:00
Daniel Cousens
771491bc5a tests: add coinbase with witness transaction fixture 2017-03-09 12:51:40 +11:00
Daniel Cousens
46c87afa3f tests: move export as witness to independent test 2017-03-09 12:51:40 +11:00
Daniel Cousens
946430fd93 tests: reword, more explicit 2016-12-17 14:05:40 +11:00
Daniel Cousens
abf922e808 tests: less ambiguous naming, fix exception check 2016-12-14 09:05:58 +11:00
Thomas Kerin
dec21317e7 Add test checking only old serialization is used in Transaction.hashForSignature 2016-12-10 11:17:53 +11:00
Thomas Kerin
bec7f690ce Rename __hasWitnesses -> hasWitnesses, and add tests 2016-12-08 09:11:13 +11:00
Daniel Cousens
e92ac1d01b pass standard 2016-12-01 01:07:21 +11:00
Daniel Cousens
03dc569236 tests: add test for setWitness 2016-11-15 10:06:18 +11:00
Daniel Cousens
66ad980122 tests: when importing, allow no witness importing for plain hex comparison 2016-11-14 15:05:30 +11:00
Daniel Cousens
de5cf261e6 tests: add getId/getHash tests due to default segwit serialization (failing) 2016-11-14 15:05:30 +11:00
Daniel Cousens
0c198ffa6a tests: merge witness fixtures with valid transactions, reverse reversed hashs (failing) 2016-11-14 15:05:30 +11:00
Daniel Cousens
a1755a43c0 tests: add witness support to fromRaw 2016-11-14 15:05:30 +11:00
Daniel Cousens
5150e3c027 tests: enforce witness transactions use legacy txId 2016-11-14 15:05:30 +11:00
Daniel Cousens
87269fe73e tests: move transactionVersion into toBuffer 2016-11-14 15:05:30 +11:00
Daniel Cousens
dfcb04c9b4 tests: add coinbase flag to each transaction fixture 2016-11-14 15:05:30 +11:00
Daniel Cousens
bc4297ce3c tests: add assertion for witness default to EMPTY_WITNESS 2016-11-14 11:22:22 +11:00
Thomas Kerin
035ec47868 Better test vectors for witness serialization (available on testnet) 2016-11-14 11:22:22 +11:00
Daniel Cousens
b60882a85e tests: fromBuffer/toBuffer, import export each set of fixtures 2016-11-14 11:22:22 +11:00
Daniel Cousens
5c2fdb6043 Transaction: add Witness serialization and hashForWitnessV0 2016-11-14 11:22:22 +11:00
Daniel Cousens
11079bfafb tests: use hardcoded fixture instead of relying on fixture[0] 2016-11-09 12:09:01 +11:00
Thomas Kerin
7b1167708a Transaction and block versions are signed integers 2016-10-13 09:29:03 +11:00
Daniel Cousens
fa54ba4f82 tests/transaction: add test for target Buffer 2016-08-10 11:44:09 +10:00
Daniel Cousens
4898cc7b67 tests: add tests for Transaction.hashForSignature 2016-06-22 14:45:49 +10:00
Daniel Cousens
ea2a7449ad tests: add isCoinbase tests and flags to fixtures 2016-05-03 21:51:30 +10:00
Daniel Cousens
2d75b7e7ff standard: remove padded Blocks 2015-09-05 14:10:32 +10:00
Daniel Cousens
6ec687deba rename scripts to script 2015-08-20 13:55:13 +10:00
Daniel Cousens
e2abe2b3af merge Script/scripts 2015-08-18 14:44:30 +10:00
Daniel Cousens
151386c46d scripts: remove coercion, fromASM returns Buffer 2015-08-18 14:44:30 +10:00
Daniel Cousens
e05f8a542d remove Script object 2015-08-18 14:44:29 +10:00
Daniel Cousens
e743c58ed6 remove usage of instanced Scripts 2015-08-18 14:44:29 +10:00
Daniel Cousens
ec9cea0cf1 tests: use strictEqual always 2015-05-07 11:29:20 +10:00
Daniel Cousens
2f100e0eae tests: add failing pushDataInt fixtures 2015-03-04 20:47:52 +11:00
Daniel Cousens
7f3b4c93ba TxBuilder: move param coercion from Transaction to TxBuilder 2015-03-02 17:51:14 +11:00
Daniel Cousens
8d3686d046 remove deprecated functionality 2015-03-02 17:27:16 +11:00
Daniel Cousens
399803affa use standardjs formatting 2015-02-24 12:45:38 +11:00
Daniel Cousens
445eb260c0 tests: add failing Coinbase transaction fixture 2015-02-19 12:51:24 +11:00
Daniel Cousens
db17e35013 tests: transaction.add* better tested by raw functions 2015-02-19 12:32:05 +11:00
Daniel Cousens
7a515a14ee tests: use beforeEach for initialization 2015-02-19 08:59:10 +11:00
Bez Reyhan
1c6d5a28a9 update fixtures and tests for merge 2014-12-15 19:21:34 -08:00
Daniel Cousens
fc690d418b tests: rename txid to id in Transaction context 2014-12-13 09:48:31 +11:00
Daniel Cousens
ca4e64d071 tests: use ASM for fixtures, avoid JSON comparison 2014-12-13 09:41:52 +11:00
Daniel Cousens
929d926774 tests: make use of the default behaviour 2014-10-17 14:22:51 +11:00
Daniel Cousens
062540e3d9 Transaction: optional script for addInput 2014-10-17 14:16:07 +11:00
Daniel Cousens
884fd542fe Transaction: deprecate Tx signing methods 2014-08-16 17:36:06 +10:00
Daniel Cousens
8eaf44881a Transaction: improve hash length checking + tests 2014-06-17 20:18:39 +10:00