Commit Graph

569 Commits

Author SHA1 Message Date
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
Christopher Jeffrey
faca81f038 check txPos for leveldb, again. 2014-12-03 14:21:37 -08:00
Christopher Jeffrey
285c7f1d45 check txPos for leveldb. 2014-12-03 14:20:54 -08:00
Christopher Jeffrey
013c5faf3e error handling. 2014-12-03 12:51:36 -08:00
Christopher Jeffrey
70d8eba91f fix getblockbytime 2014-12-03 12:49:11 -08:00
Christopher Jeffrey
4b2313d85f getblockbytime 2014-12-03 12:46:48 -08:00
Christopher Jeffrey
0da9c4dd44 fix leveldb traversal. 2014-12-03 12:31:39 -08:00
Christopher Jeffrey
fc0de11c50 minor 2014-12-03 12:16:29 -08:00
Christopher Jeffrey
9ce652ff09 get block by txid. 2014-12-03 12:14:23 -08:00
Christopher Jeffrey
9f52c538dd fix typo. 2014-12-03 11:03:54 -08:00
Christopher Jeffrey
81c59966fa consistent naming. 2014-12-03 10:57:56 -08:00
Christopher Jeffrey
d2fd57faef remove overcomplicated code and comments temporarily. 2014-12-02 03:30:57 -08:00
Christopher Jeffrey
09ed50b7ad fix options checks. 2014-12-02 03:07:11 -08:00
Christopher Jeffrey
774f08c91f use tiny to cache addresses and start where we left off. 2014-12-01 22:30:05 -08:00
Christopher Jeffrey
144cb40195 potentially allow -txindex for faster addr lookups. 2014-12-01 20:43:44 -08:00
Christopher Jeffrey
628b20b982 parse leveldb correctly. 2014-12-01 20:32:56 -08:00
Christopher Jeffrey
5ad347c892 leveldb work. 2014-12-01 19:57:15 -08:00
Christopher Jeffrey
4459bf5b9f more leveldb work. 2014-12-01 17:12:53 -08:00
Christopher Jeffrey
b691fb111b leveldb work. 2014-12-01 17:05:50 -08:00
Christopher Jeffrey
7cb7346b98 leveldb work. 2014-12-01 16:50:42 -08:00
Christopher Jeffrey
74aa4c1fd0 do not use leveldb. 2014-12-01 15:51:01 -08:00
Christopher Jeffrey
69e6a252d1 put leveldb key in error message. 2014-12-01 15:50:26 -08:00
Christopher Jeffrey
7e00980db2 potential error handling. 2014-12-01 15:15:38 -08:00
Christopher Jeffrey
9182f5b3b2 add err field to ctx_list. 2014-12-01 15:09:47 -08:00
Christopher Jeffrey
af58fbff27 fix leveldb parsing. remove old code. 2014-12-01 15:02:58 -08:00
Christopher Jeffrey
15a694d127 use leveldb to parse all blocks for txes. 2014-12-01 14:59:09 -08:00
Christopher Jeffrey
e1722b0a63 remove unused leveldb code. 2014-12-01 14:57:55 -08:00
Christopher Jeffrey
4a6a3b1243 start parsing blocks in leveldb. 2014-12-01 14:55:42 -08:00
Christopher Jeffrey
a4149fe101 link to now exposed functions. start using exposed leveldb. 2014-12-01 14:50:05 -08:00
Christopher Jeffrey
cbda3b330a remove old and new comments. 2014-12-01 13:44:44 -08:00
Christopher Jeffrey
d1d5d09ec5 update bitcoind.js for latest bitcoin upstream. 2014-12-01 13:38:24 -08:00
Christopher Jeffrey
2d9d922cb8 check the last 20000 blocks for addr txes. 2014-11-19 18:28:19 -08:00
Christopher Jeffrey
de286968d0 fix GetBlock(). 2014-11-19 17:04:19 -08:00
Christopher Jeffrey
5382ecb5b0 cleanup blockhash. 2014-11-19 15:56:38 -08:00
Christopher Jeffrey
61856ab68d more leveldb work: use chainstate db. use Params().GenesisBlock(). 2014-11-19 15:47:33 -08:00
Christopher Jeffrey
97aaa9dbad leveldb does not like me. 2014-11-19 13:46:14 -08:00
Christopher Jeffrey
d9231ef59b use CLevelDBWrapper. 2014-11-19 13:42:11 -08:00
Christopher Jeffrey
4341e487c0 work on ldb iteration. 2014-11-19 12:28:15 -08:00
Christopher Jeffrey
d7641c173c potentially iterate all ldb values. 2014-11-19 11:29:18 -08:00
Christopher Jeffrey
bf3983982f check is_mine differently. 2014-11-19 10:59:07 -08:00
Christopher Jeffrey
05c9d59636 comparator function. fix cwtx usage. 2014-11-19 10:54:03 -08:00
Christopher Jeffrey
918dc08ddc check whether tx is ours. add walletconflicts if so. 2014-11-19 10:08:02 -08:00
Christopher Jeffrey
136b0c4122 fix compiler warnings. 2014-11-18 17:10:17 -08:00
Christopher Jeffrey
0be9143e32 use other method for obtaining addr txs. cache them. 2014-11-18 16:55:24 -08:00
Christopher Jeffrey
499c47aa34 fix mapBlockIndex segfault. use .count properly. 2014-11-18 16:26:42 -08:00
Christopher Jeffrey
5b15937d8f check pindex - fix segfault. 2014-11-18 15:51:43 -08:00
Christopher Jeffrey
87a6d89e25 revert misguided changes. refactor is_mine. 2014-11-18 15:47:17 -08:00
Christopher Jeffrey
d50c103c00 check IsMine for tx conversions. 2014-11-18 15:42:15 -08:00
Christopher Jeffrey
d8701332c0 fix tx properties. 2014-11-18 15:38:44 -08:00
Christopher Jeffrey
65e4ffddda comment. 2014-11-18 13:26:24 -08:00
Christopher Jeffrey
7fd22317e7 add function templates. 2014-11-17 16:43:50 -08:00
Christopher Jeffrey
513a7ae746 add rescan blockchain. 2014-11-17 16:42:08 -08:00
Christopher Jeffrey
e18bfdd2fb fix v8 assertion failure on tx sending. 2014-11-17 16:05:31 -08:00
Christopher Jeffrey
990084bd22 code fixes - typos. 2014-11-17 13:44:10 -08:00
Christopher Jeffrey
30ce2aaf4c use reference instead of pointer for genesis block. 2014-11-17 13:20:28 -08:00
Christopher Jeffrey
bb8e43117c refactor. fix boolean cast. 2014-11-17 13:13:55 -08:00
Christopher Jeffrey
a4e4b35c8d remove log pipe. 2014-11-17 13:09:05 -08:00
Christopher Jeffrey
f647de9a32 comments. remove async packet parsing. 2014-11-17 13:07:15 -08:00
Christopher Jeffrey
c781b0c297 potentially make packet parsing async. still can't figure out what is making blockchain download block the main thread. 2014-11-17 12:53:55 -08:00
Christopher Jeffrey
3f7c206bb9 cleanup importprivkey. 2014-11-17 11:29:06 -08:00
Christopher Jeffrey
8eb0e2d810 do not include parent block. 2014-11-14 15:01:10 -08:00
Christopher Jeffrey
2c0010a31f fix error. fix parent block. 2014-11-14 14:59:51 -08:00
Christopher Jeffrey
20faa1225b add parent block to each tx. 2014-11-14 14:52:18 -08:00
Christopher Jeffrey
eb9d5d70bc better error messages. 2014-11-14 14:51:20 -08:00
Christopher Jeffrey
d250d2a1cd add size to tx. 2014-11-13 17:18:56 -08:00
Christopher Jeffrey
7aaf4dce94 allow wallet transactions to lookup their real counterparts. 2014-11-13 16:46:05 -08:00
Christopher Jeffrey
6d994454d5 always include hex in wallet transactions. convert to regular transactions. 2014-11-13 15:45:55 -08:00
Christopher Jeffrey
fe643a37ae remove old WalletGetTransaction code. 2014-11-13 15:30:35 -08:00
Christopher Jeffrey
f19bd33fe3 remove todos. implement WalletGetTransaction. 2014-11-13 15:28:42 -08:00
Christopher Jeffrey
fdf15b340f WalletGetBalance account is * by default. 2014-11-13 12:41:41 -08:00
Christopher Jeffrey
ebf3c6c13d fix WalletListTransactions(). 2014-11-13 12:28:31 -08:00
Christopher Jeffrey
4692d4a034 fix getbalance. 2014-11-13 11:56:15 -08:00
Christopher Jeffrey
4b14b0a274 rename mindepth to confirmations. 2014-11-13 11:30:31 -08:00
Christopher Jeffrey
3694f72e91 percent check for hours and days. 2014-11-12 16:20:38 -08:00
Christopher Jeffrey
5c6ec309b1 cleanup progress. 2014-11-12 16:10:52 -08:00
Christopher Jeffrey
6674de5b76 use checkpoint progress to get time left. 2014-11-12 15:58:03 -08:00
Christopher Jeffrey
b6207b907f make sure amount is specified for move. 2014-11-12 15:53:14 -08:00
Christopher Jeffrey
6c9b005cd1 fix orphans. 2014-11-12 15:43:22 -08:00
Christopher Jeffrey
a9b9846aed start making hookPackets async. 2014-11-12 15:41:05 -08:00
Christopher Jeffrey
0d25d43024 use Checkpoints::GuessVerificationProgress and return orphan count. 2014-11-12 14:56:56 -08:00
Christopher Jeffrey
bd5d576076 start hook_packets on separate boost thread. 2014-11-12 14:07:08 -08:00
Christopher Jeffrey
64e68be07d progress working. 2014-11-12 11:57:04 -08:00
Christopher Jeffrey
f659f1fe96 fix GetProgress again. 2014-11-12 11:11:38 -08:00
Christopher Jeffrey
43652bb5c3 now for progress. 2014-11-12 11:09:17 -08:00
Christopher Jeffrey
41a174b929 potentially fix GetProgress. 2014-11-11 16:18:06 -08:00
Christopher Jeffrey
10aef46050 default datadir=.bitcoind.js 2014-11-11 13:36:08 -08:00
Christopher Jeffrey
c1dc858c28 ensure err_msg. fix callback errors. 2014-11-11 12:05:32 -08:00
Christopher Jeffrey
82859274d6 fix fRescan check for callback. 2014-11-11 11:57:52 -08:00
Christopher Jeffrey
d2df3dd534 remove useless if statement. 2014-11-11 11:45:57 -08:00
Christopher Jeffrey
98f9c66080 handle account names better. 2014-11-11 11:44:32 -08:00
Christopher Jeffrey
9a9ddcd21a consistency. 2014-11-11 11:38:51 -08:00
Christopher Jeffrey
4136be38f6 stop using String::New. 2014-11-11 11:36:20 -08:00
Christopher Jeffrey
36e67831eb fix read_addr(). 2014-11-11 11:29:46 -08:00
Christopher Jeffrey
a4ec5de4db remove useless c_str conversions. 2014-11-11 11:11:12 -08:00
Christopher Jeffrey
e2425c5b44 throw error if account is not provided. 2014-11-11 11:07:09 -08:00
Christopher Jeffrey
83652317d7 only use EMPTY for account names. 2014-11-11 11:04:08 -08:00
Christopher Jeffrey
89ea984344 get rid of IS_EMPTY. add WalletIsMine(). 2014-11-11 11:02:21 -08:00
Christopher Jeffrey
eac667e103 reorganize sendto/from/move. 2014-11-10 16:04:34 -08:00
Christopher Jeffrey
a18102ac2c read leveldb index. 2014-11-10 15:40:17 -08:00
Christopher Jeffrey
581ff27610 fix leveldb traversal. 2014-11-10 15:36:51 -08:00
Christopher Jeffrey
f057ec71a6 parse leveldb for txs. 2014-11-10 15:28:38 -08:00