Commit Graph

  • e5a2756795 Test empty scripts and out of bounds for DisasmScript() Owain G. Ainsworth 2013-06-27 15:07:37 +01:00
  • 244ce4b96e add IsPayToScriptHash api Owain G. Ainsworth 2013-06-27 00:32:11 +01:00
  • bcd8c9d227 gofmt Owain G. Ainsworth 2013-06-27 14:19:43 +01:00
  • dd216cef29 Test pushing at and beyond the boundary for largest stack item. Owain G. Ainsworth 2013-06-26 23:57:49 +01:00
  • df898ae1dd test a few non-standards script types to hit some edge cases. Owain G. Ainsworth 2013-06-26 23:28:44 +01:00
  • d6161f0d41 fix ScriptToAddress when called with 0 length script. Owain G. Ainsworth 2013-06-26 22:11:54 +01:00
  • 7ae307abfd Fix case where we have an empty script that isn't the first. Owain G. Ainsworth 2013-06-26 14:16:00 +01:00
  • 166a546078 Modify DropAfterBlockBySha to accept a pointer. Dave Collins 2013-06-25 10:15:58 -05:00
  • 7e937fae75 testing for the case where a p2sh sigscript isn't pushonly. Owain G. Ainsworth 2013-06-25 13:12:15 +01:00
  • 4a87e6e3a7 Test a few failure cases of p2sh txs. Owain G. Ainsworth 2013-06-25 00:12:08 +01:00
  • ba51aa8934 partially revert afc2e8100a56b0968e2bf77e5d24246bc5cf9a04 Owain G. Ainsworth 2013-06-24 18:06:01 +01:00
  • 2bdaebfa74 some more tests for GetPreciseSigOpsCount. total coverage now. Owain G. Ainsworth 2013-06-24 16:32:41 +01:00
  • 53ba8fb834 gofmt Owain G. Ainsworth 2013-06-21 01:33:56 +01:00
  • 8fe24958bb Test the unfinished condition of CheckErrorCondition Owain G. Ainsworth 2013-06-21 01:33:38 +01:00
  • 03696a8874 Add functions to count the number of signature operations in a script. Owain G. Ainsworth 2013-06-20 18:07:44 +01:00
  • 421a213a4f Stop modifying the passed tx in NewScript. Owain G. Ainsworth 2013-06-20 20:01:17 +01:00
  • d54fba85b4 Export the MaxBlockPayload constant. Dave Collins 2013-06-20 13:09:18 -05:00
  • 25624bc6a7 check that OP_CHECK_MULTISIG also triggers on too many ops Owain G. Ainsworth 2013-06-20 01:21:12 +01:00
  • bac455cdd2 Fix reversed test bug with the max operations handling Owain G. Ainsworth 2013-06-20 00:30:34 +01:00
  • 8035de426b Check that the pc validation code works ok. Owain G. Ainsworth 2013-06-19 23:31:44 +01:00
  • 625541e202 add some testing for byte format in stack.PushInt() Owain G. Ainsworth 2013-06-19 01:06:02 +01:00
  • 501b711301 int.Sign() in go will never return negative for zero. Owain G. Ainsworth 2013-06-19 00:50:18 +01:00
  • 5e82baf476 add some basic tests for stack.PopInt() Owain G. Ainsworth 2013-06-19 00:38:57 +01:00
  • 4692d64f68 permit tests expect fail for nonspecified return code. Owain G. Ainsworth 2013-06-18 23:36:44 +01:00
  • df0c0b27d1 Factor the end-of-script error handling into a function. Owain G. Ainsworth 2013-06-18 17:39:00 +01:00
  • 7b08a4e127 Number of operations is per-script not per-transaction. Owain G. Ainsworth 2013-06-18 17:38:18 +01:00
  • bc41004b03 Use errors.New() not fmt.Errorf() when no fmt string. Owain G. Ainsworth 2013-06-18 17:37:07 +01:00
  • 031437decf test 0 length numbers (disallowed) and coordinates of 0 (also) Owain G. Ainsworth 2013-06-18 00:17:32 +01:00
  • 13cf6091e6 Test the sanity checks for numbers too big for the curve fire correctly. Owain G. Ainsworth 2013-06-17 23:57:36 +01:00
  • 86d150bbb3 Remove accidentally commited printf. Owain G. Ainsworth 2013-06-17 23:56:25 +01:00
  • 316faf034c update test coverage stats. Owain G. Ainsworth 2013-06-17 17:41:37 +01:00
  • afc2e8100a Make length check a little more paranoid Owain G. Ainsworth 2013-06-17 17:38:16 +01:00
  • cd61efe8a8 test a bunch of invalid cases in ParseSignature. Owain G. Ainsworth 2013-06-17 16:18:58 +01:00
  • 5c8c454a18 fix up some indexing in ParseSignature. Owain G. Ainsworth 2013-06-17 16:18:27 +01:00
  • 10542e0573 Optimize and improve credential stripping code. Dave Collins 2013-06-14 11:19:50 -05:00
  • 2a475d7299 Need to test for nil before regex. John C. Vernaleo 2013-06-14 11:47:09 -04:00
  • 21d1240502 Update test_coverage.txt John C. Vernaleo 2013-06-14 11:36:44 -04:00
  • e4a80edc95 Clean the error message on connect failure so username and password is not shown. John C. Vernaleo 2013-06-14 11:32:05 -04:00
  • 9cb1f47fb9 add signature test harness and try a valid signature for size. Owain G. Ainsworth 2013-06-14 01:11:06 +01:00
  • 7cfebed976 Test the ``parameter is >= P'' pubkey error paths. Owain G. Ainsworth 2013-06-14 00:28:54 +01:00
  • 9638528b8e test hybrid keys too. Owain G. Ainsworth 2013-06-14 00:06:25 +01:00
  • 217fa5311a go fmt. *sigh* Owain G. Ainsworth 2013-06-14 00:03:15 +01:00
  • ffdbcd5cce test a few easy to hit pubkey error paths. Owain G. Ainsworth 2013-06-13 23:55:52 +01:00
  • 2a8cf9f44f Use correct import path for btcec. Dave Collins 2013-06-13 15:18:58 -05:00
  • 1197770159 Initial implementation. Dave Collins 2013-06-12 16:35:27 -05:00
  • 6e9cc57131 Initial implementation. Dave Collins 2013-06-13 13:27:23 -05:00
  • a2c10e34d9 Initial commit. Dave Collins 2013-06-13 12:45:48 -05:00
  • 27b69ccca3 unhide error message from jsonRpcSend AndreasM 2013-06-13 19:16:41 +03:00
  • 63af0dbca9 Initial commit. Dave Collins 2013-06-12 16:22:01 -05:00
  • 2c0dc2d862 Small errors in documentation. Steven Roose 2013-06-01 00:09:26 +02:00
  • 10d981974c Add documentation for functions and types. Dave Collins 2013-05-31 15:19:34 -05:00
  • 8d8fdf4fc1 Add documentation for Db interface. Dave Collins 2013-05-31 15:12:20 -05:00
  • 5882b3c79a Change Tx to transaction in user facing error. Dave Collins 2013-05-31 14:07:48 -05:00
  • 64568826f1 Correct spelling of nonexistent. Dave Collins 2013-05-31 14:02:47 -05:00
  • b686bbacf5 Update and fix usage example. Dave Collins 2013-05-31 13:50:23 -05:00
  • fac055c24e Add comments to clarify interface function caching. Dave Collins 2013-05-31 13:40:38 -05:00
  • 4ab8ca5eef Add code to test for allowable types in json rpc id field along with test code for the new function. John C. Vernaleo 2013-05-31 10:59:46 -04:00
  • 7416e9a71d Rename funcs and variables for Idx to Height. Dave Collins 2013-05-30 17:27:39 -05:00
  • 7b4aeb2353 the JSON-RPC 1.0 spec allows the id to be of any type AndreasM 2013-05-31 01:23:23 +03:00
  • bea4ccbeef Finish incomplete comment. Dave Collins 2013-05-30 17:21:15 -05:00
  • 684582cde6 Cleanup the Db interface comments a bit. Dave Collins 2013-05-30 17:18:13 -05:00
  • e76c83b27f Fix typo in README.md. Dave Collins 2013-05-29 18:11:27 -05:00
  • b4e38662ba Update README.md. Dave Collins 2013-05-29 16:43:05 -05:00
  • 6ac2a9b934 Add note to README.md that Db interface may change. Dave Collins 2013-05-29 16:41:51 -05:00
  • f6c3d6d57a Fix typo in README.md. Dave Collins 2013-05-29 16:36:45 -05:00
  • c97c8f17a4 Add test coverage report and generate script. Dave Collins 2013-05-29 16:20:06 -05:00
  • e30ceb5947 Cleanup and fix operational tests. Dave Collins 2013-05-29 16:08:43 -05:00
  • 9bf708595d Add InsertBlockData needed by tests to interface. Dave Collins 2013-05-29 15:08:07 -05:00
  • 21b8011155 Remove log setup from tests as they don't need it. Dave Collins 2013-05-29 14:49:21 -05:00
  • 1846307821 Use correct import path in btcdb tests. Dave Collins 2013-05-29 14:47:48 -05:00
  • 7630a95724 fix Stringer interface for ShaHash. mischief 2013-05-29 11:51:13 -07:00
  • a2e3fd92b0 Only try to drop the uniquetx index if it exists. Owain G. Ainsworth 2013-05-29 17:54:46 +01:00
  • 752ca5dfbb Initial implementation. Dave Collins 2013-05-28 19:07:21 -05:00
  • a02af039b5 Initial commit. Dave Collins 2013-05-28 19:03:53 -05:00
  • 14a1da417f Enforce max block payload size of 1MB. Dave Collins 2013-05-16 09:07:04 -05:00
  • c896d61625 Improve examples in package overview documentation. Dave Collins 2013-05-15 19:29:20 -05:00
  • d8007e9387 Update README to reflect 100% test coverage. Dave Collins 2013-05-15 14:00:06 -05:00
  • c164de1692 Fix version typos in README. Dave Collins 2013-05-15 13:57:29 -05:00
  • 2fc8982be5 Add tests for MarshallAndSend function. John C. Vernaleo 2013-05-14 10:13:44 -04:00
  • f8553b4a57 Remove test coverage TODO since it's now 100%. Dave Collins 2013-05-13 13:55:07 -05:00
  • 648e6317bb Fix comment typo -- implimented -> implemented. Dave Collins 2013-05-13 13:21:01 -05:00
  • d0d58c54db Initial implementation. John C. Vernaleo 2013-05-10 16:16:18 -04:00
  • a3226897f0 Update package overview Errors section. Dave Collins 2013-05-13 02:19:57 -05:00
  • 5b78dee7e1 Add negative tests for MsgTx. Dave Collins 2013-05-13 02:09:55 -05:00
  • 6f511eb75d Make MsgTx test data available to all funcs. Dave Collins 2013-05-13 02:08:14 -05:00
  • f9b6375d5b Add negative tests for MsgVersion. Dave Collins 2013-05-12 21:47:36 -05:00
  • 3aef93f442 Make MsgVersion test data available to all funcs. Dave Collins 2013-05-12 20:56:30 -05:00
  • 1bab947596 Remove a few dead error checks. Dave Collins 2013-05-12 14:01:50 -05:00
  • 1ca8015ea0 Add negative tests for MsgBlock tx location decode. Dave Collins 2013-05-12 12:47:43 -05:00
  • 0e033023bf Improve MsgBlock negative tests. Dave Collins 2013-05-12 12:43:01 -05:00
  • 4e16030fe8 Add tests for MsgBlock transaction location decode. Dave Collins 2013-05-12 11:50:31 -05:00
  • c9d2dfea3d Add negative tests for WriteMessage. Dave Collins 2013-05-11 23:32:20 -05:00
  • 0400d0cec3 Remove dead error check in WriteMessage. Dave Collins 2013-05-11 23:22:09 -05:00
  • 7385f6ff24 Correct several test error messages. Dave Collins 2013-05-11 12:55:50 -05:00
  • 93070ef960 Add negative tests for MsgAlert. Dave Collins 2013-05-11 12:49:22 -05:00
  • 3d303feefb Add negative test for NewShaHash. Dave Collins 2013-05-11 11:19:46 -05:00
  • 61b86b1bb5 Add negative tests for MsgGetBlocks. Dave Collins 2013-05-11 11:06:52 -05:00
  • 2a2745d0d3 Add negative tests for MsgGetHeaders. Dave Collins 2013-05-11 10:52:22 -05:00
  • 20bebc13a5 Convert WriteMessage errors to MessgeError type. Dave Collins 2013-05-11 02:29:11 -05:00
  • cbcbe5eb43 Convert MsgVersion errors to MessageError type. Dave Collins 2013-05-11 02:23:45 -05:00