Commit Graph

1813 Commits

Author SHA1 Message Date
Christopher Jeffrey
4038258347 emit blocks. 2014-09-22 18:21:08 -07:00
Christopher Jeffrey
f1fde6ee40 emit block events. 2014-09-22 17:58:59 -07:00
Christopher Jeffrey
b194b9d8af events work 2014-09-22 17:16:27 -07:00
Christopher Jeffrey
fdc49acedc start polling for events again. 2014-09-22 16:47:45 -07:00
Christopher Jeffrey
fd34862c4c start implementing events. 2014-09-22 16:36:36 -07:00
Christopher Jeffrey
99b519418c cleanup object creation for GetBlock and GetTx. 2014-09-22 15:42:30 -07:00
Christopher Jeffrey
5c5e125a9c add GetTx template. 2014-09-22 15:31:56 -07:00
Christopher Jeffrey
2e6b618355 remove unnecessary externs to expose functions and global variables. 2014-09-22 15:28:18 -07:00
Christopher Jeffrey
5a696ec535 better signal handling. 2014-09-22 14:37:51 -07:00
Christopher Jeffrey
f69c49aba1 remove synchronous GetTx. 2014-09-22 13:22:16 -07:00
Christopher Jeffrey
f2d5dcabe0 make GetTx asynchronous. 2014-09-22 13:21:42 -07:00
Christopher Jeffrey
457b3f77ab cleanup. 2014-09-22 13:06:15 -07:00
Christopher Jeffrey
bd8d938725 getTx working. 2014-09-22 13:05:55 -07:00
Christopher Jeffrey
4e0efdd1bb var names. 2014-09-22 12:59:09 -07:00
Christopher Jeffrey
d10b29b9a4 proper usage. 2014-09-22 12:57:25 -07:00
Christopher Jeffrey
bf60822601 remove GetTransaction_ 2014-09-22 12:56:15 -07:00
Christopher Jeffrey
3a135929b4 try to GetTransaction working. 2014-09-22 12:55:43 -07:00
Christopher Jeffrey
efec93ac57 remove debug. 2014-09-22 12:42:56 -07:00
Christopher Jeffrey
7d46f7b8fc add todo 2014-09-22 12:41:27 -07:00
Christopher Jeffrey
113a395762 add strHex to tx. 2014-09-22 12:40:46 -07:00
Christopher Jeffrey
1d7ea5763a parse gettx. 2014-09-22 12:38:33 -07:00
Christopher Jeffrey
be2bba94bd cleanup. allow no block hash. 2014-09-22 12:27:33 -07:00
Christopher Jeffrey
0fd0b7c7b6 more debugging. 2014-09-22 12:14:51 -07:00
Christopher Jeffrey
2a0f777dbd debug 2014-09-22 12:07:49 -07:00
Christopher Jeffrey
1138779bed refactor 2014-09-22 12:06:55 -07:00
Christopher Jeffrey
29cb630f67 cleanup tx notes. 2014-09-22 12:06:04 -07:00
Christopher Jeffrey
a7c8695d9b getTx implemented. 2014-09-22 12:05:17 -07:00
Christopher Jeffrey
da545489a6 more gettx notes. 2014-09-22 11:29:13 -07:00
Christopher Jeffrey
da860fc705 first pass at GetTx. 2014-09-22 10:19:37 -07:00
Christopher Jeffrey
e88f535815 remove event-based code for now. 2014-09-19 17:49:51 -07:00
Christopher Jeffrey
dcb068d3b5 poll ideas. 2014-09-19 17:48:59 -07:00
Christopher Jeffrey
da33403683 try to poll for blocks on separate thread. 2014-09-19 17:43:38 -07:00
Christopher Jeffrey
494f539f4e feeble attempt to wrap bitcoind functions. 2014-09-19 17:13:01 -07:00
Christopher Jeffrey
4410d9b9e9 fix shutdown. sigint/sighup handlers. 2014-09-19 16:45:46 -07:00
Christopher Jeffrey
7d0c31363d major GetBlock cleanup. 2014-09-19 16:09:18 -07:00
Christopher Jeffrey
8584228a0a convert block to javascript object. 2014-09-19 15:39:05 -07:00
Christopher Jeffrey
a4fcd348d4 make bitcoind.getBlock asynchronous. 2014-09-19 13:53:55 -07:00
Christopher Jeffrey
44bb54842f working getBlock 2014-09-18 17:14:17 -07:00
Christopher Jeffrey
5fd1f8614b add GetBlock method. 2014-09-18 15:32:19 -07:00
Christopher Jeffrey
f533235070 make shutdownComplete volatile, just in case. 2014-09-18 15:08:45 -07:00
Christopher Jeffrey
699ee1896f fix compile warnings. 2014-09-18 14:57:03 -07:00
Christopher Jeffrey
1f0413e262 fix process.exit and uncaughtException code. 2014-09-18 14:54:08 -07:00
Christopher Jeffrey
84ea0890a8 output redirection work. 2014-09-17 15:33:21 -07:00
Christopher Jeffrey
e3724414d4 change bitcoind.js prefix. 2014-09-17 14:31:20 -07:00
Christopher Jeffrey
a9d124c058 fix callback order. 2014-09-17 14:25:19 -07:00
Christopher Jeffrey
7f7ef196f4 fix shutdown loop. 2014-09-17 14:21:28 -07:00
Christopher Jeffrey
3aacd0a089 no allocator error on shutdown. 2014-09-17 14:08:26 -07:00
Christopher Jeffrey
7c4b707387 more work. 2014-09-17 12:52:35 -07:00
Christopher Jeffrey
da2d677a47 ripped down main->appinit->appinit2. 2014-09-17 12:14:20 -07:00
Christopher Jeffrey
29afe77700 fix parse logs again. 2014-09-17 11:31:10 -07:00
Christopher Jeffrey
22dee45e4f fix parse logs. 2014-09-17 11:30:39 -07:00
Christopher Jeffrey
8700cdabcb Revert "missing appinit2 code."
This reverts commit 164a2223c7.
2014-09-17 11:28:47 -07:00
Christopher Jeffrey
164a2223c7 missing appinit2 code. 2014-09-17 11:28:41 -07:00
Christopher Jeffrey
3b204885b2 function templates. 2014-09-17 11:23:38 -07:00
Christopher Jeffrey
49acbfc113 process title. 2014-09-12 18:56:31 -07:00
Christopher Jeffrey
9a65999b2f more start_node work. 2014-09-12 18:40:09 -07:00
Christopher Jeffrey
6a9e8f9721 AppInit and AppInit2. 2014-09-12 15:45:36 -07:00
Christopher Jeffrey
75d2b11227 binding.gyp 2014-09-12 14:39:37 -07:00
Christopher Jeffrey
3aeed05215 refactor binding.gyp. 2014-09-12 14:30:03 -07:00
Christopher Jeffrey
e2acef83c5 remove old binding.gyp. 2014-09-12 14:27:40 -07:00
Christopher Jeffrey
7525208b01 binding.gyp work. 2014-09-12 14:27:25 -07:00
Christopher Jeffrey
551e84de65 remove deps. 2014-09-11 18:23:20 -07:00
Christopher Jeffrey
7717bb182d remove work and notes. 2014-09-11 18:18:29 -07:00
Christopher Jeffrey
2de298bbc3 readme. bitcoindjs.stop. building. 2014-09-11 17:18:36 -07:00
Christopher Jeffrey
ea706e329b add note for Shutdown. 2014-09-10 17:02:00 -07:00
Christopher Jeffrey
a3cd9025fa linkage finally working. 2014-09-10 16:57:18 -07:00
Christopher Jeffrey
03ff3dba23 fix segfault in log parser. 2014-09-05 15:07:38 -07:00
Christopher Jeffrey
42ee738d07 add header file. 2014-09-04 15:17:39 -07:00
Christopher Jeffrey
3f8a6efaaf refactor error handling. 2014-09-04 15:16:32 -07:00
Christopher Jeffrey
4be0521058 fix: seg fault. unsure why. 2014-09-02 19:29:36 -07:00
Christopher Jeffrey
a2437d16c8 upgrade nan. expose log pipe fd. 2014-09-02 19:28:20 -07:00
Christopher Jeffrey
e7085e2beb log: start parse_logs() in separate thread. handle errors. 2014-09-02 19:13:33 -07:00
Christopher Jeffrey
c0c523f11a log: deal with log pipes better to differentiate node and bitcoind logs. 2014-09-02 19:00:31 -07:00
Christopher Jeffrey
9d99174c9f fix thread pool parse_logs error. 2014-09-02 18:09:11 -07:00
Christopher Jeffrey
ad0d61c18a try to compile bitcoind as a shared object. 2014-09-02 18:01:46 -07:00
Christopher Jeffrey
498f23d0be run parse_logs asynchronously. gitignore. misc. 2014-08-29 16:20:38 -07:00
Christopher Jeffrey
42dfdeb0ed remove debug comments. 2014-08-29 14:30:20 -07:00
Christopher Jeffrey
ba45d19d8c drop pthread linkage 2014-08-29 14:27:01 -07:00
Christopher Jeffrey
0cc34f5420 better warning solution;. fix nScriptCheckThreads. 2014-08-29 14:20:38 -07:00
Christopher Jeffrey
4523d857c1 get rid of warning. 2014-08-29 14:16:30 -07:00
Christopher Jeffrey
50e04c215e try to fix nScriptCheckThreads. 2014-08-29 14:12:19 -07:00
Christopher Jeffrey
c5d9a2a672 debug comments 2014-08-29 14:09:36 -07:00
Christopher Jeffrey
f9f134e51c add all boost libraries to binding.gyp. 2014-08-29 14:09:05 -07:00
Christopher Jeffrey
b6a3d3eb53 boost error comment 2014-08-29 13:57:37 -07:00
Christopher Jeffrey
d7d18d32c0 improve example and lib/index.js 2014-08-29 13:54:54 -07:00
Christopher Jeffrey
61e957c77f add parse_logs function. re-enable start_node(). 2014-08-29 13:54:16 -07:00
Christopher Jeffrey
cb4b6793db add example 2014-08-20 18:08:47 -07:00
Christopher Jeffrey
2136e14e8c stop supporting node-waf. 2014-08-20 17:56:51 -07:00
Christopher Jeffrey
957bf97ade add StartNode() to externs. 2014-08-20 17:05:12 -07:00
Christopher Jeffrey
3f06092afa refactor. comments. 2014-08-20 17:00:16 -07:00
Christopher Jeffrey
8537ad3ebf comment 2014-08-20 16:50:03 -07:00
Christopher Jeffrey
af2026aa50 pwalletMain. 2014-08-20 16:49:33 -07:00
Christopher Jeffrey
f9eb3215e6 add start_node function to start up net.cpp threads. 2014-08-20 16:47:18 -07:00
Christopher Jeffrey
70f4be4c40 another gyp refactor. 2014-08-20 15:34:27 -07:00
Christopher Jeffrey
c74c4da4b1 simplify gyp file. remove comments. 2014-08-20 15:33:03 -07:00
Christopher Jeffrey
274077ef8b i hate boost. 2014-08-20 15:32:15 -07:00
Christopher Jeffrey
97475b9847 build gyp. build info in readme. 2014-08-20 14:51:07 -07:00
Christopher Jeffrey
af3351a631 build file. attempt to fix boost errors. 2014-08-20 10:34:17 -07:00
Christopher Jeffrey
6498426268 get our module compiling with all the headers. 2014-08-19 17:35:24 -07:00
Christopher Jeffrey
5165d8a8e0 include boost headers. 2014-08-19 17:34:58 -07:00
Christopher Jeffrey
9b225c293a bitcoind headers. link to bitcoind and leveldb. add include paths. 2014-08-19 17:11:35 -07:00
Christopher Jeffrey
cbbc10144a remove old code. 2014-08-19 16:40:37 -07:00
Christopher Jeffrey
f6c05021d2 start using the uv thread pool forn work. add example. 2014-08-19 16:40:19 -07:00
Christopher Jeffrey
53b9d2224f add notes 2014-08-13 17:37:13 -04:00
Christopher Jeffrey
802cea13e4 misc 2014-08-13 17:37:04 -04:00
Christopher Jeffrey
4b05b834ca add discovery function. 2014-08-13 14:35:37 -04:00
Christopher Jeffrey
2155513e4a whitespace 2014-08-13 14:28:49 -04:00
Christopher Jeffrey
d423d8818c notes from net.cpp. 2014-08-12 18:36:01 -04:00
Christopher Jeffrey
a3ba06947f more mess. 2014-08-12 18:33:23 -04:00
Christopher Jeffrey
921c1f384f drop warnings. 2014-08-12 18:14:44 -04:00
Christopher Jeffrey
1f8a12200d more work. 2014-08-12 18:02:07 -04:00
Christopher Jeffrey
c14999109d figure out what is happening in appinit2 2014-08-12 17:37:28 -04:00
Christopher Jeffrey
3e355bd0fc bitcoind.js 2014-08-12 15:04:13 -04:00