Commit Graph

3627 Commits

Author SHA1 Message Date
Christopher Jeffrey
dc58c99ba2
net: refactor sending and announcing. 2016-12-16 04:10:02 -08:00
Christopher Jeffrey
69a9b5873f
net: use linked lists. 2016-12-16 03:18:08 -08:00
Christopher Jeffrey
67ffecc989
http: refactor info. 2016-12-15 19:57:04 -08:00
Christopher Jeffrey
d661496541
rpc: minor. 2016-12-15 19:20:12 -08:00
Christopher Jeffrey
29579fc8d0
rpc: refactor getblocktemplate. 2016-12-15 19:06:22 -08:00
Christopher Jeffrey
6b69e2bfad
miner: move tx.isFinal. 2016-12-15 16:41:33 -08:00
Christopher Jeffrey
2e26909e85
rpc: add witness nonce for submitted blocks. 2016-12-15 16:12:35 -08:00
Christopher Jeffrey
6d1eb9fd36
rpc: submitblock logs. 2016-12-15 15:38:27 -08:00
Christopher Jeffrey
559cc3592d
mempool: handle mined removal better. 2016-12-15 15:12:55 -08:00
Christopher Jeffrey
8b05ef2def
http: fix html type for request. 2016-12-15 09:15:37 -08:00
Christopher Jeffrey
ee3745616e
miner: refactor extranonce. 2016-12-14 17:15:27 -08:00
Christopher Jeffrey
40b3e56402
mempool: logs for block adding/removing. 2016-12-14 14:04:26 -08:00
Christopher Jeffrey
854cdf1367
wallet: fix txrecord. 2016-12-14 12:17:53 -08:00
Christopher Jeffrey
b2ef630341
http: less spam. 2016-12-14 12:11:05 -08:00
Christopher Jeffrey
4a8c4dee57
node: fix event race conditions. 2016-12-14 12:03:47 -08:00
Christopher Jeffrey
4353decc5a
mining: remove cheating. rename witness deployment to segwit. 2016-12-14 11:27:39 -08:00
Christopher Jeffrey
f8b4750d90
Revert "miner: pass ts."
This reverts commit aa46fb2df2.
2016-12-14 10:59:17 -08:00
Christopher Jeffrey
aa46fb2df2
miner: pass ts. 2016-12-14 10:46:01 -08:00
Christopher Jeffrey
a9a0f638eb
miner: failsafe for segwit. 2016-12-14 10:39:56 -08:00
Christopher Jeffrey
6dcfdc02fd
miner: better cheating. 2016-12-14 10:33:44 -08:00
Christopher Jeffrey
1c08beba0a
miner: cheat on testnet. 2016-12-14 10:09:45 -08:00
Christopher Jeffrey
65ddc563d6
miner: mining and rpc changes. 2016-12-14 10:03:39 -08:00
Christopher Jeffrey
b025f5c241
http: allow batched rpc calls. 2016-12-14 07:05:24 -08:00
Christopher Jeffrey
8efbe1f9ee
coins/errors: minor. 2016-12-14 07:05:14 -08:00
Christopher Jeffrey
44818f8b06
errors: add assert. 2016-12-14 05:56:58 -08:00
Christopher Jeffrey
c1d6896797
rpc: minor fixes. 2016-12-14 04:20:05 -08:00
Christopher Jeffrey
eef018004f
http/rpc: mining. logs and error handling. 2016-12-13 21:06:37 -08:00
Christopher Jeffrey
ca9fc63309
net: minor. 2016-12-13 20:21:04 -08:00
Christopher Jeffrey
2f543ea465
btc: refactor verify error. 2016-12-13 17:53:29 -08:00
Christopher Jeffrey
ef1eb23ea3
txdb: minor. 2016-12-13 17:51:45 -08:00
Christopher Jeffrey
33a8e1e511
block/tx: sigops cost/size/weight. 2016-12-13 16:52:31 -08:00
Christopher Jeffrey
f9a1e18437
wallet: remove resolution. 2016-12-13 14:26:14 -08:00
Christopher Jeffrey
14c9a37cd9
packets: more serialization nonsense. 2016-12-13 02:58:49 -08:00
Christopher Jeffrey
fcc7f41438
env: fix coinview. 2016-12-12 21:27:18 -08:00
Christopher Jeffrey
51ca09603a
masterkey: minor. 2016-12-12 12:59:08 -08:00
Christopher Jeffrey
eaaa35cb8e
script: minor. 2016-12-12 12:31:27 -08:00
Christopher Jeffrey
41a2a46403
tx: refactor sighash v0. 2016-12-12 10:53:28 -08:00
Christopher Jeffrey
fcf6254d29
address: refactor. 2016-12-12 06:50:13 -08:00
Christopher Jeffrey
8108ff3eb5
util: minor changes to static writer. 2016-12-12 05:38:43 -08:00
Christopher Jeffrey
df4b07304b
rpc: fix getblocktemplate. 2016-12-12 05:11:19 -08:00
Christopher Jeffrey
dfefc7182f
serialization: more sizes. 2016-12-11 19:16:02 -08:00
Christopher Jeffrey
3b9e4d6c6e
refactor: use static writers everywhere. 2016-12-11 17:26:42 -08:00
Christopher Jeffrey
f7c9a24802
tx/coins: start using static writers more. 2016-12-11 13:44:20 -08:00
Christopher Jeffrey
1296bb2302
serialization: add size calculation and static writer. 2016-12-11 12:19:18 -08:00
Christopher Jeffrey
808d8678a6
tx: add sigops vsize calculation. 2016-12-11 10:35:17 -08:00
Christopher Jeffrey
72d5eec710
block/bip152/merkleblock: refactor some block things. 2016-12-11 10:10:00 -08:00
Christopher Jeffrey
efa0d3eac5
script: fix potential uncaught error. 2016-12-11 10:09:04 -08:00
Christopher Jeffrey
d4cb8d82a2
minor: comments. 2016-12-11 08:32:46 -08:00
Christopher Jeffrey
ed4fb0f92c
rpc: minor. 2016-12-11 08:23:03 -08:00
Christopher Jeffrey
fc6798d3f0
http: rewrite request module. 2016-12-11 08:18:11 -08:00
Christopher Jeffrey
48fc7549ce
tx/wallet: misc fixes. 2016-12-11 06:14:32 -08:00
Christopher Jeffrey
59645ac3ec
refactor: remove extra properties from tx and block. 2016-12-11 05:35:31 -08:00
Christopher Jeffrey
931a2a9398
coins: minor. 2016-12-10 23:15:03 -08:00
Christopher Jeffrey
c681b75b7b
coins: minor. 2016-12-10 22:06:57 -08:00
Christopher Jeffrey
f3801fa8a7
refactor: move coins. 2016-12-10 22:00:27 -08:00
Christopher Jeffrey
5e23b284a3
coinview: fix parsing. 2016-12-10 21:46:50 -08:00
Christopher Jeffrey
e754621dd4
script: toCode/fromCode. 2016-12-10 21:31:40 -08:00
Christopher Jeffrey
b77aa9240e
coins: refactor and comments. 2016-12-10 20:43:49 -08:00
Christopher Jeffrey
b437b33760
test/bench: lint. 2016-12-10 17:13:45 -08:00
Christopher Jeffrey
d2e61d1fa2
test: cleanup tests. 2016-12-10 14:43:58 -08:00
Christopher Jeffrey
5e3b05ff11
bench: clean up benchmarks. 2016-12-10 13:32:28 -08:00
Christopher Jeffrey
1d6eb802e7
chain: minor. 2016-12-10 08:19:35 -08:00
Christopher Jeffrey
bf2e7d1486
test: fix tx tests. 2016-12-10 08:11:24 -08:00
Christopher Jeffrey
4484a11ede
tx/block: refactor. 2016-12-10 07:18:05 -08:00
Christopher Jeffrey
c9523d91a5
chain: refactor disconnection. 2016-12-10 06:30:04 -08:00
Christopher Jeffrey
092c1a90df
coins: undo coins fixes. 2016-12-09 17:29:33 -08:00
Christopher Jeffrey
12b3274d33
refactor: pass coin viewpoints for every function requiring inputs. 2016-12-09 07:15:35 -08:00
Christopher Jeffrey
ead3f64b7f
Merge branch 'pass-coins-4' into coins-compression-2 2016-12-09 00:01:14 -08:00
Christopher Jeffrey
de1f658ede
chaindb: fix getFullBlock. 2016-12-08 23:53:25 -08:00
Christopher Jeffrey
5bed0455d2
scriptnum: refactor. 2016-12-08 21:56:57 -08:00
Christopher Jeffrey
bf07023369
script: add cscriptnum implementation. 2016-12-08 19:26:53 -08:00
Christopher Jeffrey
d4c2331a11
mempool/chain: move some methods around. 2016-12-08 15:51:25 -08:00
Christopher Jeffrey
2715e71ae8
script: minor. 2016-12-08 03:01:36 -08:00
Christopher Jeffrey
9d4f946dda
mtx: minor. 2016-12-08 02:19:17 -08:00
Christopher Jeffrey
ee7d39ce81
policy: lower min relay fee to 1000. 2016-12-08 02:11:33 -08:00
Christopher Jeffrey
c86311029c
mempool: optimize coin view. 2016-12-08 01:57:26 -08:00
Christopher Jeffrey
b2065cc84d
mempool: minor. 2016-12-08 01:48:39 -08:00
Christopher Jeffrey
82a1a24138
test: fix mempool tests. 2016-12-08 01:40:04 -08:00
Christopher Jeffrey
1e18ca772a
encoding: fix varint bns. 2016-12-08 01:17:53 -08:00
Christopher Jeffrey
dd0ebe5320
rpc: fix getblocktemplate. 2016-12-07 22:39:30 -08:00
Christopher Jeffrey
c300df7340
mempool: refactor. 2016-12-07 19:11:59 -08:00
Christopher Jeffrey
c9fbaae0da
chaindb: fix getCoinView. 2016-12-07 18:05:52 -08:00
Christopher Jeffrey
4e9bec4cd3
refactor: lint. 2016-12-07 17:52:53 -08:00
Christopher Jeffrey
1269aab7a5
mempool: use coin viewpoint. 2016-12-07 17:47:31 -08:00
Christopher Jeffrey
8b99b5103b
chain: refactor coinview. 2016-12-07 03:25:40 -08:00
Christopher Jeffrey
9e4db47792
wallet: improve size estimation. 2016-12-06 23:29:13 -08:00
Christopher Jeffrey
f7e50e3435
tx: pass coins into scripting system. 2016-12-06 17:37:35 -08:00
Christopher Jeffrey
d4b8afa747
chain: pass height around. 2016-12-06 17:13:04 -08:00
Christopher Jeffrey
136a48b4b4
pool: refactor requests. 2016-12-06 17:12:54 -08:00
Christopher Jeffrey
9215e4fe48
address: better network validation. 2016-12-06 14:24:05 -08:00
Christopher Jeffrey
2365355d79
net: getblocks handling. 2016-12-06 11:10:47 -08:00
Christopher Jeffrey
d2e9843757
http: fix addr array. 2016-12-06 00:04:04 -08:00
Christopher Jeffrey
4e4dbfba49
server/wallet/mempool: get tests passing. 2016-12-05 21:02:08 -08:00
Christopher Jeffrey
5091f69038
wallet/http: send address validation. 2016-12-05 17:24:18 -08:00
Christopher Jeffrey
07a34bbfe5
chaindb: compression=true. 2016-12-05 11:36:55 -08:00
Christopher Jeffrey
01535c55d7
mempool: remove confidence. 2016-12-05 11:35:33 -08:00
Christopher Jeffrey
21f4f45205
mempool: refactor coin and orphan handling. 2016-12-04 20:14:18 -08:00
Christopher Jeffrey
b4221b7589
chaindb: switch back to buffer coin cache. 2016-12-04 19:12:13 -08:00
Christopher Jeffrey
1d5bcc5918
block/worker: misc fixes. 2016-12-04 18:59:49 -08:00
Christopher Jeffrey
f45ce12bec
chaindb: minor. 2016-12-04 18:09:33 -08:00
Christopher Jeffrey
72b68532e3
ldb: add db cache-size option. 2016-12-04 13:59:08 -08:00
Christopher Jeffrey
28cc714bad
node: fix fast option. 2016-12-04 03:25:09 -08:00
Christopher Jeffrey
c358b6b822
chain: minor. 2016-12-04 03:16:13 -08:00
Christopher Jeffrey
11506ce246
coinview: minor. 2016-12-04 03:14:49 -08:00
Christopher Jeffrey
38eca965a7
mempool: orphan serialization. 2016-12-04 03:14:25 -08:00
Christopher Jeffrey
30526aaea4
chaindb: coin cache. 2016-12-04 02:59:20 -08:00
Christopher Jeffrey
a95aba92fb
serialization: less polymorphism. 2016-12-04 00:54:50 -08:00
Christopher Jeffrey
ba88ffab01
encoding: fix typo for BN. 2016-12-02 21:29:47 -08:00
Christopher Jeffrey
f2a9eb6538
workers: refactor logging. 2016-12-02 18:34:29 -08:00
Christopher Jeffrey
bdc7ec0198
worker: more refactoring. 2016-12-02 18:14:47 -08:00
Christopher Jeffrey
1f47d5ead5
workers: client and server parser refactor. 2016-12-02 12:08:46 -08:00
Christopher Jeffrey
a4d30f00a8
workers: improve protocol. 2016-12-02 11:52:03 -08:00
Christopher Jeffrey
89f478bba1
encoding: no casting. 2016-12-02 06:36:12 -08:00
Christopher Jeffrey
c190dd2aad
util: refactor encoding. 2016-12-02 04:34:38 -08:00
Christopher Jeffrey
dbed720d20
coins: minor. 2016-12-02 01:50:43 -08:00
Christopher Jeffrey
b37b99a86e
chain: refactor input spending. 2016-12-01 23:37:57 -08:00
Christopher Jeffrey
967449b0d5
chaindb: minor. 2016-12-01 13:35:04 -08:00
Christopher Jeffrey
244af663bb
coins: comments. 2016-12-01 04:48:00 -08:00
Christopher Jeffrey
9f11875736
coins: no compressed non-zero bytes. 2016-12-01 04:11:14 -08:00
Christopher Jeffrey
3d876858f9
chain: refactor undo coins. 2016-12-01 02:56:08 -08:00
Christopher Jeffrey
873475b835
mtx: refactor signing. 2016-12-01 00:29:34 -08:00
Christopher Jeffrey
8e49d87e53
wallet: refactor client. 2016-12-01 00:13:59 -08:00
Christopher Jeffrey
6939ba2cd3
chain: skip coinbases when scanning. 2016-12-01 00:03:23 -08:00
Christopher Jeffrey
81e71e7922
wallet: drop wallet getters. 2016-11-30 23:12:01 -08:00
Christopher Jeffrey
bffdd78009
hd: drop getters. 2016-11-30 22:00:22 -08:00
Christopher Jeffrey
430a69e3d3
chaindb: drop useless. 2016-11-30 21:34:21 -08:00
Christopher Jeffrey
ded3bc34f3
refactor: start moving away from getters. 2016-11-30 21:31:52 -08:00
Christopher Jeffrey
0e234c7c3a
net: fix destroy check. 2016-11-30 21:00:40 -08:00
Christopher Jeffrey
f4f4f2b433
chaindb: compression=false. 2016-11-30 20:36:11 -08:00
Christopher Jeffrey
371f6b1fa0
chain: refactor spending. 2016-11-30 20:08:07 -08:00
Christopher Jeffrey
453eccbabd
Revert "chain: handle chain state arithmetic differently."
This reverts commit c87fce53ab.
2016-11-30 19:13:29 -08:00
Christopher Jeffrey
c87fce53ab
chain: handle chain state arithmetic differently. 2016-11-30 18:57:58 -08:00
Christopher Jeffrey
aad1691f7e
chain: refactor tx indexing. 2016-11-30 18:17:10 -08:00
Christopher Jeffrey
7157d06464
chaindb: refactor init and deployments. 2016-11-30 17:35:57 -08:00
Christopher Jeffrey
9f44ddc22f
chain: add undocoins object. 2016-11-30 16:08:38 -08:00
Christopher Jeffrey
311b9841fb
chain: more refactoring. 2016-11-30 16:02:56 -08:00
Christopher Jeffrey
cfd7ec8a64
chain: more refactoring. 2016-11-30 13:09:33 -08:00
Christopher Jeffrey
ff5eddbebb
chain: move some methods. 2016-11-30 01:05:28 -08:00
Christopher Jeffrey
e7bcbbb976
chain: drop newCoins option. 2016-11-29 21:01:48 -08:00
Christopher Jeffrey
cc252b949d
coins: refactor. lint. 2016-11-29 20:36:24 -08:00
Christopher Jeffrey
dcb376f26d
chain: add newCoins option. 2016-11-29 20:36:23 -08:00
Christopher Jeffrey
cdee4ce251
coins: refactor. 2016-11-29 20:36:23 -08:00
Christopher Jeffrey
63c42bf390
chain: new coins compression. 2016-11-29 20:36:23 -08:00
Christopher Jeffrey
923364a70a
chain: initial add refactor. 2016-11-29 20:36:23 -08:00
Christopher Jeffrey
0f529d5f8b
chain/block: reorder some consensus checks. 2016-11-29 20:36:23 -08:00
Christopher Jeffrey
71c7c3e300
peer: lint. 2016-11-29 20:35:30 -08:00
Christopher Jeffrey
01e7fd3902
pool: rename outbound/inbound. remove co.wait() in scheduleRequests. 2016-11-28 20:40:09 -08:00
Christopher Jeffrey
bc4a9b3f14
net: reduce request timeout to 2 min. 2016-11-28 17:56:15 -08:00
Christopher Jeffrey
fa8b4c6428
net: remove isBusy check from sendRequests. 2016-11-28 17:31:21 -08:00
Christopher Jeffrey
507fd89948
timedata: move time to network object. 2016-11-28 16:58:48 -08:00
Christopher Jeffrey
cc7a7890db
chain: less polymorphism for getDeploymentState. 2016-11-28 16:08:35 -08:00
Christopher Jeffrey
d1e37582d1
block/crypto: refactor merkle trees. 2016-11-28 15:59:30 -08:00
Christopher Jeffrey
6520cf32e0
node: less error spam in logs. 2016-11-27 23:54:18 -08:00
Christopher Jeffrey
c7b7678f8a
peer: fix tryAnnounce. 2016-11-27 23:54:08 -08:00
Christopher Jeffrey
1997864ec2
coins: refactor compression. 2016-11-27 22:23:12 -08:00
Christopher Jeffrey
7fd2c409ae
peer: error on finishDrain. 2016-11-27 16:09:23 -08:00
Christopher Jeffrey
89f86ae6c5
bip70: fix payment serialization. 2016-11-27 04:33:59 -08:00
Christopher Jeffrey
dd2d9f48bd
coins: refactor. 2016-11-26 20:17:01 -08:00
Christopher Jeffrey
67695b7e53
fees: minor. 2016-11-26 20:16:54 -08:00
Christopher Jeffrey
cb59675b06
refactor: rename buffer reader/writer vars. 2016-11-26 10:56:50 -08:00
Christopher Jeffrey
c523193714
coins: refactor. 2016-11-26 10:03:32 -08:00
Christopher Jeffrey
20cdb1adbc
miner: clear coins. 2016-11-26 09:27:17 -08:00
Christopher Jeffrey
cd0315923b
mempool: add reset logs. 2016-11-26 06:18:31 -08:00
Christopher Jeffrey
c033f5d465
coins: optimize. 2016-11-26 06:09:27 -08:00
Christopher Jeffrey
9bc92abb41
chain: refactor coins. 2016-11-26 04:50:32 -08:00
Christopher Jeffrey
c5a5d4498a
chain/wallet: handle caches better. 2016-11-26 01:12:38 -08:00
Christopher Jeffrey
3e37961927
mempool: add reset method. 2016-11-26 00:22:46 -08:00
Christopher Jeffrey
5dbb896aea
mempool: update mem usage. 2016-11-25 21:23:17 -08:00
Christopher Jeffrey
eef9bcd872
walletdb: minor. 2016-11-25 19:37:04 -08:00
Christopher Jeffrey
c0fd199f2d
chain: refactor and optimize. 2016-11-25 19:34:25 -08:00
Christopher Jeffrey
024ff3e211
http: http and rpc fixes. 2016-11-25 14:19:11 -08:00
Christopher Jeffrey
0dbdf30e89
pool: minor. 2016-11-25 14:13:36 -08:00
Christopher Jeffrey
6c25efca89
net: better write handling. 2016-11-24 14:44:10 -08:00
Christopher Jeffrey
01bb0adc17
pool: fix typo. 2016-11-24 01:20:21 -08:00
Christopher Jeffrey
9c48cc9333
pool: fix destroyed race condition. 2016-11-23 18:54:12 -08:00
Christopher Jeffrey
1f22013ce0
chain: versionbits refactor. 2016-11-23 17:03:58 -08:00
Christopher Jeffrey
390f7d8ddb
minerblock: commit block once mined. 2016-11-23 00:56:56 -08:00
Christopher Jeffrey
9e48947d2f
txdb: fix txdb.confirm. 2016-11-23 00:36:57 -08:00
Christopher Jeffrey
229be344fc
chaindb: persistent versionbits state caches. 2016-11-22 23:59:02 -08:00
Christopher Jeffrey
0530c8f80f
chain: log state updates after db write. 2016-11-22 14:18:44 -08:00
Christopher Jeffrey
e025902405
wallet: expose client. 2016-11-22 10:51:00 -08:00
Christopher Jeffrey
9a921ab8f0
crypto: optimize hashing for browser. 2016-11-22 10:46:06 -08:00
Christopher Jeffrey
0e40eb6491
tx/block: remove hashAsync. 2016-11-22 10:28:54 -08:00
Christopher Jeffrey
7f5e0cb493
writer: improve perf. 2016-11-21 20:54:30 -08:00
Christopher Jeffrey
0bf9828f03
wallet: add clients. 2016-11-21 18:05:29 -08:00
Christopher Jeffrey
f376289684
crypto: implement subtle api for browser. 2016-11-21 17:50:05 -08:00
Christopher Jeffrey
4245cd6bf1
crypto: use subtle for browser pbkdf2. 2016-11-20 13:12:35 -08:00
Christopher Jeffrey
6c61ad976d
walletdb: add experimental client. 2016-11-19 22:55:00 -08:00
Christopher Jeffrey
d75b5d80cc
walletdb: nodeclient work. 2016-11-19 21:40:31 -08:00
Christopher Jeffrey
1827b945dd
walletdb: new client api. 2016-11-19 18:26:27 -08:00
Christopher Jeffrey
8f743b6e7d
peer: handle drains better. 2016-11-19 14:33:40 -08:00
Christopher Jeffrey
9353a86e14
modules: blockchain technology (tm). 2016-11-19 11:24:01 -08:00
Christopher Jeffrey
bf34a8133d
btc: rename. 2016-11-19 11:14:38 -08:00
Christopher Jeffrey
b754973511
utils/btc: rename. 2016-11-19 10:45:31 -08:00
Christopher Jeffrey
ae093d2242
amount/utils: drop utils.btc and utils.satoshi. 2016-11-19 09:59:47 -08:00
Christopher Jeffrey
9e9b657eab
utils: add amount object. 2016-11-19 08:44:24 -08:00
Christopher Jeffrey
098465c171
miner: rename. 2016-11-19 07:10:49 -08:00
Christopher Jeffrey
7f3c265085
net: rename timedata. 2016-11-19 06:53:59 -08:00
Christopher Jeffrey
3014229d9a
workers: rename. 2016-11-19 06:48:55 -08:00
Christopher Jeffrey
a1ec1bfff1
modules: refactor indexes. 2016-11-19 06:36:57 -08:00
Christopher Jeffrey
0631148705
modules: more refactoring. 2016-11-19 05:29:29 -08:00
Christopher Jeffrey
729aea3b41
utils: mark circular. 2016-11-19 02:47:44 -08:00
Christopher Jeffrey
3f6e4f3847
workers: major refactor. 2016-11-19 02:28:30 -08:00
Christopher Jeffrey
6f9ad90e07
modules: drop all circular deps. 2016-11-19 02:26:05 -08:00
Christopher Jeffrey
4c9d9d5160
miner: rename fill. add comments. 2016-11-18 23:52:14 -08:00
Christopher Jeffrey
c6eabdb121
utils: minor. 2016-11-18 23:41:58 -08:00
Christopher Jeffrey
091ddf2029
http: minor. 2016-11-18 23:39:52 -08:00
Christopher Jeffrey
5ad3b9612d
ec: minor. 2016-11-18 23:37:19 -08:00
Christopher Jeffrey
baffd161b8
modules: more browser compat. 2016-11-18 23:33:05 -08:00
Christopher Jeffrey
354cf00158
modules: fix browser compilation. 2016-11-18 23:17:29 -08:00
Christopher Jeffrey
67a00bfe50
modules: remove all conditional requires. see #105. 2016-11-18 23:05:04 -08:00
Christopher Jeffrey
9f522c5ca4
layout: less conditional requires. see #105. 2016-11-18 18:31:29 -08:00
Christopher Jeffrey
9ae91af2a8
rpc: refactor. 2016-11-18 15:00:56 -08:00
Christopher Jeffrey
814c18437d
miner: options. 2016-11-18 06:53:55 -08:00
Christopher Jeffrey
bc00697adb
mempool/miner: mining and mempool refactor. 2016-11-18 06:35:20 -08:00
Christopher Jeffrey
9e1428a8d5
mempool: better ancestor and descendant traversal. 2016-11-18 00:49:26 -08:00
Christopher Jeffrey
f625013548
txdb: lint. 2016-11-17 23:20:44 -08:00
Christopher Jeffrey
d96a579665
peer: refactor cmpctblock handling. 2016-11-17 16:51:21 -08:00
Christopher Jeffrey
aba22e24d7
coin: drop getAge. 2016-11-17 08:19:52 -08:00
Christopher Jeffrey
39ffc214dd
coin: minor. 2016-11-17 07:37:07 -08:00
Christopher Jeffrey
90c53fc33c
txdb: optimize addBlock. 2016-11-17 06:13:31 -08:00
Christopher Jeffrey
39a4df7b02
peer: improve sendcmpct handling. 2016-11-17 05:02:31 -08:00
Christopher Jeffrey
d3da8bbfb8
script: optimize fromPubkeyhash and fromScripthash. 2016-11-17 04:53:41 -08:00
Christopher Jeffrey
44483a0549
primitives: lint. 2016-11-17 04:19:57 -08:00
Christopher Jeffrey
09f449167f
chain: comments. 2016-11-17 04:12:25 -08:00
Christopher Jeffrey
39aee21030
tx: refactor network handling in json serialization. 2016-11-17 04:05:32 -08:00
Christopher Jeffrey
97703e4c7d
chain: only expose state if block is successfully written. 2016-11-17 03:02:46 -08:00
Christopher Jeffrey
501eef858d
http: refactor how height/hash are handled. 2016-11-16 12:08:45 -08:00
Christopher Jeffrey
51e271fe0d
http: allow hash/height mixup. 2016-11-16 10:03:03 -08:00
Christopher Jeffrey
f6c09af49f
http: expose chain resetting. 2016-11-16 09:56:52 -08:00
Christopher Jeffrey
522a54fd27
networks: enable segwit by default for main. 2016-11-16 09:45:55 -08:00
Christopher Jeffrey
c011e94cdb
http: allow rescanning from start block. 2016-11-16 09:43:54 -08:00
Christopher Jeffrey
f0fb7c4db3
http: do not allow dumping of master key without admin privileges. 2016-11-16 09:42:14 -08:00
Christopher Jeffrey
8377a5082e
walletdb: start marking the start block. 2016-11-16 09:26:06 -08:00
Christopher Jeffrey
025a5b9138
chain: handle chain resetting more gracefully. 2016-11-14 15:45:39 -08:00
Christopher Jeffrey
6d3401f08b
script: better script parse error formatting. 2016-11-13 11:47:52 -08:00
Christopher Jeffrey
3beae441bb
http: refactor cli usage of http clients. 2016-11-13 11:30:00 -08:00
Christopher Jeffrey
c18bb98b3c
peer: better options handling and logs. 2016-11-12 22:01:15 -08:00
Christopher Jeffrey
215a3ad6fc
base58: optimize. 2016-11-11 20:32:41 -08:00
Christopher Jeffrey
1649b38504
crypto: use crypto.cleanse. 2016-11-11 20:09:24 -08:00
Christopher Jeffrey
286ae9d9c8
script: implement more segwit policy. 2016-11-11 19:37:06 -08:00
Christopher Jeffrey
ecd18b9613
walletdb: refactor. 2016-11-11 18:16:31 -08:00
Christopher Jeffrey
4e4b87b18e
chain: refactor. 2016-11-11 17:45:55 -08:00
Christopher Jeffrey
6380640447
chain: lint. 2016-11-11 15:48:42 -08:00
Christopher Jeffrey
467604049b
spvnode: remove filter logs. 2016-11-11 15:41:49 -08:00
Christopher Jeffrey
14ae1eb29c
chaindb: add migration for tip index. 2016-11-11 15:37:28 -08:00
Christopher Jeffrey
708c4a2bd2
chain: improve spv reorgs. 2016-11-11 15:29:46 -08:00
Christopher Jeffrey
ef8b205a38
rpc: improve perf for getchaintips. 2016-11-11 14:02:22 -08:00
Christopher Jeffrey
3854f04624
chain: spv reorganization. 2016-11-11 11:45:28 -08:00
Christopher Jeffrey
ee19c7fee6
chaindb: index all tips. 2016-11-10 18:43:28 -08:00
Christopher Jeffrey
42cc8c4698
chain: drop spv reorganization for now. 2016-11-10 16:11:53 -08:00
Christopher Jeffrey
51e3228d83
chaindb: refactor reset and removeChain. 2016-11-10 15:23:54 -08:00
Christopher Jeffrey
e68a64d1f9
spv: redownload blocks after reorg. handle reset properly. always save to main chain. 2016-11-10 14:53:24 -08:00
Christopher Jeffrey
b91d0cd9f1
node: pass headers option to pool. 2016-11-10 13:46:25 -08:00
Christopher Jeffrey
cf949569ae
pool: do not set witness bit for FILTERED_BLOCK. see #88. 2016-11-10 13:42:27 -08:00
Christopher Jeffrey
f7be57b583
pool: allow segwit compact blocks in options. 2016-11-10 13:42:04 -08:00
Christopher Jeffrey
06b35d4ab2
utils: rewrite async object. 2016-11-10 13:33:40 -08:00
Christopher Jeffrey
d088412380
walletdb: filter watch logs. 2016-11-09 18:45:26 -08:00
Christopher Jeffrey
615537def9
walletdb: lint. 2016-11-09 18:34:59 -08:00
Christopher Jeffrey
0d2391be14
wallet: start using crypto.cleanse. 2016-11-09 18:25:37 -08:00
Christopher Jeffrey
9e00fc6360
walletdb: disable witness wallets by default for now. 2016-11-09 18:25:37 -08:00
Christopher Jeffrey
0825007c3d
walletdb: setLookahead. 2016-11-09 18:25:37 -08:00
Christopher Jeffrey
4e1709e9b6
walletdb: lookahead of 10. 2016-11-09 18:25:37 -08:00
Christopher Jeffrey
4cb11da4cf
walletdb: safe sync option. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
04596522ea
walletdb: increase lookahead. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
4fcb07ff5f
walletdb: switch back to lookahead of 10. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
93d2c8811f
walletdb: switch to u32s to potentially avoid deserialization. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
827ab4b539
walletdb: varint serialization. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
e07f9b737c
walletdb: fix getAccounts. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
465a76a485
wallet: minor. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
d6b97efcc4
walletdb: fee handling. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
5069ec1bfb
walletdb: list blocks. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
8d624f1b0e
walletdb: better getAccounts. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
86e1e35f9a
txdb: add block entries. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
704d9e1783
walletdb: cleanup wipe method. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
5b43f76307
txdb: remove chainHeight from details json. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
3baddeebb6
walletdb: shared keys check. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
7faba4a23b
walletdb: comments. minor. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
015eaa1f2d
chaindb: better rescan algo. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
f5b7d7f2d9
migrate: walletdb 5 to 6. 2016-11-09 18:25:34 -08:00
Christopher Jeffrey
1a44f50ac7
walletkey: toJSON changes. 2016-11-09 18:25:34 -08:00
Christopher Jeffrey
c94884a188
walletdb: use account name index more. 2016-11-09 18:25:34 -08:00
Christopher Jeffrey
508ece491f
account: remove address methods. 2016-11-09 18:25:34 -08:00
Christopher Jeffrey
f1f5a2e5d3
account: remove change lookahead. 2016-11-09 18:25:34 -08:00
Christopher Jeffrey
7d3eb8f3fa
account: lookahead option. 2016-11-09 18:25:34 -08:00
Christopher Jeffrey
185586abb0
walletdb: acount index->name index. 2016-11-09 18:25:34 -08:00
Christopher Jeffrey
f699b4f12f
walletdb: lint. 2016-11-09 18:25:34 -08:00
Christopher Jeffrey
f3055e57bf
walletdb: account path indexing. 2016-11-09 18:25:34 -08:00
Christopher Jeffrey
d33557e2d7
walletdb: add path by account key. 2016-11-09 18:25:33 -08:00
Christopher Jeffrey
666e7d514f
walletdb: add startHeight option. 2016-11-09 18:25:33 -08:00
Christopher Jeffrey
b2c02a7052
chain: cleanup function names. 2016-11-09 18:25:33 -08:00
Christopher Jeffrey
2358784d43
wallet: optimize depth syncing. 2016-11-09 18:25:33 -08:00
Christopher Jeffrey
aa79d92a83
http: more wallet api calls. 2016-11-09 18:25:33 -08:00
Christopher Jeffrey
ace4c89391
config: fix option parsing for bcoin-cli. 2016-11-09 18:25:33 -08:00
Christopher Jeffrey
4ca5ad3824
http: fix get wallet tx for client. 2016-11-09 18:25:33 -08:00
Christopher Jeffrey
9489b3dce0
walletdb: drop noScan option. 2016-11-09 18:25:33 -08:00
Christopher Jeffrey
69242f5228
walletdb: refactor. 2016-11-09 18:25:33 -08:00
Christopher Jeffrey
dec45ac265
walletdb: refactor wallet mapping. 2016-11-09 18:25:32 -08:00
Christopher Jeffrey
60575c0ea0
walletdb: cleanup. 2016-11-09 18:25:32 -08:00
Christopher Jeffrey
3a89e627b8
walletdb: sync state and utxo handling refactor. 2016-11-09 18:25:32 -08:00
Christopher Jeffrey
b74c32cc4b
walletdb: sync state object refactor. 2016-11-09 18:25:32 -08:00
Christopher Jeffrey
45ad99c8f5
walletdb: add sync state object. 2016-11-09 18:25:32 -08:00
Christopher Jeffrey
3bc4fa5822
schnorr: fix issues mentioned in #89. 2016-11-09 18:24:34 -08:00
Christopher Jeffrey
60a4c0a34d
chachapoly: fix big-endian check for cross-browser support. fixes #100. 2016-11-09 18:08:47 -08:00
Christopher Jeffrey
53de684b4a
crypto: add cleanse function. 2016-11-09 17:02:54 -08:00
Christopher Jeffrey
c3a9b7378f
net: enable segwit compact blocks. 2016-11-06 22:50:08 -08:00
Christopher Jeffrey
62ef5ea7f4
bip152: implement segwit compact blocks. 2016-11-06 22:34:05 -08:00
Christopher Jeffrey
cf5349cdaa
network: add maxFeeRate for fee estimation. 2016-11-05 18:19:19 -07:00
Christopher Jeffrey
60c64a6eba
peer: kill unresponsive peers. 2016-11-05 09:11:16 -07:00
Christopher Jeffrey
6dfe8c59eb
mempool: refactor addr index. 2016-11-04 17:41:11 -07:00
José Pedro Rusakiewicz
c9aada2420 solved p2pk comparison in mtx 2016-11-04 15:23:17 +00:00
Christopher Jeffrey
8be68ab392
chainentry: fix potential versionbits comparison failure. 2016-11-03 16:35:31 -07:00
Christopher Jeffrey
407f416f22
rpc: update supermajority softfork object. 2016-11-03 15:41:47 -07:00
Christopher Jeffrey
5dfdbfb8b1
mtx: clean up signing methods. 2016-11-02 21:26:39 -07:00
Christopher Jeffrey
e68538633d
mtx: fix scriptVector for p2pk. fixes #93. 2016-11-02 21:21:19 -07:00
Christopher Jeffrey
f1b266e53b
mtx: pass keyring into all signing methods. 2016-11-02 21:20:19 -07:00
Christopher Jeffrey
2bd3ac4618
pool: fix deadlock in block sync. 2016-11-02 19:16:22 -07:00
Christopher Jeffrey
5d3f15c2d8
net: consider alert packets to be "unknown". 2016-11-02 19:16:22 -07:00
Christopher Jeffrey
2d95e6b723
pool: disable alert system entirely. 2016-11-02 19:16:22 -07:00
Christopher Jeffrey
889f796748
peer: fix race condition - open emitted after peer.close(). 2016-11-02 19:16:22 -07:00
Christopher Jeffrey
cc58b507eb
wallet: increaseFee call. 2016-10-27 17:13:20 -07:00
Christopher Jeffrey
a4a408a18d
wallet: fix master key race conditions. 2016-10-26 17:45:13 -07:00
Christopher Jeffrey
ea756026e7
http: resolve promises for setloglevel and restartsync. 2016-10-26 10:17:43 -07:00
Christopher Jeffrey
d413afbbf5
rpc: add setloglevel and restartsync. 2016-10-26 09:55:39 -07:00
Christopher Jeffrey
001783b759
fees: fix minimum fee for fee estimation. 2016-10-26 09:55:21 -07:00
Christopher Jeffrey
6e5bb6eef7
wallet: better masterkey handling for timeouts. 2016-10-25 11:27:47 -07:00
Christopher Jeffrey
bf6d992855
walletdb: browser key. 2016-10-25 10:40:29 -07:00
Christopher Jeffrey
ae2573bc57
http: require api key for new websocket calls. 2016-10-25 09:16:26 -07:00
Christopher Jeffrey
9988123b61
http: improve info call. 2016-10-25 08:40:08 -07:00
Christopher Jeffrey
322e74cbb7
http: censor passphrase from logs. 2016-10-25 08:11:22 -07:00
Christopher Jeffrey
ef387f969f
peer: minor - fix peer.sync(). 2016-10-24 20:49:18 -07:00
Christopher Jeffrey
48c65bb58b
node: do not listen until after wallet has loaded. 2016-10-24 19:37:07 -07:00
Christopher Jeffrey
c9b038d4e0
scanning: more bloom filter things. 2016-10-24 19:16:10 -07:00
Christopher Jeffrey
c9b84252af
scanning: only add matching txids for outputs. 2016-10-24 18:55:34 -07:00
Christopher Jeffrey
02de140c91
walletdb: minor. 2016-10-24 18:49:09 -07:00
Christopher Jeffrey
5a4ebccfd4
walletdb: use bloom filter for rescanning. 2016-10-24 18:43:39 -07:00
Christopher Jeffrey
3bffbed25a
global: lint. 2016-10-24 17:58:23 -07:00
Christopher Jeffrey
3ee1848b58
spvnode: fix filter loading. 2016-10-24 16:45:47 -07:00
Christopher Jeffrey
2d488749d5
chaindb: reenable options. 2016-10-24 16:42:59 -07:00
Christopher Jeffrey
39693b18e9
walletdb: minor. 2016-10-24 16:38:10 -07:00
Christopher Jeffrey
d8006cb9df
coin: better json. 2016-10-24 16:35:19 -07:00
Christopher Jeffrey
842ba5f5b6
txdb: fix confirmations. 2016-10-24 16:27:27 -07:00
Christopher Jeffrey
926d9cb5aa
chaindb: store network in options. 2016-10-24 16:21:24 -07:00
Christopher Jeffrey
d2a9352c9c
migrate: walletdb 4 to 5. 2016-10-24 15:54:11 -07:00
Christopher Jeffrey
3b333c07cd
walletdb: start separating out walletdb. 2016-10-24 15:32:22 -07:00
Christopher Jeffrey
ffc17b48c2
walletdb: more refactoring. 2016-10-24 10:57:31 -07:00
Christopher Jeffrey
45464c412f
walletdb: refactor block handling. 2016-10-24 10:40:53 -07:00
Christopher Jeffrey
11a7515bfd
walletdb: improve block handling. 2016-10-23 22:24:00 -07:00
Christopher Jeffrey
37e3219c4c
txdb: fix conf calculation. 2016-10-23 15:19:40 -07:00
Christopher Jeffrey
e9fc3c816a
txdb: fix removeConflict. 2016-10-23 15:15:57 -07:00
Christopher Jeffrey
6e1c4d27b5
txdb: fix double spends and replace by fee. 2016-10-23 14:52:25 -07:00
Christopher Jeffrey
0c85aeae44
walletdb: minor. 2016-10-23 14:30:40 -07:00
Christopher Jeffrey
e02e766518
walletdb: fix path map cache. 2016-10-23 14:17:32 -07:00
Christopher Jeffrey
45816e4527
walletdb: better wallet commits. 2016-10-23 13:44:07 -07:00
Christopher Jeffrey
b98ca596d1
lru: minor. 2016-10-23 13:35:16 -07:00
Christopher Jeffrey
233f0c5278
chaindb: add forceWitness option. 2016-10-23 05:35:37 -07:00
Christopher Jeffrey
331daf0f6a
lru: better atomicity for chain and walletdb. 2016-10-23 04:54:45 -07:00
Christopher Jeffrey
0ebeb1e643
lru: atomic batches. 2016-10-23 04:45:52 -07:00
Christopher Jeffrey
3c48124658
lint. 2016-10-23 03:24:32 -07:00
Christopher Jeffrey
be86757ee8
walletdb: log level. 2016-10-23 03:17:18 -07:00
Christopher Jeffrey
f9ffff8e80
walletdb: refactor. 2016-10-23 03:02:06 -07:00
Christopher Jeffrey
282fe7e4d9
txdb: refactor block handling. 2016-10-23 02:45:24 -07:00
Christopher Jeffrey
debe2e4ec7
walletdb: pruning. 2016-10-22 14:34:30 -07:00
Christopher Jeffrey
4128ddba36
wallet: more chain atomicity. 2016-10-22 13:34:28 -07:00
Christopher Jeffrey
5668e19c7e
mempool: rbf option. 2016-10-22 12:21:31 -07:00
Christopher Jeffrey
f735c7da83
chain: only rescan output hashes. 2016-10-22 12:21:00 -07:00
Christopher Jeffrey
d371fc5d14
chain: add chain options and merkle block serialization. 2016-10-22 11:41:38 -07:00
Christopher Jeffrey
293bf20b9c
walletdb: store chain by height. 2016-10-22 10:07:19 -07:00
Christopher Jeffrey
282a8f7bb4
walletdb: improve block connection. 2016-10-22 05:12:27 -07:00
Christopher Jeffrey
0ead568225
rpc: fix wallet and account balances. 2016-10-21 21:48:34 -07:00
Christopher Jeffrey
89f175dd7a
chain: drop argument due to hardfork. 2016-10-21 19:42:31 -07:00
Christopher Jeffrey
cb87c35caf
networks: revert to old testnet seeds for now. 2016-10-21 19:38:13 -07:00
Christopher Jeffrey
ab9cf9ec7e
chain: optimize isMainChain. 2016-10-21 19:38:12 -07:00
Christopher Jeffrey
b0b8d333a5
hardfork: remove IsSuperMajority soft fork check. 2016-10-21 19:38:12 -07:00
Christopher Jeffrey
083c5ea8f5
networks: add bip65 and bip66 heights for activation. 2016-10-21 19:38:12 -07:00
Christopher Jeffrey
64054044a1
networks: use hex constants. 2016-10-21 19:38:12 -07:00
Christopher Jeffrey
10e959efde
chain: refactor alt chain saving. 2016-10-21 19:38:12 -07:00
Christopher Jeffrey
21b2a12278
http: convert token to buffer for ws auth. 2016-10-21 19:38:12 -07:00
Christopher Jeffrey
b76a382f78
walletdb: refactor var names. 2016-10-21 19:38:12 -07:00
Christopher Jeffrey
4e331f1111
tx: lint. 2016-10-21 19:38:12 -07:00
Christopher Jeffrey
919f87f9d0
walletdb: do not insert txs redeeming from relevant txs. 2016-10-21 19:38:12 -07:00
Christopher Jeffrey
9e0542dba1
chain: improve reset. fix versionbits checkpoints. 2016-10-21 19:38:11 -07:00
Christopher Jeffrey
96e6cee67d
txdb: fix coin incrementation. 2016-10-21 19:38:11 -07:00
Christopher Jeffrey
8e1b2ea8e9
chain: do not consider potentially malleated blocks invalid. 2016-10-21 19:38:11 -07:00
Christopher Jeffrey
c2c06f732b
wallet: comments. 2016-10-21 19:38:11 -07:00
Christopher Jeffrey
2cc2ec4bf3
txdb: refactor. 2016-10-21 19:38:11 -07:00
Christopher Jeffrey
a80c438995
txdb: cleanup. 2016-10-21 19:38:11 -07:00
Christopher Jeffrey
0bf384b84a
txdb: fix fillHistory. 2016-10-21 19:38:10 -07:00
Christopher Jeffrey
de18e92117
coin: safely handle coin.fromTX. 2016-10-21 19:38:10 -07:00
Christopher Jeffrey
690c8840e0
tx: clean up address handling. 2016-10-21 19:38:10 -07:00
Christopher Jeffrey
de178092f1
walletdb: minor. 2016-10-21 19:38:10 -07:00
Christopher Jeffrey
d194f3b5d0
mempool: mem usage. 2016-10-21 19:38:10 -07:00
Christopher Jeffrey
5df4cabb94
fullnode: no resolution for walletdb. 2016-10-21 19:38:10 -07:00
Christopher Jeffrey
3aee9861a3
txdb: fee. 2016-10-21 19:38:10 -07:00
Christopher Jeffrey
9049053a1e
http: send details after send. 2016-10-21 19:38:10 -07:00
Christopher Jeffrey
de690e4f22
txdb: fix assert. 2016-10-21 19:38:09 -07:00
Christopher Jeffrey
33bcc08656
tx/block: cache hashes. 2016-10-21 19:38:09 -07:00
Christopher Jeffrey
d73c80c21d
tx: serialization. 2016-10-21 19:38:09 -07:00
Christopher Jeffrey
284932f4cf
txdb: serialization. 2016-10-21 19:38:09 -07:00
Christopher Jeffrey
2f72937686
txdb: comments. serialization. 2016-10-21 19:38:09 -07:00
Christopher Jeffrey
557c1044cc
txdb: new orphan resolution. 2016-10-21 19:38:09 -07:00
Christopher Jeffrey
519280e1bd
txdb: refactor x3. 2016-10-21 19:38:09 -07:00
Christopher Jeffrey
62c59cc4f5
networks: segwit start time (main), segwit by default (testnet). 2016-10-21 19:38:08 -07:00
Christopher Jeffrey
51a64b3d33
txdb: minor. 2016-10-21 19:38:08 -07:00
Christopher Jeffrey
e35f4aa186
bip70: fix bn. 2016-10-21 19:38:08 -07:00
Christopher Jeffrey
04f071f9b0
txdb: refactor x2. 2016-10-21 19:38:08 -07:00
Christopher Jeffrey
3412916c89
txdb: refactor. 2016-10-21 19:38:08 -07:00
Christopher Jeffrey
f075767cdb
txdb-state-spent-flag 2016-10-21 19:38:08 -07:00
Christopher Jeffrey
11b2f1a7bc
txdb: less confusing tx details. 2016-10-21 19:38:08 -07:00
Christopher Jeffrey
9ed439b60c
txdb: reject rbf. 2016-10-21 19:38:08 -07:00
Christopher Jeffrey
acaf0600e7
mempool: do not accept replace by fee. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
da6a575469
walletdb: better mapping. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
aa0f73b27d
txdb: misc. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
8368265c71
test: txdb no resolution tests. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
2e56a82280
txdb: handle state and balance differently. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
06a104c34d
txdb: cleanup. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
4232cdc6b9
txdb: spent state. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
b1996b9717
txdb: handle coins and double spenders differently. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
e3a6d7f35e
miner: workers and mining fixes. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
5186435f8f
txdb: confirmation. 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
a62fdb3356
http: stop resend from hanging. 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
82c2d0f143
txdb: cleanup removal. 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
c07848fadd
txdb: orphan resolution. 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
212c1a3430
txdb: fix verify for orphans. 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
605874068b
s/bn/BN/g 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
b58c9746ec
http: resend call. 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
1be63b1bc7
workers: refactor. 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
469474ae0a
tx: refactor witness sighash. 2016-10-21 19:38:05 -07:00
Christopher Jeffrey
4aadce752d
txdb: zap. 2016-10-21 19:38:05 -07:00
Christopher Jeffrey
9fe6919416
txdb: refactor. 2016-10-21 19:38:05 -07:00
Christopher Jeffrey
d697684b83
txdb: inspection. misc. 2016-10-21 19:38:05 -07:00
Christopher Jeffrey
7f27fade6c
txdb: state. 2016-10-21 19:38:05 -07:00
Christopher Jeffrey
aed03c2655
txdb: add txdb state. 2016-10-21 19:38:05 -07:00
Christopher Jeffrey
a864ec1552
wallet: refactor passphrase options. 2016-10-21 19:38:04 -07:00
Christopher Jeffrey
25ac6b70de
hd: rename testing methods. 2016-10-21 19:38:04 -07:00
Christopher Jeffrey
6761122580
wallet: refactor masterkey. 2016-10-21 19:38:04 -07:00
Christopher Jeffrey
5a353d1592
locker: refactor. 2016-10-21 19:38:04 -07:00
Christopher Jeffrey
a2d6ed56e7
refactor: have promises resolve to undefined. 2016-10-21 19:38:04 -07:00
Christopher Jeffrey
0802dbbb0f
locker: fix destroy method. 2016-10-21 19:38:04 -07:00
Christopher Jeffrey
24cf42e6bf
txdb: add assert. 2016-10-21 19:38:04 -07:00
Christopher Jeffrey
2af685ec1f
txdb: typo. 2016-10-21 19:38:04 -07:00
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
Christopher Jeffrey
a52f239f3c
crypto: always use buffers for hmacs. 2016-09-12 22:33:24 -07:00
Christopher Jeffrey
8f0d74d563
crypto: use native checkMerkleBranch. 2016-09-12 22:27:28 -07:00
Christopher Jeffrey
7f31a41e84
perf: start using bcoin-native. 2016-09-12 14:10:20 -07:00
Christopher Jeffrey
27ba246027
ldb: minor. 2016-09-11 02:25:06 -07:00
Christopher Jeffrey
b346397449
db: improve backups. 2016-09-11 00:24:40 -07:00
Christopher Jeffrey
91324b2531
ldb: error on missing features. 2016-09-10 23:56:18 -07:00
Christopher Jeffrey
f3a4a0fb30
db: more aliases. 2016-09-10 22:13:49 -07:00
Christopher Jeffrey
7414e1b65f
ldb: change some lmdb options. 2016-09-10 22:09:05 -07:00
Christopher Jeffrey
681855093c
db: implement hot backups. 2016-09-10 21:31:07 -07:00
Christopher Jeffrey
8d5bd36ac7
walletdb: cleanup. 2016-09-09 12:56:06 -07:00
Christopher Jeffrey
d82f061c83
minor: lint. 2016-09-08 18:38:37 -07:00
Christopher Jeffrey
da054ec3f6
network: remove net def height property. 2016-09-08 18:10:31 -07:00
Christopher Jeffrey
eb74d70e84
network: rename allowMinDifficultyBlocks. 2016-09-08 18:08:16 -07:00
Christopher Jeffrey
6741df1fca
network: refactor. optimize startup time. 2016-09-08 17:59:12 -07:00
Christopher Jeffrey
82a69b88b1
network: add simnet to network types. 2016-09-08 17:47:29 -07:00
Christopher Jeffrey
9d08f8bcb2
minor: whitespace. 2016-09-08 17:44:52 -07:00
Christopher Jeffrey
45e117a186
network: implement btcd simnet. 2016-09-08 17:43:58 -07:00
Christopher Jeffrey
f00eeba5a7
script: refactor isLowDER. 2016-09-07 14:02:52 -07:00
Christopher Jeffrey
4e94d4a594
proxysocket: fix pow. 2016-09-07 13:52:00 -07:00
Christopher Jeffrey
af7846c278
script: removeData should not throw on reencoding of bad pushes. 2016-09-06 22:31:12 -07:00
Christopher Jeffrey
b0d7fc14b1
random: optimize fallback. 2016-09-06 18:21:14 -07:00
Christopher Jeffrey
c9ebe29e39
crypto: do not expose crypto module from utils. 2016-09-06 15:15:36 -07:00
Christopher Jeffrey
7316a6f395
random: lint. 2016-09-06 11:27:00 -07:00
Christopher Jeffrey
d41f293b40
db: optimize each(). 2016-09-06 01:57:53 -07:00
Christopher Jeffrey
a02564e0a1
test: fix http tests. 2016-09-06 00:56:25 -07:00
Christopher Jeffrey
c43c84cde7
mtx: cleanup coin selector. 2016-09-06 00:47:41 -07:00
Christopher Jeffrey
1b87514542
mtx: refactor coin selection. 2016-09-05 23:57:24 -07:00
Christopher Jeffrey
1edb5aa4cf
crypto: add random.js. 2016-09-05 23:33:36 -07:00
Christopher Jeffrey
28acda024a
chaindb: fix reset atomicity. 2016-09-03 16:51:32 -07:00
Christopher Jeffrey
ae2f90890a
wallet/node: refactor node. resend all walletdb txs. 2016-09-02 18:58:10 -07:00
Christopher Jeffrey
0cbab6e72e
schnorr: generate nonce pairs. 2016-09-01 18:10:50 -07:00
Christopher Jeffrey
a0726efe75
crypto: preliminary support for schnorr signatures. 2016-09-01 02:06:08 -07:00
Christopher Jeffrey
5a41c04bfd
mtx: add setSequence. 2016-08-29 15:01:19 -07:00
Christopher Jeffrey
17487bfcf6
hd: fix generate. 2016-08-29 15:01:10 -07:00
Christopher Jeffrey
97e0122b8b
peer: do not fire events for unknown packets (bad). 2016-08-27 18:41:32 -07:00
Christopher Jeffrey
eb6aec9888
browser: return error for double end(). 2016-08-27 15:59:04 -07:00
Christopher Jeffrey
dd53e43958
pool: repurpose regular peers if no loader is available. 2016-08-27 15:53:04 -07:00
Christopher Jeffrey
2d61a43fba
db: fix level-js iterators. 2016-08-27 15:19:51 -07:00
Christopher Jeffrey
a143c78369
config: add querystring parsing. 2016-08-27 14:31:50 -07:00
Christopher Jeffrey
69fa80d353
packets: fix netaddress.setPort. 2016-08-27 13:20:54 -07:00
Christopher Jeffrey
47411fc5e2
proxysocket: minor. fix disconnect handling. 2016-08-27 12:44:12 -07:00
Christopher Jeffrey
51f817a60f
chaindb: refactor scanning. 2016-08-27 12:37:42 -07:00
Christopher Jeffrey
df66dc1277
pool: logs. 2016-08-27 10:57:27 -07:00
Christopher Jeffrey
d94c143b5d
pool: minor fixes. 2016-08-27 10:23:49 -07:00
Christopher Jeffrey
b1c735702c
walletdb: fix logs. 2016-08-26 20:08:39 -07:00
Christopher Jeffrey
6a2d1f639d
pool: fix loader disconnect handling. 2016-08-26 18:39:03 -07:00
Christopher Jeffrey
eabba6e72e
wallet: fix account handling. 2016-08-26 18:26:56 -07:00
Christopher Jeffrey
872560eeb9
address: minor. 2016-08-26 15:27:07 -07:00
Christopher Jeffrey
740e8012a2
wallet: remove getLastTime. 2016-08-26 05:08:07 -07:00
Christopher Jeffrey
06bb874573
node: refactor. 2016-08-26 05:03:28 -07:00
Christopher Jeffrey
c2bcd8fd74
rpc: mempool ancestors and descendants. 2016-08-26 05:00:53 -07:00
Christopher Jeffrey
9fbd2710ab
mempool: fix address index. 2016-08-26 04:50:10 -07:00
Christopher Jeffrey
a14da39384
bip152: refactor siphash. 2016-08-26 02:29:09 -07:00
Christopher Jeffrey
59d4e39a84
refactor: lint. 2016-08-26 01:46:52 -07:00
Christopher Jeffrey
311b0f905f
node: refactor opt parsing. 2016-08-26 01:14:02 -07:00
Christopher Jeffrey
09d699109e
pool: even more refactoring. 2016-08-26 01:13:46 -07:00
Christopher Jeffrey
54dd7c4eb3
pool: more refactoring. 2016-08-26 00:57:07 -07:00
Christopher Jeffrey
d21aadf6b3
peer: refactor. 2016-08-26 00:24:01 -07:00
Christopher Jeffrey
d073f87874
net: logs. 2016-08-25 23:07:03 -07:00