Commit Graph

29 Commits

Author SHA1 Message Date
Braydon Fuller 73b359425d Added comments to test files and guard for environment variables. 2015-07-22 09:52:23 -04:00
Braydon Fuller 5a8dfc1e07 Added tests for getting blocks by height. 2015-07-21 18:48:07 -04:00
Braydon Fuller ebdab57b78 Added get block by hash regtest. 2015-07-21 18:46:00 -04:00
Braydon Fuller be5e885f96 Use datadir path relative to test file. 2015-07-21 18:18:42 -04:00
Braydon Fuller bcc3a4c2e1 Use a local data directory specific for reg testing. 2015-07-21 17:33:59 -04:00
Braydon Fuller 072c109174 Update regtest tests. 2015-07-21 16:46:36 -04:00
Braydon Fuller 4c7309838b Run integration/regtest.js in ci tests. 2015-07-21 14:33:19 -04:00
Braydon Fuller 787aa37e7a Removed extra files and updated config options. 2015-07-21 13:23:38 -04:00
Patrick Nagurny 655ac37ba0 changes in response to feedback 2015-07-20 10:40:35 -06:00
Braydon Fuller 0b926b67b6 Completed getMempoolOutputs
- Pass ctx to data from the mempool for getTransaction
- Use string as input for unchecked transaction to mempool
- Only include outputs that match input address
- Include script in results
2015-07-20 09:47:53 -04:00
Chris Kleeschulte ef3abbcb6c Added a binding for Add to mempool. 2015-07-20 09:47:07 -04:00
Braydon Fuller 54edc851e0 Add getMempoolOutputs method. 2015-07-20 09:45:54 -04:00
Braydon Fuller b2b44d1674 Added getChainWork method for determining the best chain. 2015-07-17 13:36:12 -04:00
Braydon Fuller 9020ddb85c Add queryMempool option to getTransaction 2015-07-16 14:39:15 -04:00
Braydon Fuller cc1747c596 Update test data with unspent output. 2015-07-16 14:37:54 -04:00
Chris Kleeschulte 0601ed29d9 1. Added a way to check if the genesis block is ready in chainActive before sending the ready event. We think that once chainActive[0] is not returning NULL, we should be ready to query the local blockchain.
2. Added the env variable BITCOINDJS_DIR support in the integration tests.
2015-07-16 13:43:51 -04:00
Chris Kleeschulte f999e7e30f Merge pull request #28 from braydonf/isspent
Add method to check if an outpoint is spent.
2015-07-16 11:02:41 -04:00
Braydon Fuller dcaa6203e9 Add additional livenet tests and remove used param. 2015-07-16 10:02:27 -04:00
Chris Kleeschulte 1c615ac7c0 Added extern mempool and fixed method name. 2015-07-16 10:01:41 -04:00
Braydon Fuller 801679df75 Add isSpent call 2015-07-16 10:01:41 -04:00
Braydon Fuller 946feba862 Handle case that chainActive at height does not exist. 2015-07-16 09:59:13 -04:00
Braydon Fuller be3044d3d3 Add tests and benchmarks for getTransaction 2015-07-15 16:00:48 -04:00
Braydon Fuller 91004a24a9 Free block buffer memory. 2015-07-09 17:34:37 -04:00
Braydon Fuller 24e705b265 Get blocks by height. 2015-07-09 16:45:30 -04:00
Braydon Fuller 69ed6efcb2 Allocate memory for block buffer. 2015-07-09 16:16:38 -04:00
Braydon Fuller 50c3bc43ab Wait until bitcoind is stopped in test. 2015-07-09 14:39:23 -04:00
Braydon Fuller 08c3e188e7 Formatting of test data and docs. 2015-07-09 13:34:02 -04:00
Chris Kleeschulte e0376d373d Added testnet config. 2015-07-09 13:30:05 -04:00
Braydon Fuller 1e67cd3ac1 Added integration tests for getting blocks. 2015-07-09 13:27:13 -04:00