Commit Graph

195 Commits

Author SHA1 Message Date
Christopher Jeffrey
e00472891d
refactor: start using for...of. 2017-07-17 14:26:37 -07:00
Christopher Jeffrey
78d62c73b8
refactor: start using multiple return values. 2017-07-17 14:26:37 -07:00
Christopher Jeffrey
aa05bb5df7
refactor: use es6 maps for everything. 2017-07-17 14:26:37 -07:00
Christopher Jeffrey
be1ec1c22d
utils: refactor. 2017-06-27 09:28:37 -07:00
Christopher Jeffrey
d4cc22e1c5
refactor: crypto. 2017-06-27 07:27:53 -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
28cd43045d
refactor: avoid using new Buffer() due to its new perf implications. 2017-05-30 21:11:10 -07:00
Christopher Jeffrey
46b34677f1
address/wallet: refactor usage of Address.getHash. 2017-05-25 23:27:37 -07:00
Christopher Jeffrey
7d61cda3aa
chain/mempool: more aggressive asserts. 2017-05-21 18:40:43 -07:00
Christopher Jeffrey
6b5cba635a
mempool: fix handleOrphans. 2017-05-21 14:45:53 -07:00
Christopher Jeffrey
0ceca23cb5
chain/mempool: store peer id and punish invalid orphans. 2017-05-19 17:02:06 -07:00
pablovidal85
fba9b46d25 mempool: import indexAddress option 2017-04-22 00:37:47 +02:00
Christopher Jeffrey
9e479483f5
minor: lint. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
68bba8621e
rpc/mempool: implement prioritisetransaction. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
eb601eece6
node: start using logger contexts. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
a81733a720
node/config: refactor config and options. 2017-03-14 06:09:29 -07:00
Christopher Jeffrey
545eb77cdb
mempool: update serialization version. 2017-03-05 17:14:03 -08:00
Christopher Jeffrey
b53162e12d
mempool: fix getDescendants and getAncestors. 2017-03-05 16:44:46 -08:00
Christopher Jeffrey
bf4c890b88
mempool: minor. 2017-03-05 16:12:52 -08:00
Christopher Jeffrey
e52eebd652
fullnode: fix persistent mempool block addition/removal. 2017-03-05 13:01:30 -08:00
Christopher Jeffrey
c2b8dc37c7
mempool: handle trimming differently. 2017-03-05 11:43:28 -08:00
Christopher Jeffrey
47c1955e2c
mempool: rename hasTX to hasEntry. 2017-03-05 10:02:34 -08:00
Christopher Jeffrey
210ce4c767
mempool: evict by lowest fee rate. 2017-03-05 02:03:14 -08:00
Christopher Jeffrey
46a646aebd
mempool: refactor descendants handling. 2017-03-01 17:45:51 -08:00
Christopher Jeffrey
8977e99906
mempool: extra sanity checking for mining. 2017-03-01 15:19:55 -08:00
Christopher Jeffrey
34cb226000
mempool: enable persistent fees. 2017-03-01 11:01:41 -08:00
Christopher Jeffrey
a11344db0e
mempool: refactor fee estimation. 2017-03-01 09:53:10 -08:00
Christopher Jeffrey
23ca2cc65f
mempool: minor. 2017-03-01 09:23:21 -08:00
Christopher Jeffrey
38cfdbf8f9
mempool: drop old getCoinView. 2017-03-01 07:26:20 -08:00
Christopher Jeffrey
3988d2766d
mempool: add double spend events. 2017-02-28 23:19:38 -08:00
Christopher Jeffrey
bffc225179
chain/mempool/node: expose getSpentView. 2017-02-28 22:43:44 -08:00
Christopher Jeffrey
8cb2c4a1a0
mempool: refactor addr indexing. 2017-02-28 21:49:06 -08:00
Christopher Jeffrey
d92d6487b5
mempool: move memUsage method. 2017-02-28 20:55:50 -08:00
Christopher Jeffrey
653163929e
mempool: correct memusage numbers. 2017-02-28 20:48:51 -08:00
Christopher Jeffrey
92d896c729
mempool: refactor. 2017-02-28 17:21:16 -08:00
Christopher Jeffrey
73210b3ed4
mempool: preliminary work for persistent fees. 2017-02-28 17:09:51 -08:00
Christopher Jeffrey
42a2e61d7f
mempool: fix getDepends. 2017-02-28 15:22:35 -08:00
Christopher Jeffrey
e80c98d4e8
mempool: load descFee/descSize correctly. 2017-02-28 13:35:13 -08:00
Christopher Jeffrey
6dcbb93802
mempool: minor. 2017-02-28 13:21:53 -08:00
Christopher Jeffrey
7bfe5cfd08
mempool: return missing txs again. 2017-02-28 13:15:49 -08:00
Christopher Jeffrey
ce45b501da
mempool: lint. 2017-02-28 13:13:45 -08:00
Christopher Jeffrey
29fe6468eb
db: do not use isBrowser for bufferKeys check. see #137. 2017-02-28 13:04:55 -08:00
Christopher Jeffrey
7bd89b35c3
mempool: persist to disk. 2017-02-28 12:59:19 -08:00
Christopher Jeffrey
08936c8970
mempool: fix countDescendants (again). 2017-02-28 10:43:05 -08:00
Christopher Jeffrey
7ccea6fbb8
mempool: fix countDescendants. 2017-02-28 10:41:21 -08:00
Christopher Jeffrey
33bda01d21
tx/mempool: simplify some witness policy. 2017-02-28 09:20:22 -08:00
Christopher Jeffrey
7688d80e74
block/chain: refactor block verification and caching. 2017-02-28 09:20:22 -08:00
Christopher Jeffrey
e31ddaa61a
mining: remove mod size from priority. better free calculation. 2017-02-27 16:58:44 -08:00
Christopher Jeffrey
1dd0e366ac
mempool: fix descendant fees calculation. 2017-02-26 22:05:43 -08:00
Christopher Jeffrey
cb7af959ce
miner: compare cumulative descendant fee rate. 2017-02-26 03:09:33 -08:00
Christopher Jeffrey
d3f94dbc6a
mempool: force broadcasting on addTX fail. 2017-02-07 13:56:30 -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
6e13fe57c0
pool: refactor header sync. 2017-01-21 16:59:20 -08:00
Christopher Jeffrey
4692849593
peer: abstract all deps. 2017-01-21 03:43:26 -08:00
Christopher Jeffrey
f8c82197a4
mempool: share lock with chain. 2017-01-20 15:14:07 -08:00
Christopher Jeffrey
a486bd3a18
refactor: options. 2017-01-14 17:59:54 -08:00
Christopher Jeffrey
7c021cf842
utils: rename locker to lock for consistency. 2017-01-11 21:20:26 -08:00
Christopher Jeffrey
c605638daf
pool: some request refactoring. 2017-01-10 16:10:55 -08:00
Christopher Jeffrey
d338f62078
protocol: constants changes. 2017-01-10 04:57:41 -08:00
Christopher Jeffrey
4c557744a2
refactor: address, amount, uri, errors. 2017-01-09 23:07:02 -08:00
Christopher Jeffrey
0c194f1d3f
policy: refactor. 2017-01-06 10:35:51 -08:00
Christopher Jeffrey
75430cae8b
refactor: more moving. 2017-01-06 10:18:21 -08:00
Christopher Jeffrey
5caf6210b9
refactor: move constants around. 2017-01-06 09:57:55 -08:00
Christopher Jeffrey
1d4fbc1833
mempool: minor. 2016-12-26 13:55:21 -08:00
Christopher Jeffrey
5375f8bf19
mempool: refactor orphan handling. 2016-12-19 16:47:29 -08:00
Christopher Jeffrey
9490d29390
mempool: do not hold chain lock while getting viewpoint. 2016-12-19 05:11:54 -08:00
Christopher Jeffrey
3732260350
util: refactor locker. 2016-12-18 21:19:35 -08:00
Christopher Jeffrey
97ecd5c59f
mempool: refactor indexing. 2016-12-18 19:35:38 -08:00
Christopher Jeffrey
01f21b0399
mempool: refactor verification. 2016-12-18 17:08:06 -08:00
Christopher Jeffrey
42f0b2aa19
mempool: refactor addr index. 2016-12-18 16:26:07 -08:00
Christopher Jeffrey
37770aa6df
mempool: move some methods. 2016-12-18 15:50:00 -08:00
Christopher Jeffrey
2691f9fcb6
mempool: fix comment. 2016-12-17 15:48:47 -08:00
Christopher Jeffrey
1f2c3080bc
mempool: more minor style changes. 2016-12-17 15:43:48 -08:00
Christopher Jeffrey
effc177a77
mempool: minor. style. 2016-12-17 15:34:33 -08:00
Christopher Jeffrey
b36484c7aa
mempool: fix potential race conditions with coins. 2016-12-17 15:28:14 -08:00
Christopher Jeffrey
559cc3592d
mempool: handle mined removal better. 2016-12-15 15:12:55 -08:00
Christopher Jeffrey
40b3e56402
mempool: logs for block adding/removing. 2016-12-14 14:04:26 -08:00
Christopher Jeffrey
33a8e1e511
block/tx: sigops cost/size/weight. 2016-12-13 16:52:31 -08:00
Christopher Jeffrey
59645ac3ec
refactor: remove extra properties from tx and block. 2016-12-11 05:35:31 -08:00
Christopher Jeffrey
f3801fa8a7
refactor: move coins. 2016-12-10 22:00:27 -08:00
Christopher Jeffrey
b77aa9240e
coins: refactor and comments. 2016-12-10 20:43:49 -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
d4c2331a11
mempool/chain: move some methods around. 2016-12-08 15:51:25 -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
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
4e4dbfba49
server/wallet/mempool: get tests passing. 2016-12-05 21:02:08 -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
38eca965a7
mempool: orphan serialization. 2016-12-04 03:14:25 -08:00
Christopher Jeffrey
ded3bc34f3
refactor: start moving away from getters. 2016-11-30 21:31:52 -08:00
Christopher Jeffrey
cd0315923b
mempool: add reset logs. 2016-11-26 06:18:31 -08:00