Commit Graph

236 Commits

Author SHA1 Message Date
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
Christopher Jeffrey
ef95b69e5e
minor: refactor. move asyncobject. 2017-02-04 14:52:13 -08:00
Christopher Jeffrey
4e7df6ef87
docs: get jsdoc compiling again. 2017-02-03 22:47:26 -08:00
Christopher Jeffrey
0f8fd1dc77
minor: lint. 2017-01-28 19:09:12 -08:00
Christopher Jeffrey
17742434a5
logger: handle mkdir error. 2017-01-28 19:06:56 -08:00
Christopher Jeffrey
e52130ef29
config: fix path handling. 2017-01-26 03:00:14 -08:00
Christopher Jeffrey
0a1c0d1890
config: refactor config parsing. 2017-01-26 03:00:13 -08:00
Christopher Jeffrey
5073c1508f
net: tor support for outgoing conns. 2017-01-24 18:25:44 -08:00
Christopher Jeffrey
2a6ee729a0
pool: disable bip37 by default. 2017-01-23 15:06:20 -08:00
Christopher Jeffrey
c6b439f21c
chain/pool: remove witness option. 2017-01-23 14:51:40 -08:00
Christopher Jeffrey
1e9ebcc0d1
config: cleanup. 2017-01-23 13:44:11 -08:00
Christopher Jeffrey
e7413aabb7
chain/pool: disable checkpoints on checkpoint failure. see #121. 2017-01-23 13:25:01 -08:00
Christopher Jeffrey
cbb45db801
config: rename useCheckpoints. allow implicit noAuth on localhost. 2017-01-23 03:19:19 -08:00
Christopher Jeffrey
86b7292c4a
node: enable workers by default. throw warnings if native bindings were not built. 2017-01-22 20:39:42 -08:00
Christopher Jeffrey
25899827fd
net: remove noDiscovery. exempt bip150 packets from lock. 2017-01-22 14:48:03 -08:00
Christopher Jeffrey
51a25bf15f
net/nodeclient: always resend bloom filter. see #119. 2017-01-21 15:20:03 -08:00
Christopher Jeffrey
b212eed282
net: handle public ip and port better. 2017-01-21 13:56:41 -08:00
Christopher Jeffrey
be4145e163
pool/peer: fixes. cleanup. 2017-01-21 13:03:53 -08:00
Christopher Jeffrey
26f6185097
spvnode: fix events. 2017-01-21 03:48:57 -08:00
Christopher Jeffrey
b6593adf75
net: remove alert system. 2017-01-19 04:41:58 -08:00
Jason Dreyzehner
93e50dab3c
spvnode: fix incorrect function call. 2017-01-18 19:13:54 -05:00
Christopher Jeffrey
4254b4359e
config: smaller fast defaults. 2017-01-16 19:37:05 -08:00
Christopher Jeffrey
48399bb0cb
logger: fix stream. 2017-01-16 14:07:56 -08:00
Christopher Jeffrey
f2d092f23c
net: add priority nodes. 2017-01-16 04:30:10 -08:00
Christopher Jeffrey
858081626f
logger: fix error handling. 2017-01-15 15:18:02 -08:00
Christopher Jeffrey
199699d73a
node: better option handling. 2017-01-14 19:35:59 -08:00
Christopher Jeffrey
a486bd3a18
refactor: options. 2017-01-14 17:59:54 -08:00
Christopher Jeffrey
9dbfaf3127
pool: rename ignoreDiscovery. 2017-01-14 09:11:07 -08:00
Christopher Jeffrey
f0e7aa9d82
net: handle server differently. 2017-01-14 07:54:07 -08:00
Christopher Jeffrey
e8cc724488
node/net: refactor node bootstrapping. 2017-01-14 07:21:16 -08:00
Christopher Jeffrey
7396e08f16
config: minor. 2017-01-12 12:41:23 -08:00
Christopher Jeffrey
9de61172a4
refactor: use Object.create(null) for all user input keys. 2017-01-11 21:27:55 -08:00
Christopher Jeffrey
7c021cf842
utils: rename locker to lock for consistency. 2017-01-11 21:20:26 -08:00
Christopher Jeffrey
5caf6210b9
refactor: move constants around. 2017-01-06 09:57:55 -08:00
Christopher Jeffrey
bb11cfc021
spvnode: do not attempt to insert wdb txs twice. 2016-12-22 03:55:04 -08:00
Christopher Jeffrey
fa167d9a8c
config: querystring parsing. 2016-12-19 17:27:58 -08:00
Christopher Jeffrey
0d5811719c
config: add network alias. 2016-12-19 17:00:29 -08:00
Christopher Jeffrey
82d1345311
net: refactor inv type handling. 2016-12-18 01:44:04 -08:00
Christopher Jeffrey
514e735a96
net: refactor reject msg. broadcast orphans. 2016-12-17 14:08:43 -08:00
Christopher Jeffrey
2d831ca5bd
node: minor. 2016-12-17 13:08:02 -08:00
Christopher Jeffrey
dcfc19408f
node: minor fixes. 2016-12-17 00:18:28 -08:00
Christopher Jeffrey
4a8c4dee57
node: fix event race conditions. 2016-12-14 12:03:47 -08:00