Commit Graph

569 Commits

Author SHA1 Message Date
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
Christopher Jeffrey
e25d11d00e do not use leveldb. 2014-11-06 16:16:41 -08:00
Christopher Jeffrey
bcbcd1178d comparator. 2014-11-06 16:16:18 -08:00
Christopher Jeffrey
f8efdb105e add GetBestBlock(). 2014-11-06 13:37:15 -08:00
Christopher Jeffrey
3a8ded71b3 more prev_list plans - make the async gods pleased. 2014-11-06 13:24:38 -08:00
Christopher Jeffrey
28cbb06c14 try to get previous output asynchronously. 2014-11-06 04:16:41 -08:00
Christopher Jeffrey
3b307e8ae5 add prev property. 2014-11-06 03:44:30 -08:00
Christopher Jeffrey
78c38743d8 add address to scriptSig. 2014-11-06 02:55:22 -08:00
Christopher Jeffrey
4c372133db whitespace 2014-11-06 01:22:46 -08:00
Christopher Jeffrey
1654923f12 fixes. 2014-11-05 17:27:51 -08:00
Christopher Jeffrey
7bee8fe176 parse raw leveldb for addr txs. 2014-11-05 12:01:24 -08:00
Christopher Jeffrey
da496dcbc7 getBlockHeight. getAddrTransactions. 2014-11-04 16:41:42 -08:00
Christopher Jeffrey
a02a672a22 add walletmove. fix callbacks. 2014-11-03 17:00:21 -08:00
Christopher Jeffrey
7c5da7e437 renaming own address works - changelabel. 2014-11-03 16:14:39 -08:00
Christopher Jeffrey
5fbcd57ccc all working except renaming own addresses - changelabel. 2014-11-03 16:10:46 -08:00
Christopher Jeffrey
8d4170a7b9 add recipients working. 2014-11-03 15:45:59 -08:00
Christopher Jeffrey
424e93ac2a more EMPTY macros. remove commented code. 2014-11-03 14:52:10 -08:00
Christopher Jeffrey
b8c608e58c add EMPTY macros. 2014-11-03 14:47:39 -08:00
Christopher Jeffrey
2e1c3620a5 more changelabel work. 2014-11-03 14:30:49 -08:00
Christopher Jeffrey
45d0945d19 add own addresses properly. 2014-11-03 14:06:25 -08:00
Christopher Jeffrey
f67d4aeac8 cannot create recipients. 2014-11-03 13:57:37 -08:00
Christopher Jeffrey
2d17a8a59e creating receive address works. 2014-11-03 13:49:55 -08:00
Christopher Jeffrey
17e2a8ff8e use SetAddressBook. 2014-11-03 13:35:35 -08:00
Christopher Jeffrey
d4f8277d75 fix build errors. 2014-11-03 13:19:32 -08:00
Christopher Jeffrey
015b971341 fix options->Set. 2014-11-03 13:09:49 -08:00
Christopher Jeffrey
a62382f56e potentially fix changelabel. 2014-11-03 13:06:30 -08:00
Christopher Jeffrey
a943cb888e attempt to fix ChangeLabel to setaccount behavior. 2014-10-31 17:41:15 -07:00
Christopher Jeffrey
00ee6cc18c fix walletdump. 2014-10-31 11:52:43 -07:00
Christopher Jeffrey
8e05e1aa3c fix percentage calculation. 2014-10-30 15:36:05 -07:00
Christopher Jeffrey
9cd8bd9ee5 rename methods. 2014-10-30 15:07:29 -07:00
Christopher Jeffrey
20301e4f4f fix build errors. improve GetRecipients(). 2014-10-30 14:42:16 -07:00
Christopher Jeffrey
9f5ac9ae40 clean up comments. 2014-10-30 14:35:32 -07:00
Christopher Jeffrey
ecf1229a3e add set, remove, and get recipient. 2014-10-30 14:34:50 -07:00
Christopher Jeffrey
1dbd16663d try adding getRecipients. fix progress. 2014-10-30 14:12:27 -07:00
Christopher Jeffrey
304d9d6e77 fix errors. fix compilation. 2014-10-29 15:07:25 -07:00
Christopher Jeffrey
98465d61e8 fix isEncrypted. 2014-10-29 12:56:39 -07:00
Christopher Jeffrey
ed9508740a return IsLocked and IsCrypted. 2014-10-29 11:33:07 -07:00
Christopher Jeffrey
73bc0083b8 refactor dumpprivkey. 2014-10-28 16:40:37 -07:00
Christopher Jeffrey
21fc1c5a74 implement WalletListTransactions. 2014-10-28 16:36:04 -07:00
Christopher Jeffrey
0ea619ff15 add received by address. 2014-10-28 15:40:36 -07:00
Christopher Jeffrey
f5b3d45b5c implement change label and delete account. 2014-10-28 15:22:46 -07:00
Christopher Jeffrey
b40e5a15ea implement GetMiningInfo() method. 2014-10-28 14:16:33 -07:00
Christopher Jeffrey
152c235d87 add get and set generate. 2014-10-28 14:09:55 -07:00
Christopher Jeffrey
349027d4b1 add dump and import wallet methods. 2014-10-28 13:57:06 -07:00
Christopher Jeffrey
a2283ae0cc massively improve GetProgress() method. 2014-10-28 13:27:04 -07:00
Christopher Jeffrey
0f59b31304 cleanup GetProgress(). 2014-10-28 13:01:58 -07:00
Christopher Jeffrey
50bcaf2918 add GetProgess() method. 2014-10-28 13:01:40 -07:00
Christopher Jeffrey
2f83b739f4 check isLocked. 2014-10-28 11:57:17 -07:00
Christopher Jeffrey
15ebf5253e add keypoolrefill method. 2014-10-28 11:52:03 -07:00
Christopher Jeffrey
b754237618 implement dumpprivkey. 2014-10-28 11:41:37 -07:00
Christopher Jeffrey
665a87f680 allow to check whether wallet is encrypted. 2014-10-28 11:29:33 -07:00
Christopher Jeffrey
9d54277db1 add comment explaining is_allocated. 2014-10-27 17:34:08 -07:00
Christopher Jeffrey
de392ca57c cleanup process_packets. don't LogPrintf. It's already been done. 2014-10-27 11:07:45 -07:00
Christopher Jeffrey
39bc4b9e63 refactor hook packets. 2014-10-27 10:59:52 -07:00
Christopher Jeffrey
cbbfd712fa whitespace. 2014-10-23 16:27:52 -07:00
Christopher Jeffrey
323a7fb962 comment. issue. 2014-10-23 16:08:29 -07:00
Christopher Jeffrey
4fa5205235 cleanup comments. old code. 2014-10-23 15:55:48 -07:00
Christopher Jeffrey
61ee01f555 comment. misc. 2014-10-23 15:42:00 -07:00
Christopher Jeffrey
acb577abe3 clean up previousblockhash. 2014-10-23 15:31:54 -07:00
Christopher Jeffrey
184cb690a4 better solution to previousblockhash. 2014-10-23 15:31:32 -07:00
Christopher Jeffrey
53e1044d8b free CBlockIndex if it is allocated. 2014-10-23 15:25:55 -07:00
Christopher Jeffrey
58e92d13e7 cleanup prevBlock code. 2014-10-23 15:11:00 -07:00
Christopher Jeffrey
a07fe6fffb prevblock work. 2014-10-23 15:04:28 -07:00
Christopher Jeffrey
090eb9ab42 remove packet polling code. 2014-10-23 13:13:20 -07:00
Christopher Jeffrey
7190fc21aa improve packet polling. 2014-10-23 11:46:42 -07:00
Christopher Jeffrey
639463bb1b comments. 2014-10-22 22:26:02 -07:00
Christopher Jeffrey
99abd06b87 cleanup. 2014-10-22 19:22:06 -07:00
Christopher Jeffrey
1fd4c0ba4f fix cblock_to_jsblock segfault. 2014-10-22 19:19:16 -07:00
Christopher Jeffrey
8ec217d1e7 block segfault fixed. 2014-10-22 19:12:43 -07:00
Christopher Jeffrey
6c0cfd17c0 still segfaulting even with bitcoin source if statement. 2014-10-22 19:06:24 -07:00
Christopher Jeffrey
b56b9186ee "filteradd", "filterclear", and "reject" not causing segfaults. 2014-10-22 19:00:35 -07:00
Christopher Jeffrey
8d0aad3dc4 "alert" and "filterload" not causing problems. 2014-10-22 18:58:39 -07:00
Christopher Jeffrey
c68f7cd0be "pong" not causing segfault. 2014-10-22 18:56:11 -07:00
Christopher Jeffrey
4b4cbcc51f "ping" not causing segfault or coredump. 2014-10-22 18:53:58 -07:00
Christopher Jeffrey
6f8b8c67cc "block" causes segfault. 2014-10-22 18:49:32 -07:00
Christopher Jeffrey
7e43364f8d tx not causing a segfault. 2014-10-22 18:46:20 -07:00
Christopher Jeffrey
c16c7d262a no segfault for getheaders. 2014-10-22 18:44:15 -07:00
Christopher Jeffrey
8aa289003f still no sigsegv yet. 2014-10-22 18:42:23 -07:00
Christopher Jeffrey
31de749b6c no segfault yet. 2014-10-22 18:39:46 -07:00
Christopher Jeffrey
c34f2f67bf still no segfault. 2014-10-22 18:37:52 -07:00
Christopher Jeffrey
7eea05c71d rule out segfault. so far, so good. 2014-10-22 18:35:47 -07:00
Christopher Jeffrey
c2041a05ce copy pfrom. 2014-10-22 18:32:16 -07:00
Christopher Jeffrey
efad654e36 copy stream. 2014-10-22 18:30:15 -07:00
Christopher Jeffrey
a766e381c3 revert to original method of linked list. 2014-10-22 18:08:35 -07:00
Christopher Jeffrey
8a221853e0 copy data stream in different manner. 2014-10-22 18:06:53 -07:00
Christopher Jeffrey
783ed11df7 experiment with copying data stream. 2014-10-22 18:05:17 -07:00
Christopher Jeffrey
2125c80676 "addr" compiling. all packets compile. 2014-10-22 17:11:19 -07:00
Christopher Jeffrey
38d33c1c97 all packets compiling. bloom filters still have issues. 2014-10-22 17:03:40 -07:00
Christopher Jeffrey
ed11bc5352 "filterload" compiling with issues. 2014-10-22 17:01:40 -07:00
Christopher Jeffrey
cddc43a30f "alert" compiling. work on filter packets. 2014-10-22 16:56:29 -07:00
Christopher Jeffrey
585bf5e5e9 "pong" compiled. 2014-10-22 16:41:56 -07:00
Christopher Jeffrey
ed676d5140 "getaddr", "mempool", "ping" compiled. 2014-10-22 16:39:46 -07:00
Christopher Jeffrey
04d5452088 "block" compiling. 2014-10-22 16:38:43 -07:00
Christopher Jeffrey
0345ba1590 "tx" packet compiling. 2014-10-22 16:36:49 -07:00
Christopher Jeffrey
3d2d017221 "getheaders" compiling. 2014-10-22 16:35:26 -07:00
Christopher Jeffrey
c09293bb4d "getblocks" compiling. 2014-10-22 16:34:28 -07:00
Christopher Jeffrey
ae184ccd2f "gedata" compiling. 2014-10-22 16:32:13 -07:00
Christopher Jeffrey
44951223d7 get handlers compiling. 2014-10-22 16:25:10 -07:00
Christopher Jeffrey
7c454e8481 all packets finally implemented. 2014-10-22 16:13:46 -07:00
Christopher Jeffrey
9937724fac add "filteradd" packet. 2014-10-22 16:08:39 -07:00
Christopher Jeffrey
4a3d03dd75 add "filterload" handler. 2014-10-22 16:07:16 -07:00