Commit Graph

11 Commits

Author SHA1 Message Date
MattFaus
7257526de3 Reverting modifications of testdata 2014-03-21 12:13:23 -07:00
MattFaus
a2a923fa99 Get Transaction test cases running
I removed the skip over the tx_valid.json file and made some tweaks to get most of the test cases passing.  There are still two test cases that fail, as pointed out by the TODO comment I added above them. Oddly, running the test suite reports 3 failing test cases, but if I delete the two marked with the TODO there are 0 reported failures. So, there may be some kind of interaction with these test cases and the others. More investigation is needed.

I updated the two test cases that were testing transaction `23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63` with the input script I found on blockchain.info https://blockchain.info/tx/23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63. A quick search found one other person who was using this same script (23b397edcc.json) and the test passes now, so I'm not sure why the old script was being used.

All of the other changes are simply re-formatting decimal numbers as hex (i.e. `1` => `0x01`).

Furthermore, I added some code in the test fixture itself to verify each of the inputs.

Test Plan:
`mocha -R spec test/test.Transaction.js`
2014-03-21 12:13:23 -07:00
Matias Alejo Garcia
041f06aae1 dynamic fee 2014-03-16 23:47:01 -03:00
Matias Alejo Garcia
a2041d5790 add TX signing. Support to p2pubkeyhash 2014-03-15 21:12:23 -03:00
Matias Alejo Garcia
b6e6ad28eb fix variable names 2014-03-15 18:21:59 -03:00
Matias Alejo Garcia
706162e2ba #create for Transaction and tests 2014-03-15 12:21:59 -03:00
Matias Alejo Garcia
ada92746b7 selectUnspent function and tests 2014-03-14 17:38:42 -03:00
Manuel Araoz
e83590f528 fix Script parsing for some cases, setup ScriptInterpreter tests 2014-03-07 14:43:29 -03:00
Manuel Araoz
40ee699453 working on Transaction verification and Script tests 2014-03-05 09:56:42 -03:00
Manuel Araoz
a2bd68f456 add bitcoin/bitcoin test data 2014-03-05 09:56:42 -03:00
Manuel Araoz
6a24e7fbe0 load test data from files 2014-02-24 11:59:43 -03:00