Commit Graph

30 Commits

Author SHA1 Message Date
Braydon Fuller
539b263c67 Add spentTxId Index
- To be able to query an inputTxId and inputIndex that spends an outputTxId and outputIndex
- Extends the mempoolSpentIndex to include the inputTxId and inputIndex
2015-10-01 20:03:31 -04:00
Braydon Fuller
1183e0cae7 Service Documentation 2015-09-23 18:14:37 -04:00
Chris Kleeschulte
fa59000819 Merge pull request #251 from braydonf/bug/tx-count
Fix bug with address summary transaction count.
2015-09-22 14:14:17 -04:00
Braydon Fuller
80fadc7ec3 Fix bug with address summary transaction count. 2015-09-21 17:02:11 -04:00
Chris Kleeschulte
7c7abd26b1 isSpent logic
- Bitcoind's CCoinsViewMempool brings the mempool into view, but will not consider outputs therein as spent
- Changed the test description to match what is happening in that view
- Once a given tx has one confirmation, then isSpent will be true for those outputs
2015-09-21 16:13:10 -04:00
Patrick Nagurny
a1f4d06f27 add tests around isSpent 2015-09-18 15:31:09 -04:00
Patrick Nagurny
b11ab97739 add tests 2015-09-18 14:06:26 -04:00
Chris Kleeschulte
c3654120ee MempoolInputIndex and MempoolOutputIndex
- Added in memory indexes for mempool input and 
output by address.
2015-09-17 14:29:11 -04:00
Braydon Fuller
ad120213e1 Start of mempool address index. 2015-09-17 14:26:53 -04:00
Braydon Fuller
bfba4a1b7f Address History: Include count in response results. 2015-09-15 13:17:15 -04:00
Braydon Fuller
5fbd8991ed Address History: Combine addresses so that history is txid unique. 2015-09-14 21:04:54 -04:00
Braydon Fuller
da1513edb2 Address History: Add additional regtest for getting history by height. 2015-09-14 17:30:10 -04:00
Braydon Fuller
b1b40c892e Address History: Add getAddressHistoryCount method 2015-09-14 16:48:28 -04:00
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
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
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
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
Patrick Nagurny
4ae6377548 fixes 2015-08-31 15:15:55 -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
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