Braydon Fuller
c205f781a5
Pagination for Address History
...
- Reindexing the bitcore-node database is required with this change.
- Address indexes are updated to include address and height in spent index so that both inputs and outputs can be queried by address and height using "start" and "stop" to limit the range of the query.
- Address history also now supports paginated results using "from" and "to" values that indicate an index in the array.
2015-09-12 19:44:10 -04:00
Braydon Fuller
c8b0dd0999
Merge pull request #207 from kleetus/bus_integration_tests
...
Added integration tests for the bus
2015-09-10 14:31:42 -04:00
Chris Kleeschulte
1c567c9817
ErrorMessage lexical cast test
...
- sendTransaction will pass through a code and a message when the state comes up as invalid after sending a transaction that isn't signed.
2015-09-10 14:03:35 -04:00
Chris Kleeschulte
875c35de2a
Added a full stack integration-style regtest for the bus
...
- The test exercises subscribe and calls unsubscribe.
2015-09-10 13:19:12 -04:00
Chris Kleeschulte
55a3baa1aa
Renamed the bus integration tests and moved it to the test directory.
2015-09-10 13:19:12 -04:00
Chris Kleeschulte
65e09ef281
Added integration for the bus
...
- Added a new file that exercises the subscribe/unsubscribe/close methods with a test service
- Removed a duplicate call to inherit
2015-09-10 13:19:12 -04:00
Braydon Fuller
2f6fc6e3e9
Merge pull request #202 from pnagurny/feature/main-chain
...
Add isMainChain method
2015-09-09 10:08:21 -04:00
Braydon Fuller
a9f990bdf4
Fixes for isMainChain binding tests.
2015-09-08 17:42:33 -04:00
Patrick Nagurny
0ff742c1b6
add isMainChain method
2015-09-08 17:38:59 -04:00
Patrick Nagurny
2469c6d3fb
Merge pull request #199 from braydonf/start-error
...
Start/Stop Improvements
2015-09-08 17:33:54 -04:00
Chris Kleeschulte
ee3bad5203
Added a check for the right number of tip events.
...
- Since we have a spin lock that leads to the callback from a tip update, there could be cases where the callback assigned to a tip update isn't the one matching the last generate.
- The architectural decision is to leave the spin lock in place to lower the number of possible callbacks for tip updates.
2015-09-08 13:36:21 -04:00
Braydon Fuller
60af86777f
Start/Stop Improvements
...
- A Node will shutdown if there is an error starting a service as it would lead to cascading errors.
- `node.start()` needs to be called, and nolonger is called automatically when the instance is created.
- A service will only be added to node.services after it's started
- Stopping services that are not started will gracefully continue.
- Logging sync status of db will only apply if the service is started.
- Debug log about a service without a route will always include the service name
2015-09-08 10:17:57 -04:00
Chris Kleeschulte
ec720c2443
Added setImmediate to the tests instead of the code since this seems to be where the issue is.
2015-09-02 10:48:46 -04:00
Braydon Fuller
53adaa7e6a
Improve test coverage and cleanup.
2015-08-31 16:32:25 -04:00
Patrick Nagurny
4ae6377548
fixes
2015-08-31 15:15:55 -04:00
Patrick Nagurny
1b5f30a9a1
add tests
2015-08-31 12:57:49 -04:00
Braydon Fuller
7551f487f8
Rename modules to services.
2015-08-31 11:31:28 -04:00
Braydon Fuller
16eef1279c
Combine chain with db module.
2015-08-31 11:25:30 -04:00
Braydon Fuller
df9b62acca
Convert db into a db module.
2015-08-31 11:15:51 -04:00
Braydon Fuller
96f6604222
Convert daemon into bitcoin module.
2015-08-31 11:11:16 -04:00
Patrick Nagurny
aa6b03ae58
Merge pull request #159 from braydonf/noderef
...
Use node as a reference in modules, db and chain.
2015-08-27 15:15:55 -04:00
Chris Kleeschulte
4ce7757990
Added TLS/SSL options to the integration tests.
...
- The integration tests will now use https and a self-signed cert.
2015-08-27 14:09:49 -04:00
Braydon Fuller
5361183a19
Use node as a reference in modules, db and chain.
2015-08-27 14:04:42 -04:00
Braydon Fuller
bbc421a31e
Migrate chainlib functionality into bitcore-node.
2015-08-26 17:24:10 -04:00
Braydon Fuller
49cf3a9ca3
Fix reorg integration test after rebase.
2015-08-24 16:39:05 -04:00
Braydon Fuller
d03d452981
Refactor reorg regtest.
2015-08-24 14:06:38 -04:00
Braydon Fuller
9be5db84c9
Added node reorg integration regtest
2015-08-24 13:59:33 -04:00
Patrick Nagurny
faf93a18a7
get regtest to work
2015-08-24 13:52:45 -04:00
Patrick Nagurny
78bc054bfa
changes for BWS integration
2015-08-14 11:15:07 -04:00
Braydon Fuller
422160fa51
Update to bitcore v0.12.15 with publickey out signing.
2015-08-05 11:42:44 -04:00
Braydon Fuller
412078e1a0
Cleanup lib/daemon and remove functions not implemented.
2015-08-04 13:53:44 -04:00
Braydon Fuller
a952c3e417
Added regtests for getTransaction
2015-08-03 17:41:11 -04:00
Braydon Fuller
f4061037b6
Update name to Bitcore Node
2015-07-31 13:26:48 -04:00
Patrick Nagurny
4a4e71797a
getTransactionWithBlockInfo
2015-07-31 11:13:33 -04:00
Braydon Fuller
2ca3a48884
Expose estimateFee method.
2015-07-28 16:03:55 -04:00
Braydon Fuller
93ed8bfd8d
Fix bug with feedback loop during shutdown
...
- Use height to indicate tip change by comparing heights
- Give undefined for callback when shutting down
2015-07-24 12:32:28 -04:00
Braydon Fuller
4189e3548a
Tests for tip_update
...
- Exit tip_update thread on shutdown
- Check that the tip update event is fired
2015-07-23 23:29:01 -04:00
Braydon Fuller
40c0275677
Make sure to select the correct utxo in regtest.
2015-07-22 18:19:50 -04:00
Braydon Fuller
7b8268d0e0
Use prevHash from bitcoind block index
...
- Changed method getChainWork into getBlockIndex
- Added prevHash to getBlockIndex result
2015-07-22 16:56:17 -04:00
Braydon Fuller
eab878cec1
Include a higher fee.
2015-07-22 14:29:43 -04:00
Braydon Fuller
b53fa3f6bb
Added regtest for sendTransaction method.
2015-07-22 13:59:28 -04:00
Braydon Fuller
796d7682f8
Add sendTransaction method to the daemon.
2015-07-22 10:57:01 -04:00
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