Commit Graph

1269 Commits

Author SHA1 Message Date
Braydon Fuller
e046f7294e Changes to be able to run with only a configuration file.
- Adds parameter to cli methods to be able to specify the location of services modules. This is useful for packages that wrap bitcore-node to be able to pass along a node_modules directory with services.
- Adds another parameter for including additional services in the default settings.
- Will use the `process.env.HOME + '/.bitcore` as the default configuration location.
- There are now two `getDefaultConfig`, one that will instatiate a `~/.bitcore` directory with a default if it doesn't exist, and `getBaseDefaultConfig` that will return a basic configuration without additional services enabled.
- Changes logic to use the global install if a local node_modules version is not available, this would previously assume that it was a local install because of the existence of a configuration file.
2015-10-20 12:33:53 -04:00
Braydon Fuller
9b0ea9873d Merge pull request #331 from gasteve/master
remove debug output from bitcore cli utility
2015-10-20 12:06:03 -04:00
Stephen Pair
05eb5a03f2 remove debug output from bitcore cli utility 2015-10-20 15:49:01 +00:00
Chris Kleeschulte
2ff8bd8b42 Bump development version to v0.2.1-dev 2015-10-19 18:06:51 -04:00
Chris Kleeschulte
aa7662e196 Bump package version to v0.2.1 2015-10-19 14:53:57 -04:00
Chris Kleeschulte
ddab8fddbd Merge pull request #328 from braydonf/bug/double-load
Fix bug with double load of bitcore-lib.
2015-10-19 14:30:18 -04:00
Braydon Fuller
82c6087fe2 Fix bug with double load of bitcore-lib. 2015-10-19 13:45:35 -04:00
Chris Kleeschulte
76ecf74b3f Bump development version to v0.2.0-dev 2015-10-19 13:16:24 -04:00
Chris Kleeschulte
917b420d52 Bump package version to v0.2.0 2015-10-19 10:49:14 -04:00
Chris Kleeschulte
f8fc5c3a6c Merge pull request #326 from braydonf/node-version
Added a Node.js version check based on the package.json engine.
2015-10-19 10:47:02 -04:00
Braydon Fuller
21fe315072 Merge pull request #325 from unusualbob/bug/bitcoreNodePackageName
Use bitcore-lib in node package creation
2015-10-19 09:39:20 -04:00
Rob Riddle
e9290d3cdc Use bitcore-lib in node package creation 2015-10-19 15:43:51 +03:00
Braydon Fuller
21e0aa28b5 Added a Node.js version check based on the package.json engine. 2015-10-18 22:50:29 -04:00
Stephen Pair
e9110ad93c Merge pull request #323 from braydonf/lib
bitcore -> bitcore-lib
2015-10-18 17:59:17 -04:00
Braydon Fuller
57b832021f Reference the bin included with standalone bitcore-node. 2015-10-18 17:54:14 -04:00
Braydon Fuller
d05d617f12 Add liftoff to package.json. 2015-10-18 16:31:33 -04:00
Braydon Fuller
95b5bfbfcb Fix library reference. 2015-10-18 16:28:24 -04:00
Braydon Fuller
58894bc4b2 Expose cli methods. 2015-10-18 16:20:51 -04:00
Braydon Fuller
1dec93edd4 bitcore -> bitcore-lib 2015-10-17 00:56:29 -04:00
Braydon Fuller
b387b34861 Merge pull request #321 from kleetus/feature/update_patch_0.11.1
Updated patch to support 0.11.1
2015-10-16 17:44:09 -04:00
Chris Kleeschulte
cda499e059 Updated patch to support 0.11.1
- Please note the removal of leveldbwrapper patch code, this is no longer needed.
- Everything else is 100% the same.
2015-10-16 16:34:49 -04:00
Braydon Fuller
02dbe72128 Merge pull request #318 from kleetus/feature/dependencies_binaries
Added binaries for all dependencies
2015-10-16 14:55:21 -04:00
Braydon Fuller
439f863992 Merge pull request #319 from kleetus/feature/use_bitcoins_openssl
Statically linking libcrypto and libssl from bitcoin instead of using…
2015-10-16 14:49:57 -04:00
Chris Kleeschulte
132821523b Statically linking libcrypto and libssl from bitcoin instead of using the System's version. 2015-10-16 14:17:00 -04:00
Chris Kleeschulte
937f01fade Pre-compiled Dependencies
- Since we can't use npm shrinkwrap and the websockets dev won't provide binaries of bufferutil and utf-8-validate (I have PR's to provide this), we must resort to forking, socket.io, socket.io-client, engine.io, engine.io-client, ws, bufferutil, utf-8-validate and pointing all those projects to our forks.
2015-10-16 13:20:30 -04:00
Braydon Fuller
8784a289b6 Merge pull request #303 from kleetus/bug/install_script
Making Building From Source Easier
2015-10-16 13:07:41 -04:00
Chris Kleeschulte
b69faa9bc7 Merge pull request #317 from unusualbob/feature/serviceDocumentation
Fix typos and add detailed documentation to services.md
2015-10-16 12:13:05 -04:00
Rob Riddle
06bed6b552 Make sure doc examples use hex encoding on buffers 2015-10-16 18:47:46 +03:00
Rob Riddle
734a3554d5 Fix wording as recommended by Chris.
Added additional documentation about indexes.
2015-10-16 12:29:16 +03:00
Chris Kleeschulte
8d5efc0d41 Added Shrinkwrap file
- This is the easiest, most straight-forward way to force our
  dependency chains to use our bitpay version of bufferutil and
utf-8-validate
- We need to use the bitpay version until I can get those module to
  support binary builds
2015-10-15 14:56:59 -04:00
Rob Riddle
46578659a8 Fix typos and add detailed documentation to services.md with examples for programatic use of services as well as using indexes within services. 2015-10-15 21:21:58 +03:00
Braydon Fuller
77c10b3a09 Merge pull request #312 from pnagurny/bug/sendTransaction
don't crash when sendTransaction is called with bad data
2015-10-14 11:11:47 -04:00
Patrick Nagurny
236d44441e don't crash when sendTransaction is called with bad data 2015-10-14 10:50:50 -04:00
Chris Kleeschulte
2fe83ac5a3 Bump development version to v0.2.0-dev 2015-10-13 15:54:15 -04:00
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
382f308015 - Build script fails earlier (but hopefully not often) for critical errors in compilation and dependency download
- Patch matching is fixed due to the new way we build the patch
2015-10-09 17:30:09 -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