Commit Graph

1234 Commits

Author SHA1 Message Date
Chris Kleeschulte
2caadd1955 Bump package version to v0.2.0-beta.11 2015-10-13 15:37:49 -04:00
Patrick Nagurny
4885ce949c Merge pull request #307 from braydonf/bug/outputIndex
Fix bug where the outputIndex would be removed.
2015-10-13 11:23:29 -04:00
Braydon Fuller
2e3d58c07a Fix bug where the outputIndex would be removed.
The address history `combineTransactionInfo` method removes the
outputIndex when creating the outputIndexes property. When these are
from the mempool the original reference is also modified.

We can easily solve this by returning new instances in `getOutputs`
and `getInputs` instead of a reference to the actual mempool instance.

This will also have the additional benefit that height and other
properties that will be the same for every mempool entry will
not be stored in memory longer than what is necessary to fulfill
a request.
2015-10-12 18:35:37 -04:00
Patrick Nagurny
93436429f1 Merge pull request #305 from braydonf/bug/balance
Fixed bug with balance
2015-10-12 13:50:56 -04:00
Braydon Fuller
d9b2a0969b Fixed bug with balance
There was a bug when getting unspent outputs that would include an output
that was spent in the mempool in addition to the new output with the change
address. This lead to a balance having an output counted twice towards the
end balance. The solution is to have the isSpent method for the address service
to also include if the output was spent in the mempool, as the isSpent
method exposed from bitcoind only includes if the output was spent in a block.
2015-10-12 09:29:49 -04:00
Chris Kleeschulte
83d3fd9914 Merge pull request #300 from braydonf/fix/web
Expose Web Service in index.js
2015-10-09 13:13:24 -04:00
Chris Kleeschulte
abc2b3ac26 Merge pull request #301 from braydonf/fix/txevents
Fix documentation referencing the "transaction" event.
2015-10-09 13:13:05 -04:00
Braydon Fuller
dc12ea86f9 Fix documentation referencing the "transaction" event. 2015-10-09 10:40:59 -04:00
Braydon Fuller
427d540158 Expose Web Service in index.js 2015-10-09 09:55:08 -04:00
Chris Kleeschulte
3f1e24abc4 Bump development version to v0.2.0-dev 2015-10-07 14:30:08 -04:00
Chris Kleeschulte
2efb4b68bc Bump package version to v0.2.0-beta.10 2015-10-07 14:04:23 -04:00
Braydon Fuller
79d66f5ab2 Merge pull request #280 from pnagurny/feature/balance-event-mempool
Emit address/balance events for mempool transactions
2015-10-02 18:16:01 -04:00
Patrick Nagurny
3e38d84d0b emit address/balance events for mempool transactions 2015-10-02 17:10:12 -04:00
Patrick Nagurny
54eae61f1d Merge pull request #277 from braydonf/cs-isspent
Added critical section lock in isSpent
2015-10-02 14:31:39 -04:00
Braydon Fuller
7070d4c74d Added critical section lock in isSpent 2015-10-02 14:09:29 -04:00
Braydon Fuller
76d466b29b Merge pull request #276 from pnagurny/feature/bitcoind-wait
Wait for bitcoind to catch up if tip is not found
2015-10-02 13:45:58 -04:00
Patrick Nagurny
9acb896f10 Wait for bitcoind to catch up if tip is not found 2015-10-02 13:35:42 -04:00
Patrick Nagurny
56f375a3b7 Merge pull request #274 from braydonf/spenttx
Add spentTxId Index
2015-10-02 10:57:55 -04:00
Braydon Fuller
da9d856da3 Add comments to describe each prefix. 2015-10-02 10:56:28 -04:00
Braydon Fuller
27e90ef41a Give false if spent information not available. 2015-10-01 23:50:06 -04:00
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
Patrick Nagurny
caefe5dbd1 Merge pull request #265 from braydonf/doc-update
Updates to documentation for bitcore.io website.
2015-10-01 12:26:09 -04:00
Chris Kleeschulte
ba3941613d Merge pull request #269 from braydonf/docs/reqs
Add prerequisites to readme.
2015-10-01 10:12:15 -04:00
Chris Kleeschulte
3d6efa15a6 Merge pull request #270 from braydonf/bug/block-index
Fix bug with getting a block index with unknown height.
2015-10-01 10:11:45 -04:00
Braydon Fuller
1490b17f9a Fix bug with getting a block index with unknown height. 2015-10-01 00:21:14 -04:00
Braydon Fuller
efd3641f3f Add prerequisites 2015-09-30 17:32:08 -04:00
Braydon Fuller
fce7964dce Add prerequisites to readme. 2015-09-30 16:41:46 -04:00
Chris Kleeschulte
2df0bb63b0 Bump development version to v0.2.0-dev 2015-09-30 13:27:35 -04:00
Chris Kleeschulte
461fdcae5d Bump package version to v0.2.0-beta.9 2015-09-30 12:56:02 -04:00
Braydon Fuller
ae722a7acd Merge pull request #267 from pnagurny/refactor/metadata-tip
Save tip as part of block db operations
2015-09-29 17:18:04 -04:00
Patrick Nagurny
26b27b292e update tests 2015-09-29 16:03:56 -04:00
Braydon Fuller
b0f905dfe4 Include docs/index.md for getting started for bitcore.io 2015-09-29 15:24:08 -04:00
Patrick Nagurny
3fa1340ef3 save tip as part of block db operations 2015-09-29 15:20:05 -04:00
Braydon Fuller
f337622790 Updates to documentation for bitcore.io website. 2015-09-29 14:15:49 -04:00
Braydon Fuller
68b0120319 Merge pull request #257 from kleetus/feature/remove_getTxOutSetInfo
Feature/remove get tx out set info
2015-09-25 13:46:55 -04:00
Braydon Fuller
ec2b0e327a Merge pull request #256 from kleetus/feature/nan_update
Nan Macro Updates
2015-09-25 13:45:11 -04:00
Chris Kleeschulte
af7966f94a Removed unneeded getTxOutSetInfo 2015-09-25 11:33:51 -04:00
Chris Kleeschulte
c3646b4ae3 Nan Macro Updates
- Updated to nan 2.0 (node module)
- Updated the Nan-related macros to 2.0 semantics
2015-09-24 17:10:22 -04:00
Chris Kleeschulte
04a31e2158 Merge pull request #253 from braydonf/service-docs
Service Documentation
2015-09-24 11:19:20 -04:00
Braydon Fuller
1183e0cae7 Service Documentation 2015-09-23 18:14:37 -04:00
Braydon Fuller
a624b6fa39 Merge pull request #254 from kleetus/bug/tx_events_mempool
Tx event firing
2015-09-23 15:57:10 -04:00
Chris Kleeschulte
dc390b9e9f Tx Notifier
- There is a new signal called TxToMemPool
- This signal will connect to the bindings slot, queueTx
- When a tx is accepted into the memory pool, the tx will be queued and the tx_notifier will be scheduled
2015-09-23 15:13:24 -04:00
Chris Kleeschulte
a7444a92b9 Tx event firing
- The ProcessMessages signal was scheduling/connecting its slots slightly out of order for what we need
- First, the scan_messages needs to run and copy out the stream
- Second, Bitcoin's ProcessMessages needs to run in order to run AcceptToMemoryPool
- Third, scan_messages_after needs to run in order to signal our tx_monitor
- In order to make this happen, we need to pair ProcessMessages slot to the scan_messages slot and order that
- Then, AFTER those two complete, we can schedule scan_messages_after
2015-09-23 13:05:52 -04:00
Chris Kleeschulte
f995bb882b Bump development version to v0.2.0-dev 2015-09-23 12:18:53 -04:00
Chris Kleeschulte
fa6d9d428b Bump package version to v0.2.0-beta.8 2015-09-23 11:21:10 -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
Braydon Fuller
8a2a0ab83c Merge pull request #250 from kleetus/feature/isSpent_mempool
isSpent logic
2015-09-21 16:47:47 -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
Chris Kleeschulte
d474d03cf2 Merge pull request #248 from braydonf/pubkeyout
Address compatibility with pay-to-publickey output scripts.
2015-09-21 14:39:42 -04:00