Commit Graph

47 Commits

Author SHA1 Message Date
Braydon Fuller 1dec93edd4 bitcore -> bitcore-lib 2015-10-17 00:56:29 -04:00
Patrick Nagurny 236d44441e don't crash when sendTransaction is called with bad data 2015-10-14 10:50:50 -04:00
Braydon Fuller 1490b17f9a Fix bug with getting a block index with unknown height. 2015-10-01 00:21:14 -04:00
Chris Kleeschulte af7966f94a Removed unneeded getTxOutSetInfo 2015-09-25 11:33:51 -04:00
Braydon Fuller 1183e0cae7 Service Documentation 2015-09-23 18:14:37 -04:00
Chris Kleeschulte 402d01d7ac Next Block Hash Bindings
- Added bindings for next block hash
- Added the reg/unit tests
2015-09-21 14:07:14 -04:00
Patrick Nagurny 4a5031a917 Merge pull request #240 from braydonf/gettxoutsetinfo
Add binding for getting transaction output set information.
2015-09-18 13:20:46 -04:00
Braydon Fuller 68368397d3 Add binding to get the best block hash. 2015-09-17 18:11:47 -04:00
Braydon Fuller 4c674a8fbb Add binding for getting transaction output set information. 2015-09-17 17:52:23 -04:00
Braydon Fuller ad120213e1 Start of mempool address index. 2015-09-17 14:26:53 -04:00
Chris Kleeschulte 576d1712e4 Merge pull request #234 from braydonf/sendtxevent
Bindings: Send transaction emit "tx" events.
2015-09-16 10:35:10 -04:00
Braydon Fuller cadbc0a79d GetBlockIndex segmentation fault with genesis block
Fixes an bug where accessing `prevBlockIndex->phashBlock` for the
genesis block would cause a segmentation fault with an error of
"Cannot access memory at address 0x0". As the genesis block doesn't
have a previous hash, it will now set the "prevHash" to "null".
2015-09-16 09:23:13 -04:00
Braydon Fuller cf1c01acea Bindings: Send transaction emit "tx" events. 2015-09-15 18:31:52 -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
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
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
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
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 96f6604222 Convert daemon into bitcoin module. 2015-08-31 11:11:16 -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 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
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 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