Commit Graph

2686 Commits

Author SHA1 Message Date
Christopher Jeffrey
ef44dcd6cb
refactor: minor. 2016-10-21 19:38:04 -07:00
Christopher Jeffrey
94720ce814
docs: lowlevelup. 2016-10-21 19:38:03 -07:00
Christopher Jeffrey
958b8ead18
doc: fix parse error. 2016-10-21 19:38:03 -07:00
Christopher Jeffrey
4e5ec39cc9
txdb: refactor range queries. 2016-10-21 19:38:03 -07:00
Christopher Jeffrey
8a158bbe41
minerblock: fix starting weight. 2016-10-21 19:38:03 -07:00
Christopher Jeffrey
d3ac6eba9e
script: minor. 2016-10-21 19:38:03 -07:00
Christopher Jeffrey
e2d51352a8
chain: refactor reorgs. 2016-10-06 04:34:58 -07:00
Christopher Jeffrey
227766e8eb
miner: comments. 2016-10-06 04:18:52 -07:00
Christopher Jeffrey
985f4c95dc
miner: make jshint happy. 2016-10-06 04:17:11 -07:00
Christopher Jeffrey
7506d89947
txdb: improve insertion handling. 2016-10-06 04:05:58 -07:00
Christopher Jeffrey
f629c6db5c
miner: fix sorting. 2016-10-06 02:31:50 -07:00
Christopher Jeffrey
3cc5ce16b9
http/miner: misc fixes. 2016-10-06 02:25:15 -07:00
Christopher Jeffrey
97c89303ba
pool: fix broadcast items... again. 2016-10-06 02:07:53 -07:00
Christopher Jeffrey
56aca55b1e
pool: fix broadcasting. clean up loadrequest. 2016-10-06 01:58:05 -07:00
Christopher Jeffrey
5b3f6bb042
miner: better stopping and starting. 2016-10-06 01:18:08 -07:00
Christopher Jeffrey
12a5bcc4e2
miner: better sorting of txs. 2016-10-06 00:27:12 -07:00
Christopher Jeffrey
749a912f8c
miner: refactor. 2016-10-05 21:46:47 -07:00
Christopher Jeffrey
2c31d7f1b0
miner: update block header during hashing. 2016-10-05 20:05:29 -07:00
Christopher Jeffrey
49d41f17e4
mempool: make jshint happy. 2016-10-05 19:59:18 -07:00
Christopher Jeffrey
4e7d0af456
node: no automatic zap. 2016-10-05 19:56:45 -07:00
Christopher Jeffrey
f57867f929
node: rescan before zap. 2016-10-05 19:55:55 -07:00
Christopher Jeffrey
7f22223436
http: rename zapAll for consistency. 2016-10-05 19:51:46 -07:00
Christopher Jeffrey
36a63694a0
mempool: fix reorg handling. 2016-10-05 19:49:03 -07:00
Christopher Jeffrey
1b489f42cd
txdb: zap assert. 2016-10-05 19:35:34 -07:00
Christopher Jeffrey
eee6866319
mempool: fix removeBlock lock. 2016-10-05 19:29:16 -07:00
Christopher Jeffrey
5bb21070c4
wallet: refactor and add global zap. 2016-10-05 19:16:33 -07:00
Christopher Jeffrey
acae838059
miner: refactor jobs and pool. 2016-10-05 16:56:26 -07:00
Christopher Jeffrey
0e8f4712e3
workers: refactor framer and parser. 2016-10-05 14:53:01 -07:00
Christopher Jeffrey
02ccde4f8a
wallet: handle account init errors. 2016-10-05 08:02:37 -07:00
Christopher Jeffrey
41a94dacd2
http: fix hd key handling. 2016-10-05 07:25:03 -07:00
Christopher Jeffrey
323ea3eda5
http: handle api keys better. 2016-10-05 07:11:13 -07:00
Christopher Jeffrey
745c12ef3a
http: allow admin status for noAuth. 2016-10-05 05:59:56 -07:00
Christopher Jeffrey
383c8f085f
http: add admin key for dos-able calls. 2016-10-05 05:51:32 -07:00
Christopher Jeffrey
80b6968318
rpc: sort txs and coins. 2016-10-05 05:41:07 -07:00
Christopher Jeffrey
80aa8f8c4c
http: more methods and better validation. 2016-10-05 04:55:19 -07:00
Christopher Jeffrey
6f18d890f1
wallet: better option handling. expose more txdb methods. 2016-10-05 04:48:06 -07:00
Christopher Jeffrey
bc4e9e7387
node: scan method. 2016-10-05 04:29:10 -07:00
Christopher Jeffrey
c3ff43c85b
http: better querystring parsing. 2016-10-05 04:23:26 -07:00
Christopher Jeffrey
ac483eaedd
wallet: improve ensureAccount. 2016-10-05 02:21:42 -07:00
Christopher Jeffrey
c866598e85
crypto: error messages. 2016-10-05 02:21:19 -07:00
Christopher Jeffrey
f697dc18bb
chaindb: better reset. 2016-10-05 02:15:51 -07:00
Christopher Jeffrey
402996ba74
rpc: add selectwallet call. 2016-10-05 00:57:14 -07:00
Christopher Jeffrey
279df328d1
lint. 2016-10-04 23:17:28 -07:00
Christopher Jeffrey
0eb29e50b5
chaindb: minor. 2016-10-04 22:45:27 -07:00
Christopher Jeffrey
fe2f2fcc2a
chaindb: reorganize some functions. 2016-10-04 22:42:08 -07:00
Christopher Jeffrey
1f790f94b9
chaindb: refactor writes and pruning. 2016-10-04 22:34:46 -07:00
Christopher Jeffrey
5e1b56363b
http: add watchOnly options. 2016-10-04 17:06:56 -07:00
Christopher Jeffrey
cd0a8f2425
net: fix packet checksum error handling. 2016-10-04 15:55:10 -07:00
Christopher Jeffrey
6344eebc2d
wallet: add pathinfo to index.js. 2016-10-04 13:40:31 -07:00
Christopher Jeffrey
6215954ffb
rpc: update for tx->txdb change. 2016-10-04 13:36:02 -07:00
Christopher Jeffrey
dd7ccd40db
wallet: path version and type. 2016-10-04 12:30:44 -07:00
Christopher Jeffrey
2c066ddce1
walletdb: fix destroying. 2016-10-04 05:39:35 -07:00
Christopher Jeffrey
a41d27e828
wallet: fix adding of tx. 2016-10-04 05:32:00 -07:00
Christopher Jeffrey
874d725f40
wallet: minor. 2016-10-04 05:26:22 -07:00
Christopher Jeffrey
3599ab5d9a
wallet: refactor. 2016-10-04 04:22:52 -07:00
Christopher Jeffrey
ee4014a12f
hd: minor fixes. 2016-10-04 02:47:33 -07:00
Christopher Jeffrey
08c7136ef4
wallet: share batches between wallet and txdb. 2016-10-04 01:36:01 -07:00
Christopher Jeffrey
a800f8c44b
txdb: more atomicity for double-spender removal. 2016-10-03 23:52:46 -07:00
Christopher Jeffrey
aa8f9fdf90
wallet: path handling. 2016-10-03 23:45:03 -07:00
Christopher Jeffrey
9a3e3fba3a
wallet: make more state local to wallets. 2016-10-03 20:42:06 -07:00
Christopher Jeffrey
3cef641780
wallet: account cache + locking issue. 2016-10-03 16:57:27 -07:00
Christopher Jeffrey
d77215009f
hd: cache. 2016-10-03 16:49:00 -07:00
Christopher Jeffrey
b45c20b157
wallet: options parsing. 2016-10-03 15:53:07 -07:00
Christopher Jeffrey
16f8fef00b
hd: fix HD.from. 2016-10-03 14:50:19 -07:00
Christopher Jeffrey
56e4bace42
wallet: account options. 2016-10-03 14:43:35 -07:00
Christopher Jeffrey
b36491dd53
script: nullfail - minor. 2016-10-03 14:16:07 -07:00
Christopher Jeffrey
a22611b990
asyncobject: refactor. 2016-10-03 08:55:09 -07:00
Christopher Jeffrey
0d9afabd87
chaindb: fix reorg handling for spv. 2016-10-03 08:48:26 -07:00
Christopher Jeffrey
f5625e76e1
wallet: refactor variable names. 2016-10-03 08:31:18 -07:00
Christopher Jeffrey
f1b4c61a99
wallet: serialization. 2016-10-03 08:20:40 -07:00
Christopher Jeffrey
0f74292082
refactor: style. 2016-10-03 07:58:12 -07:00
Christopher Jeffrey
51b526b7fb
migrate: get wallet migration working. 2016-10-03 07:48:08 -07:00
Christopher Jeffrey
a4ea496d62
txdb: whitespace. 2016-10-03 07:29:42 -07:00
Christopher Jeffrey
5010c5588b
tx/block: s/32/u32/g 2016-10-03 05:32:39 -07:00
Christopher Jeffrey
476cc48702
tx: improve witness parsing. 2016-10-03 05:19:03 -07:00
Christopher Jeffrey
32a2e119e1
walletkey: comments and fixes. 2016-10-03 03:43:16 -07:00
Christopher Jeffrey
44b5a8725e
walletkey: minor. 2016-10-03 03:28:42 -07:00
Christopher Jeffrey
2097450b42
wallet: move watchOnly flag to wallet for safety. 2016-10-03 03:03:10 -07:00
Christopher Jeffrey
25946b8909
wallet: minor. 2016-10-03 02:47:52 -07:00
Christopher Jeffrey
41b342350f
browser: add rpc. 2016-10-03 02:29:04 -07:00
Christopher Jeffrey
3e59282c66
deps: browser transform. 2016-10-03 01:48:08 -07:00
Christopher Jeffrey
10ee1dce6e
wallet: refactor and comments. 2016-10-02 23:24:14 -07:00
Christopher Jeffrey
4f46bb3324
wallet: move master key. 2016-10-02 23:24:14 -07:00
Christopher Jeffrey
1a93f84b47
wallet: support scrypt as a derivation method. 2016-10-02 23:24:14 -07:00
Christopher Jeffrey
c338f8d0e6
account: fix nested derivation. 2016-10-02 23:24:14 -07:00
Christopher Jeffrey
d7c1ee9dc2
migrate: walletdb 2 to 3. 2016-10-02 23:24:13 -07:00
Christopher Jeffrey
7b3134d782
account: hd watchonly support. 2016-10-02 23:24:13 -07:00
Christopher Jeffrey
57bc9bf4b0
wallet: better encrypted for imported keys. 2016-10-02 23:24:13 -07:00
Christopher Jeffrey
1c483aa9ca
script/node: minor. 2016-10-02 23:24:13 -07:00
Christopher Jeffrey
bf0a22e138
script: semicolon. 2016-10-02 23:24:13 -07:00
Christopher Jeffrey
2593572066
chaindb: re-enable compression. 2016-10-02 23:24:13 -07:00
Christopher Jeffrey
f576ed8be7
script: cleanup. 2016-10-02 23:24:13 -07:00
Christopher Jeffrey
2a12b908a9
script: improve isStandard. 2016-10-02 23:24:12 -07:00
Christopher Jeffrey
c43df089f6
script: refactor verification and execution. 2016-10-02 23:24:12 -07:00
Christopher Jeffrey
c13852f81e
script: fix code separators for segwit. 2016-10-02 23:24:12 -07:00
Christopher Jeffrey
e850227793
utils: concat. 2016-10-02 23:24:12 -07:00
Christopher Jeffrey
1e362c8166
refactor: minor. 2016-10-02 23:24:12 -07:00
Christopher Jeffrey
6dfa47e7f4
refactor: rename constructors. 2016-10-02 23:24:12 -07:00
Christopher Jeffrey
76a32feb5d
utils: remove some control flow. add base58. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
1a8657d131
spawn: rename to co. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
1213782b3e
wallet: misc. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
f0223146af
deps: massive refactor. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
f96ee525f5
http: refactor deps and tests. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
24b92a2b58
bip70: refactor deps. 2016-10-02 23:24:10 -07:00
Christopher Jeffrey
323d5fb8a4
hd: refactor deps. 2016-10-02 23:24:10 -07:00
Christopher Jeffrey
d842b5639b
chain: refactor deps. 2016-10-02 23:24:10 -07:00
Christopher Jeffrey
376d6303b7
env: refactor how default instances work. 2016-10-02 23:24:10 -07:00
Christopher Jeffrey
960393a53f
wallet: use separate branch for nested addrs. 2016-10-02 23:24:10 -07:00
Christopher Jeffrey
19c8959c1a
wallet: rename change to branch. 2016-10-02 23:24:10 -07:00
Christopher Jeffrey
8c5c9de132
wallet: more rewriting. 2016-10-02 23:24:09 -07:00
Christopher Jeffrey
d2832f001d
wallet: wallet key. 2016-10-02 23:24:09 -07:00
Christopher Jeffrey
61a77d90e9
wallet: more rewriting. 2016-10-02 23:24:09 -07:00
Christopher Jeffrey
2544e5310a
walletdb: path refactor. 2016-10-02 23:24:09 -07:00
Christopher Jeffrey
77e1af4faf
script: fix minimalif. 2016-10-02 23:24:09 -07:00
Christopher Jeffrey
d4778d21b2
chain: misc refactoring. 2016-10-02 23:24:09 -07:00
Christopher Jeffrey
79e70d7bbb
account: path names. 2016-10-02 23:24:08 -07:00
Christopher Jeffrey
c0d47baa08
net: minor. 2016-10-02 23:24:08 -07:00
Christopher Jeffrey
087177b4a6
chaindb: no compression. 2016-10-02 23:24:08 -07:00
Christopher Jeffrey
f297591193
http: minor. 2016-10-02 23:24:08 -07:00
Christopher Jeffrey
60eec9e0a0
http: fix subtractFee validation. 2016-10-02 23:24:08 -07:00
Christopher Jeffrey
f5a8cb3ec0
locker: more refactoring. 2016-10-02 23:24:08 -07:00
Christopher Jeffrey
15350ead4f
locker: refactor. 2016-10-02 23:24:07 -07:00
Christopher Jeffrey
2a43005c6b
locker: fix nop. 2016-10-02 23:24:07 -07:00
Christopher Jeffrey
63dd30393c
script: implement minimalif. 2016-10-02 23:24:07 -07:00
Christopher Jeffrey
144beb343a
mempool: remove confusing fee nonsense. 2016-10-02 23:24:07 -07:00
Christopher Jeffrey
99ef1fbc7b
test: update tx tests. 2016-10-02 23:24:07 -07:00
Christopher Jeffrey
37de8bf2a7
net: always pause socket when handling a packet. 2016-10-02 23:24:07 -07:00
Christopher Jeffrey
9aaf5ea2a0
peer. 2016-10-02 23:24:06 -07:00
Christopher Jeffrey
661a8f2f20
peer: flush data to socket. 2016-10-02 23:24:06 -07:00
Christopher Jeffrey
a467b4e475
refactor: misc. 2016-10-02 23:24:06 -07:00
Christopher Jeffrey
c7fb41f4cd
wallet/txdb: refactor. 2016-10-02 23:23:40 -07:00
Christopher Jeffrey
8c923179dc
chain: refactor tx validation. 2016-09-26 18:11:19 -07:00
Christopher Jeffrey
960d144455
ec: start migrating towards secp256k1. 2016-09-24 19:28:59 -07:00
Christopher Jeffrey
3f1946cd7e
refactor: lint. misc. 2016-09-24 02:41:35 -07:00
Christopher Jeffrey
5a6099e992
mempool: fix mempool.has(). 2016-09-24 02:34:00 -07:00
Christopher Jeffrey
099fe186f0
spawn: fix call and promisify. 2016-09-24 02:23:00 -07:00
Christopher Jeffrey
aedbac0be6
chaindb: remove initState. 2016-09-24 00:39:45 -07:00
Christopher Jeffrey
b7f82990c3
chain: refactor open. 2016-09-24 00:23:24 -07:00
Christopher Jeffrey
6589cdc95b
refactor: data management fixes. 2016-09-23 23:40:36 -07:00
Christopher Jeffrey
1906034106
refactor: minor. 2016-09-23 21:36:05 -07:00
Christopher Jeffrey
6357795fd9
txdb: refactor. 2016-09-23 18:42:38 -07:00
Christopher Jeffrey
37586e5ad8
refactor: db. 2016-09-23 05:32:08 -07:00
Christopher Jeffrey
ed66e0b7cc
test: fix chain tests. 2016-09-23 02:11:16 -07:00
Christopher Jeffrey
f0a37f3e5e
refactor: replace callback comments. 2016-09-23 01:05:06 -07:00
Christopher Jeffrey
3b14525d17
refactor: lint. misc. 2016-09-23 00:56:53 -07:00
Christopher Jeffrey
9bbd8de8bf
refactor: remote rescanning. misc fixes. 2016-09-23 00:42:16 -07:00
Christopher Jeffrey
02b19824dc
refactor: locks. 2016-09-23 00:10:29 -07:00
Christopher Jeffrey
c2e1e4bfc9
refactor: chain. txdb. wallet. 2016-09-22 23:58:19 -07:00
Christopher Jeffrey
63a9dc61f6
refactor: peer. etc. 2016-09-22 16:05:22 -07:00
Christopher Jeffrey
19e5359f0f
pool: co. 2016-09-22 06:25:10 -07:00
Christopher Jeffrey
a7d3626975
db: drop db.fetch. 2016-09-22 06:11:38 -07:00
Christopher Jeffrey
4e11bbbf9f
refactor: locks. 2016-09-22 05:24:18 -07:00
Christopher Jeffrey
8cb6faa078
refactor: browser. benchmarks. 2016-09-22 04:03:01 -07:00
Christopher Jeffrey
f158a73a2d
refactor: fixes. workers. locks. 2016-09-22 02:54:56 -07:00
Christopher Jeffrey
8c11a2aa3f
generators: refactor http. 2016-09-22 01:29:48 -07:00
Christopher Jeffrey
ae83aa6fba
refactor: more work. 2016-09-22 00:24:59 -07:00
Christopher Jeffrey
60d162eb20
refactor: s/spawn.co/co/g 2016-09-21 22:59:48 -07:00
Christopher Jeffrey
ec0d50d506
refactor: improve generator perf. 2016-09-21 22:58:27 -07:00
Christopher Jeffrey
2899219033
refactor: cleanup. 2016-09-21 11:03:48 -07:00
Christopher Jeffrey
df23810b0c
refactor: fix cli. finish rpc. 2016-09-21 10:46:07 -07:00
Christopher Jeffrey
b616d75128
refactor: db. 2016-09-21 00:14:16 -07:00
Christopher Jeffrey
d78151d3d3
refactor: promises. 2016-09-20 15:28:14 -07:00
Christopher Jeffrey
72597c9faf
test: add more mempool tests. 2016-09-19 14:16:14 -07:00
Christopher Jeffrey
d18482507a
mempool: safer handling of wtxs. 2016-09-19 06:53:21 -07:00
Christopher Jeffrey
c0f4225b32
tx/mempool: fix mutated witnesses in rejects filter. 2016-09-19 04:41:29 -07:00
Christopher Jeffrey
27e574c7e5
script: minor. 2016-09-18 14:19:44 -07:00
Christopher Jeffrey
ab052eb81d
script: implement bip114v2. 2016-09-18 14:17:11 -07:00
Christopher Jeffrey
9561b3ee74
rpc: getblocktemplate - abide by bip145. 2016-09-18 12:57:50 -07:00
Christopher Jeffrey
1af3ac63de
chain: bip147. 2016-09-18 12:30:23 -07:00
Christopher Jeffrey
3f77f12c03
rpc: typo. 2016-09-18 12:10:50 -07:00
Christopher Jeffrey
b03a10d790
script: implement bip146 (nullfail). 2016-09-18 12:03:12 -07:00
Christopher Jeffrey
a508d5a51d
rpc: getwork - verify header before mutating current block. 2016-09-17 19:48:42 -07:00
Christopher Jeffrey
5dadb224ca
rpc: lint. 2016-09-17 19:23:45 -07:00
Christopher Jeffrey
170cf0db28
rpc: misc fixes. 2016-09-17 19:20:28 -07:00
Christopher Jeffrey
5e18dddd37
http: make http api safe for spv. 2016-09-17 19:11:08 -07:00
Christopher Jeffrey
d9a3dac869
rpc: make rpc safe for spv mode. 2016-09-17 19:00:58 -07:00
Christopher Jeffrey
666a7b7999
rpc: getwork longpolling and other improvements. 2016-09-17 18:26:54 -07:00
Christopher Jeffrey
d1cfcca3d9
node: fix payout address setting. 2016-09-17 18:26:23 -07:00
Christopher Jeffrey
1096cd0bd9
peer: fix checksum optimization for spv serving. 2016-09-17 18:25:52 -07:00
Christopher Jeffrey
061548f2ac
rpc: more mining nonsense. 2016-09-17 15:27:45 -07:00
Christopher Jeffrey
6598245486
rpc: improve mining. 2016-09-17 06:24:58 -07:00
Christopher Jeffrey
3f5c5cf603
parser: fix header parsing. 2016-09-16 19:36:02 -07:00
Christopher Jeffrey
2881294bf4
parser: minor. 2016-09-16 19:32:48 -07:00
Christopher Jeffrey
58a5372b09
bip151: minor. 2016-09-16 19:26:24 -07:00
Christopher Jeffrey
d6576c51f1
merkleblock: use buffers for tree hashes. 2016-09-16 19:18:00 -07:00
Christopher Jeffrey
eb5d0cf972
peer: refactor. 2016-09-16 18:50:56 -07:00
Christopher Jeffrey
757aeb84c0
parser: minor. 2016-09-16 17:37:14 -07:00
Christopher Jeffrey
1e93d5ec7d
bip151: refactor. 2016-09-16 17:32:44 -07:00
Christopher Jeffrey
5da0aceb38
packets 2016-09-16 17:03:56 -07:00
Christopher Jeffrey
9b097f97b9
walletdb: fix pending tx iteration. 2016-09-16 01:02:03 -07:00
Christopher Jeffrey
7aa2ecb24b
peer: fix serving broadcasted txs. 2016-09-16 00:03:55 -07:00
Christopher Jeffrey
9dd863d9f2
random: require random from crypto. 2016-09-15 13:36:18 -07:00
Christopher Jeffrey
530fbd61dd
ec: fix ecdh with secp256k1-node. 2016-09-15 13:35:14 -07:00
Christopher Jeffrey
19f61773f7
http: fix typo in validation. 2016-09-14 15:54:02 -07:00
Christopher Jeffrey
a34f680f9a
mnemonic: use binary search for lang detection. 2016-09-14 15:53:51 -07:00
Christopher Jeffrey
269b31ad8e
mempool: minor. 2016-09-14 15:53:30 -07:00
Christopher Jeffrey
8daddcc458
mnemonic: use a binary search for word indexes. 2016-09-13 20:06:53 -07:00
Christopher Jeffrey
07285ebdd7
refactor: rename cost to weight. 2016-09-13 02:06:18 -07:00
Christopher Jeffrey
0c90212f6d
refactor: drop all object literals. 2016-09-13 00:13:07 -07:00
Christopher Jeffrey
2dba490d02
crypto: expose scrypt. 2016-09-12 22:56:13 -07:00