Commit Graph

277 Commits

Author SHA1 Message Date
Christopher Jeffrey
1df577cb74
validation: refactor. 2017-08-06 03:23:37 -07:00
Christopher Jeffrey
faabd36f9e
config/validator/utils: fix fixed parsing/serialization. 2017-08-05 18:52:24 -07:00
Christopher Jeffrey
1d33816d89
config: fix and refactor arg parsing. 2017-08-03 20:17:58 -07:00
Christopher Jeffrey
d3675bfcf8
config: fix --n vs -n aliases. 2017-08-03 19:42:40 -07:00
Christopher Jeffrey
bb6110c609
chain/pool: make checkpoints option permanent. 2017-08-02 15:23:10 -07:00
Christopher Jeffrey
1a4268544f
chain: better checkpoint handling. 2017-08-01 01:38:04 -07:00
Christopher Jeffrey
88ef28d837
lint: no implicit casting. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
5eb6620431
lint: consistent return values. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
5e73e51177
lint: fix function names. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
55cf07a871
refactor: style for const/let and returns. 2017-07-31 18:21:02 -07:00
Christopher Jeffrey
6f3988e861
refactor: use const as much as possible. 2017-07-31 18:21:02 -07:00
Christopher Jeffrey
9cc5c393b4
eslint: use prefer-const. 2017-07-31 18:21:02 -07:00
Christopher Jeffrey
32c93af2c4
node/rpc: throw errors on shutdown. minor changes. 2017-07-25 05:30:22 -07:00
Christopher Jeffrey
7eefb773be
refactor: use maps and sets wherever possible. 2017-07-25 05:15:47 -07:00
Christopher Jeffrey
23397dd753
refactor: change for..of loop usage. 2017-07-24 19:45:46 -07:00
Christopher Jeffrey
3a0c9b60e2
chain: implement bip91 and bip148. 2017-07-23 07:32:18 -07:00
Christopher Jeffrey
6a7c5eac8d
http: smarter handling of decodeURIComponent calls. 2017-07-20 17:18:18 -07:00
Christopher Jeffrey
18cc0a013c
node: lint. 2017-07-17 14:26:43 -07:00
Christopher Jeffrey
b52a5e3fd2
node: add node.get() for plugins. 2017-07-17 14:26:43 -07:00
Christopher Jeffrey
6154ca8b4c
workers/build: require only one worker file. 2017-07-17 14:26:41 -07:00
Christopher Jeffrey
4ebe557807
workers: make worker files configurable. 2017-07-17 14:26:40 -07:00
Christopher Jeffrey
8f295a376d
workers: refactor exiting. 2017-07-17 14:26:40 -07:00
Christopher Jeffrey
db0567fc01
node/browser: fix browser build. 2017-07-17 14:26:39 -07:00
Christopher Jeffrey
a071a58380
config: fix parseArg. 2017-07-17 14:26:39 -07:00
Christopher Jeffrey
4f68d4cde0
node: minor. 2017-07-17 14:26:39 -07:00
Christopher Jeffrey
5e78cf4998
node: fix close bug. 2017-07-17 14:26:39 -07:00
Christopher Jeffrey
296e65d0fd
refactor: use es6 template strings everywhere. 2017-07-17 14:26:39 -07:00
Christopher Jeffrey
3af014119a
refactor: switch to template strings for errors. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
10672784e5
refactor: rename tx functions. more es6 features. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
fdb668aea3
refactor: use rest args where possible. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
0ea25b0c1c
wallet: move nodeclient. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
074c065262
node: automatically bind to errors for plugins. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
8c7279518f
refactor: de-globalize workerpool. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
c53f4cf89e
refactor: switch to const/let. 2017-07-17 14:26:37 -07:00
Christopher Jeffrey
e00472891d
refactor: start using for...of. 2017-07-17 14:26:37 -07:00
Christopher Jeffrey
3763b5309a
node: allow non-string plugins in config. 2017-06-28 02:47:05 -07:00
Christopher Jeffrey
62e7f97359
refactor: module index. 2017-06-27 09:28:18 -07:00
Christopher Jeffrey
63e6a97de3
refactor: lint. 2017-06-27 03:54:14 -07:00
Christopher Jeffrey
fa3e98b274
crypto: rename ec to secp256k1. 2017-06-27 02:48:19 -07:00
Christopher Jeffrey
f6fb3ba3b5
config: fix browser build. 2017-06-27 02:01:11 -07:00
Christopher Jeffrey
b26b82ab97
util: start using path module. remove some functions. 2017-06-27 01:24:27 -07:00
Christopher Jeffrey
8358fa59c6
util: drop all homemade polyfills. 2017-06-27 00:36:13 -07:00
Christopher Jeffrey
8b2a0ce446
util: do not use util.global. 2017-06-26 23:07:06 -07:00
Christopher Jeffrey
2ef4d137e6
pkg: switch from jshint to eslint. 2017-06-24 04:45:46 -07:00
Christopher Jeffrey
84eccc29fa
refactor: switch to async/await. see #227. 2017-06-24 02:39:06 -07:00
Christopher Jeffrey
182784c8e0
utils: remove usage of isBrowser. some refactoring. 2017-06-15 22:28:06 -07:00
Christopher Jeffrey
28cd43045d
refactor: avoid using new Buffer() due to its new perf implications. 2017-05-30 21:11:10 -07:00
Christopher Jeffrey
7728a00470
node: fix entry cache option. 2017-05-19 21:05:07 -07:00
Christopher Jeffrey
f0bc6d5925
rpc: implement pruneblockchain. 2017-05-14 15:24:32 -07:00
Christopher Jeffrey
af0ab46f21
config/validator: add some validation methods. 2017-05-13 02:39:03 -07:00
Christopher Jeffrey
677d85de1c
node: make plugin methods optional. 2017-05-13 02:01:22 -07:00
Christopher Jeffrey
a1d0948f2e
net: add --only option. fixes #210. 2017-05-12 12:02:55 -07:00
Christopher Jeffrey
993a27525e
config: expand home directory in config path. 2017-05-12 11:44:33 -07:00
Christopher Jeffrey
d3cfad0c64
spvnode: fix config inconsistency. fixes #195. 2017-04-30 07:28:16 -07:00
Christopher Jeffrey
6182df0442
config: fix mempool size and entry cache. 2017-04-12 08:23:19 -07:00
Christopher Jeffrey
a630d23a97
config: fix mb param. 2017-03-30 02:44:01 -07:00
Christopher Jeffrey
c0e4c169ba
http: more tests. 2017-03-15 20:38:04 -07:00
Christopher Jeffrey
335a0b1cd1
node: do not modify globals. 2017-03-15 18:43:52 -07:00
Christopher Jeffrey
93c190d646
node/cli: more config options. 2017-03-15 16:25:57 -07:00
Christopher Jeffrey
010267e78e
config: minor. 2017-03-14 17:40:25 -07:00
Christopher Jeffrey
32ea933b77
logger: minor. 2017-03-14 08:23:56 -07:00
Christopher Jeffrey
203791c1f7
node: add location method. 2017-03-14 08:18:37 -07:00
Christopher Jeffrey
a4e37cf9df
browser: fixes. 2017-03-14 08:07:42 -07:00
Christopher Jeffrey
1d6bd6dbe4
node: require walletdb by default for now. 2017-03-14 06:22:43 -07:00
Christopher Jeffrey
74b21b78c5
config/validator: fix lists. 2017-03-14 06:16:57 -07:00
Christopher Jeffrey
9ab06b8e81
logger: remove old constants. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
7d6ebd0201
node: make hostlist persistence optional. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
e6d41d3335
logger: less colors. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
4674109706
node: refactor config options. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
9e479483f5
minor: lint. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
a266391f1b
logger: truncate log files. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
f7853aa639
logger: better context handling. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
c71039d87c
minor: lint. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
eb601eece6
node: start using logger contexts. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
81b565fc85
logger: add logger "contexts". 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
1a8a9afade
config/wallet: refactor config handling. add wallet server. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
48066f1634
http: misc fixes. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
50d47dd5a6
rpc: method refactor. getwork refactor. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
59e9ef277a
http: make rpc more hookable. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
a47316c264
http: refactor node websocket api. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
5cbbdbfb2f
refactor: config, plugins, and walletdb. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
a81733a720
node/config: refactor config and options. 2017-03-14 06:09:29 -07:00
Christopher Jeffrey
d0628e990d
miner: add "preverify" option. 2017-03-07 20:00:33 -08:00
Christopher Jeffrey
6a229d597e
logger: fix logger error handling. 2017-03-07 18:56:04 -08:00
Christopher Jeffrey
cdbad54a8c
net: improvements. see comments.
- Improved local address handling.
- Enabled upnp discovery.
- Added retry for dns seeds.
- Improved hostlist in general.
2017-03-07 17:10:47 -08:00
Christopher Jeffrey
3c4bee11f2
chain: add serial asynchronous "hooks". 2017-03-05 15:06:26 -08:00
Christopher Jeffrey
e52eebd652
fullnode: fix persistent mempool block addition/removal. 2017-03-05 13:01:30 -08:00
Christopher Jeffrey
47c1955e2c
mempool: rename hasTX to hasEntry. 2017-03-05 10:02:34 -08:00
Christopher Jeffrey
a11344db0e
mempool: refactor fee estimation. 2017-03-01 09:53:10 -08:00
Christopher Jeffrey
bffc225179
chain/mempool/node: expose getSpentView. 2017-02-28 22:43:44 -08:00
Christopher Jeffrey
3abc47c292
fullnode: minor. 2017-02-28 17:15:13 -08:00
Christopher Jeffrey
73210b3ed4
mempool: preliminary work for persistent fees. 2017-02-28 17:09:51 -08:00
Christopher Jeffrey
e7f850b4ba
fees: refactor estimator. 2017-02-28 16:57:45 -08:00
Christopher Jeffrey
aa869e0b6a
fullnode: open http after walletdb. 2017-02-28 14:10:45 -08:00
Christopher Jeffrey
21bc517f8b
node: only add wallet addr if no others are available. 2017-02-28 14:05:46 -08:00
Christopher Jeffrey
7bd89b35c3
mempool: persist to disk. 2017-02-28 12:59:19 -08:00
Christopher Jeffrey
3ec781ee60
miner: expose max-block-weight config option. 2017-02-25 22:25:34 -08:00
Christopher Jeffrey
182b25f9ab
fullnode: document events. 2017-02-07 14:18:39 -08:00
Christopher Jeffrey
b0b7745039
fullnode: broadcast in selfish mode. 2017-02-07 14:15:33 -08:00
Christopher Jeffrey
1ec49be808
config: expose mempool max size. 2017-02-07 14:02:54 -08:00