679 Commits (9ab6eefef31ee9d67a4f15fb6d9b721a130185cb)

Author SHA1 Message Date
mruddy 9b727afc71 fix signature hasDefinedHashtype method to be closer to the Bitcoin Core function IsDefinedHashtypeSignature 10 years ago
mruddy 02cad1645a fix root cause for bitcore.Transaction.sighash.sign not setting nhashtype. 10 years ago
Gregg Zigler b6d44f4622 camelCase variable names 10 years ago
Gregg Zigler 77645c7f03 remove skipped tests since equalivant boolean tests already exist 10 years ago
Gregg Zigler 183ffab02b match bitcore style standards, rename arg, set default to true 10 years ago
Gregg Zigler a4b8c06a2d get-signature-count needed to measure txs with many inputs or outputs 10 years ago
Brandon Roberts 3518843f98 stylistic change and unnecessary test code removal 10 years ago
Brandon Roberts 783c59d99e removed Networks.all and associated test 10 years ago
Brandon Roberts a53bd10f42 test explicitly passed invalid network 10 years ago
Ivan Socolsky f638b5bd6e test fee per kb 10 years ago
Brandon Robertz a38c0c2d93 modularize network version check/tests issues/1265 10 years ago
Kirill Fomichev b9d52b79c8 fix Transaction.sortOutputs 10 years ago
mpolci 0d2784eb1e created test to verify correct network initialization in PrivateKey.fromJSON() 10 years ago
Braydon Fuller a03e6b9385 Add base option for BN.fromString 10 years ago
Manuel Araoz e2542866d1 expose BN.fromString problem 10 years ago
Braydon Fuller ffe6b449cb Check the compressed property in Signature.fromCompact tests. 10 years ago
Braydon Fuller a5cd5a1407 Added support for uncompressed public keys to Signature.fromCompact 10 years ago
Braydon Fuller 7719d1bfd4 Add test with uncompressed pubkey compact signature. 10 years ago
Braydon Fuller ee651df635 Added test for null input for transaction.verify() 10 years ago
David de Kloet 3ace170ac5 Ignore fee error when unspent output is actually negative, rather than already when the check for negative unspent output is disabled. 10 years ago
David de Kloet ac2fbe2777 When disableMoreOutputThanInput is set for getSerializationError, also disable the fee checks as the concept of a fee is meaningless when unspent output value is negative. This also allows for removing the opts from buildSkipTest again and simplifying the skip test for disableMoreOutputThanInput. 10 years ago
David de Kloet dc07788e53 Put )); on a separate line. 10 years ago
David de Kloet 6729b38944 Expect the correct error to be thrown. 10 years ago
David de Kloet 8c5b2c851b When checking for transaction serialization errors, check the output amount before checking fee errors. Added a test for it and also improved buildSkipTest by specifying which error to expect and using it for some tests where it wasn't used yet. 10 years ago
Manuel Araoz 74e285dadd fix imports for block tests 10 years ago
Manuel Araoz 6e49ed0e40 reorganize block test files 10 years ago
Braydon Fuller 1c8ebc0eb5 Simplify version guard 10 years ago
Braydon Fuller 7723dd302a Added test case for an empty OP_RETURN for script.getData() Fixes #1237 10 years ago
Kirill Fomichev 7e3993578c improve guard for prevent more than one instance of bitcore 10 years ago
Manuel Araoz 8a13a22baf add Transaction#clearOutputs 10 years ago
Braydon Fuller 458abe069e Fixed issue with handling invalid output scripts 10 years ago
David de Kloet e294505486 Some transaction tests were not run because of the way they were built. Fixed this so they are run and fixed one test that still assumed the dust limit at 5460 instead of 546. 10 years ago
Patrick Nagurny de078a40d3 If output.script is InvalidBuffer, return null instead of throwing error 10 years ago
Braydon Fuller 53b6171547 Added coverage to transaction and fixed bug with serialization check. 10 years ago
Manuel Araoz 951a07c011 fix PublicKey.toObject 10 years ago
David de Kloet b1e54101d3 Call the parent error of the fee errors FeeError for backwards compatibility. 10 years ago
David de Kloet 8da9c4a44a Give the 3 fee errors a common parent error. 10 years ago
David de Kloet d1eb190626 Introduce different kinds of FeeError to distinguish the different cases. Fix the issue uncovered by this, which is that getFee might not be the actual fee, but only an estimate, if a change address is specified but there isn't enough to pay a fee and have change. 10 years ago
David de Kloet 16dc489b08 Make sure a specified transaction fee and outputs add up to the sum of the inputs. Don't ignore the fee when it's explicitly specified. 10 years ago
Braydon Fuller d8e90685f4 Fixed script.isPublicKeyHashIn bug with variable length signatures. 10 years ago
Braydon Fuller b688334bf3 Added test case for zero in isNaturalNumber tests. 10 years ago
Braydon Fuller f8ea7e39cc Included satoshis check during checked serialization. 10 years ago
Braydon Fuller cd12164fae Added test coverage to transaction.verify 10 years ago
Braydon Fuller 3d447ded79 Update bn.js to 2.0.4 to handle 53 bit precision number input. 10 years ago
Manuel Araoz a018a23b6b fix bug in recognizing p2sh input scripts 10 years ago
Manuel Araoz bbd48f868d remove comment 10 years ago
Manuel Araoz db6234b500 remove duplicate code, increase coverage 10 years ago
Manuel Araoz d556a0c33d fix regressions 10 years ago
Manuel Araoz dfc075e5d1 fix block parsing problem 10 years ago
Manuel Araoz 270413a655 add simpler test that fails 10 years ago