Commit Graph

569 Commits

Author SHA1 Message Date
Braydon Fuller
162088f8f4 Expose verifyScript from the daemon 2015-07-20 10:40:35 -06:00
Braydon Fuller
0fbca8094e Added comments to getMempoolOutputs 2015-07-20 09:47:53 -04:00
Braydon Fuller
0b926b67b6 Completed getMempoolOutputs
- Pass ctx to data from the mempool for getTransaction
- Use string as input for unchecked transaction to mempool
- Only include outputs that match input address
- Include script in results
2015-07-20 09:47:53 -04:00
Chris Kleeschulte
ef3abbcb6c Added a binding for Add to mempool. 2015-07-20 09:47:07 -04:00
Braydon Fuller
54edc851e0 Add getMempoolOutputs method. 2015-07-20 09:45:54 -04:00
Braydon Fuller
b2b44d1674 Added getChainWork method for determining the best chain. 2015-07-17 13:36:12 -04:00
Braydon Fuller
8c8aa7dba2 Wait to be able to query transactions from the mempool. 2015-07-16 16:41:11 -04:00
Braydon Fuller
b738a5fb84 Remove braces, fix benchmark and pass callback. 2015-07-16 16:09:30 -04:00
Braydon Fuller
9020ddb85c Add queryMempool option to getTransaction 2015-07-16 14:39:15 -04:00
Chris Kleeschulte
0601ed29d9 1. Added a way to check if the genesis block is ready in chainActive before sending the ready event. We think that once chainActive[0] is not returning NULL, we should be ready to query the local blockchain.
2. Added the env variable BITCOINDJS_DIR support in the integration tests.
2015-07-16 13:43:51 -04:00
Chris Kleeschulte
f999e7e30f Merge pull request #28 from braydonf/isspent
Add method to check if an outpoint is spent.
2015-07-16 11:02:41 -04:00
Braydon Fuller
dcaa6203e9 Add additional livenet tests and remove used param. 2015-07-16 10:02:27 -04:00
Chris Kleeschulte
1c615ac7c0 Added extern mempool and fixed method name. 2015-07-16 10:01:41 -04:00
Braydon Fuller
801679df75 Add isSpent call 2015-07-16 10:01:41 -04:00
Braydon Fuller
946feba862 Handle case that chainActive at height does not exist. 2015-07-16 09:59:13 -04:00
Braydon Fuller
be3044d3d3 Add tests and benchmarks for getTransaction 2015-07-15 16:00:48 -04:00
Braydon Fuller
e1568d5738 Changed types back to std::string for getBlock hash. 2015-07-14 15:54:43 -04:00
k
36e3343432 Changed the order in which the header files were being included. Due to the nan header using the system version of endian.h, but the bitcoin-related headers need the compat/endian.h. The two (at least on Linux) are not compatible. 2015-07-14 15:54:39 -04:00
Chris Kleeschulte
5d9338d22a 1. Updated patch for v0.11.0
2. Updated bindings to cover the changes to bitcoin
3. Added some file matchers to gitignore for Qt Creator
4. Fixed platform lib path for Mac OS X
5. Removed unneeded methods in bindings (they will be re-added later
2015-07-13 16:34:29 -04:00
Braydon Fuller
91004a24a9 Free block buffer memory. 2015-07-09 17:34:37 -04:00
Braydon Fuller
24e705b265 Get blocks by height. 2015-07-09 16:45:30 -04:00
Braydon Fuller
69ed6efcb2 Allocate memory for block buffer. 2015-07-09 16:16:38 -04:00
Braydon Fuller
9c2726b09c Read block as a buffer 2015-07-09 16:12:52 -04:00
Braydon Fuller
50c3bc43ab Wait until bitcoind is stopped in test. 2015-07-09 14:39:23 -04:00
Chris Kleeschulte
e0376d373d Added testnet config. 2015-07-09 13:30:05 -04:00
Braydon Fuller
78c1d3dbb0 Added getBlock benchmarks 2015-07-07 20:28:48 -04:00
Braydon Fuller
618fcf65a9 Added onBlocksReady 2015-07-07 17:03:24 -04:00
Braydon Fuller
e7dcd41555 Fix block segfault 2015-07-07 15:36:17 -04:00
k
e4b7f37805 cleaned up the project! 2015-07-02 14:59:14 -04:00
Chris Kleeschulte
2039e4c6dc Added some fixes for the bindings.gyp file. 2015-06-26 16:03:43 -04:00
Chris Kleeschulte
ab598e3523 Updated the patch for a better version of LDFLAGS. 2015-06-24 17:06:27 -04:00
Chris Kleeschulte
40d576ab68 Updated the patch to remove the wallet stuff. Now the patch can be applied and bitcoind -or- libbitcoind can be built be simply adding in --enable-daemonlib or not. 2015-06-15 18:37:44 -04:00
Chris Kleeschulte
5e95650736 Removed the wallet stuff and moved the header includes into the main header file. 2015-06-11 08:34:38 -04:00
Chris Kleeschulte
16db9644c2 Removed the wallet methods (we should not need them, but they can easily be put back in later if need be). 2015-06-10 17:24:11 -04:00
Chris Kleeschulte
287ae29881 Updated bitcoind.cc to run on node v0.12.2. This code will not compile for node v0.10, but the old code will. 2015-06-10 15:38:21 -04:00
Chris Kleeschulte
a38d4b1ea0 added handle scope. 2015-06-09 06:57:58 -04:00
Chris Kleeschulte
0bd637232b Fixed null returns in argc. 2015-06-08 19:08:18 -04:00
Chris Kleeschulte
4e0939ca3c Made the bindings work with node v0.12. There was A LOT of api breakages in node and v8 since! 2015-06-08 17:18:06 -04:00
Chris Kleeschulte
2888e814f2 incremental 2015-06-04 14:54:57 -04:00
Christopher Jeffrey
709ce37fff fix CNodeStats. 2014-12-18 14:24:06 -08:00
Christopher Jeffrey
346d364c26 add something akin to relayed_by to blocks and txes. 2014-12-18 13:28:15 -08:00
Christopher Jeffrey
9cf5a394ea fix build for from_tx. 2014-12-18 10:56:46 -08:00
Christopher Jeffrey
b1ae73848c add naive getFromTx for insight. 2014-12-16 14:41:00 -08:00
Christopher Jeffrey
944169a484 revisit bloom filters. 2014-12-16 12:35:41 -08:00
Christopher Jeffrey
0f074777e7 work on exposing bloom filters for bitcore. 2014-12-15 16:08:19 -08:00
Christopher Jeffrey
00777ef855 Revert "try doing this from c++ again."
This reverts commit 21037a2a74.
2014-12-12 15:29:52 -08:00
Christopher Jeffrey
21037a2a74 try doing this from c++ again. 2014-12-12 15:29:41 -08:00
Christopher Jeffrey
6229c5cf9b Revert "try the shutting down check in c++." - does not work.
This reverts commit bf6b4d9b60.
2014-12-12 11:39:57 -08:00
Christopher Jeffrey
bf6b4d9b60 try the shutting down check in c++. 2014-12-12 11:36:38 -08:00
Christopher Jeffrey
afcd9e5f94 add SHUTTING_DOWN macro instead. 2014-12-12 11:28:52 -08:00
Christopher Jeffrey
f8b5e65be0 add all shutting_down failsafe checks in c++. 2014-12-12 11:24:53 -08:00
Christopher Jeffrey
ece3d65cc5 potentially add a shutting_down bool to the c++ layer. 2014-12-12 11:03:53 -08:00
Christopher Jeffrey
70d19eb6d6 fix getBlockByTx. 2014-12-10 16:28:35 -08:00
Christopher Jeffrey
0508bc54d8 disable -txindex. 2014-12-10 16:23:28 -08:00
Christopher Jeffrey
78aceaf12e improve get_block_by_tx. 2014-12-10 16:22:30 -08:00
Christopher Jeffrey
20934c285e potentially fix txindex check. 2014-12-10 15:22:47 -08:00
Christopher Jeffrey
1b9545834a fTxIndex is incorrect at this point. 2014-12-10 15:17:25 -08:00
Christopher Jeffrey
022ae120f8 do not print errors if we are continuing. 2014-12-10 15:09:08 -08:00
Christopher Jeffrey
7a8ecff423 change is_raw to set_cooked. 2014-12-10 11:45:14 -08:00
Christopher Jeffrey
7eba2dec57 force exit on error. 2014-12-10 11:29:29 -08:00
Christopher Jeffrey
5d127aea6b shutdown if no txindex. 2014-12-10 11:20:48 -08:00
Christopher Jeffrey
4ae8ddc5bb horrible last resort to lookup txes. 2014-12-10 11:04:24 -08:00
Christopher Jeffrey
3528221f86 improve error messages. 2014-12-10 10:47:02 -08:00
Christopher Jeffrey
8809be2d8c check for raw mode before any printf. 2014-12-10 10:44:01 -08:00
Christopher Jeffrey
3a36e5fc4e remove useless blockhash set. 2014-12-09 14:38:58 -08:00
Christopher Jeffrey
110c089c88 remove GetTransaction call. 2014-12-09 14:21:45 -08:00
Christopher Jeffrey
b37a66cdd8 check whether tx is owned by user earlier. 2014-12-09 14:20:59 -08:00
Christopher Jeffrey
171207b477 use get_tx for resolving prev_outs. 2014-12-09 14:19:44 -08:00
Christopher Jeffrey
83e2c05be7 remove dead code used to resolve unknown prev_outs. 2014-12-09 14:18:03 -08:00
Christopher Jeffrey
614cb91dbf improve ismine. 2014-12-08 14:02:41 -08:00
Christopher Jeffrey
eeec6573ae remove traverse arg. 2014-12-08 13:38:46 -08:00
Christopher Jeffrey
40da6fe0ae make traverse always true for now. 2014-12-08 13:18:30 -08:00
Christopher Jeffrey
23f71c936c remove get_tx_ldb. 2014-12-08 13:09:09 -08:00
Christopher Jeffrey
83048eef33 add get_tx_ldb. 2014-12-08 13:07:12 -08:00
Christopher Jeffrey
72342c0cdb fix parse error. 2014-12-08 12:38:27 -08:00
Christopher Jeffrey
263bc2fa73 add traverse option to get_tx. 2014-12-08 12:33:41 -08:00
Christopher Jeffrey
3cbc54bcde fix get_tx usage. 2014-12-08 11:32:11 -08:00
Christopher Jeffrey
32fd1fceb4 make var names more consistent. 2014-12-08 11:31:00 -08:00
Christopher Jeffrey
fab1f4512b database improvements. record blockhash. 2014-12-08 11:30:06 -08:00
Christopher Jeffrey
6347910195 do not use LDB_TX. 2014-12-08 10:21:50 -08:00
Christopher Jeffrey
aeb454b52c misc fixes. 2014-12-08 10:00:53 -08:00
Christopher Jeffrey
6970f8a593 revise leveldb parser. add chainstate parser. 2014-12-08 09:46:51 -08:00
Christopher Jeffrey
3f8627b351 update dir name. 2014-12-06 15:08:00 -08:00
Christopher Jeffrey
521d4b6c8c this is probably faster. 2014-12-05 14:19:40 -08:00
Christopher Jeffrey
9b3c033b38 80 cols. 2014-12-04 16:06:51 -08:00
Christopher Jeffrey
811b3ebf4a debug "Unknown" bug. 2014-12-04 15:51:23 -08:00
Christopher Jeffrey
6c8b08e697 add getlastfileindex - probably not necessary. 2014-12-04 11:21:10 -08:00
Christopher Jeffrey
3427124270 update bitcoind.js for insight. 2014-12-04 11:12:29 -08:00
Christopher Jeffrey
42b15dd24d cleanup start_node_thread. 2014-12-04 10:39:52 -08:00
Christopher Jeffrey
d265cdbd3f use blocktime to optimize. 2014-12-03 21:17:44 -08:00
Christopher Jeffrey
dd2abe4b59 fix dissonance between height and index. 2014-12-03 21:04:05 -08:00
Christopher Jeffrey
fbe9aad581 more cleanup. 2014-12-03 20:42:58 -08:00
Christopher Jeffrey
9fcd5f3b52 cleanup more code. 2014-12-03 20:38:30 -08:00
Christopher Jeffrey
c4a0db6c8f cleanup work. 2014-12-03 20:35:22 -08:00
Christopher Jeffrey
27b79dd0ef more code for the record. 2014-12-03 20:34:45 -08:00
Christopher Jeffrey
8bc89abb87 ldb block work. 2014-12-03 20:34:12 -08:00
Christopher Jeffrey
2e5c43a5e6 debugging. nHeight is incorrect. 2014-12-03 15:14:12 -08:00
Christopher Jeffrey
0955056d5c correctly parsed ldb blocks. 2014-12-03 14:59:28 -08:00
Christopher Jeffrey
43b3439639 parse ldb block index again. 2014-12-03 14:54:24 -08:00
Christopher Jeffrey
94a292cf10 parse ldb blocks correctly. 2014-12-03 14:38:14 -08:00