Commit Graph

525 Commits

Author SHA1 Message Date
Christopher Jeffrey
0eaa26a374
pool: minor. 2016-12-21 16:17:23 -08:00
Christopher Jeffrey
c10f689435
net: fix hosts.toArray (again). 2016-12-21 16:04:48 -08:00
Christopher Jeffrey
8ce823e31c
pool: minor. 2016-12-21 15:53:59 -08:00
Christopher Jeffrey
35fba9f3ae
pool: fix hostlist.toArray. 2016-12-21 15:49:46 -08:00
Christopher Jeffrey
1a4984d533
net: add hasServices method. 2016-12-21 15:31:55 -08:00
Christopher Jeffrey
14f2851929
pool: add ban and unban calls once again. 2016-12-21 15:13:01 -08:00
Christopher Jeffrey
cc4dd23c83
pool: fix potential infinite loop with addrman. 2016-12-21 15:05:41 -08:00
Christopher Jeffrey
24e6ed7a26
net: rewrite hostlist. bitcoind-style management. 2016-12-21 13:18:03 -08:00
Christopher Jeffrey
25101f1784
net: refactor host and peer list. 2016-12-20 15:45:12 -08:00
Christopher Jeffrey
127a52aaf1
refactor: rename network address. 2016-12-20 12:47:19 -08:00
Christopher Jeffrey
bd4bfa142f
pool: refactor dns discovery. 2016-12-19 16:58:02 -08:00
Christopher Jeffrey
cc2d49ea10
request: refactor mime types. 2016-12-19 16:50:32 -08:00
Christopher Jeffrey
b38d859382
pool: refactor dns discovery. 2016-12-19 07:32:42 -08:00
Christopher Jeffrey
291c7f72fe
pool: rediscover seeds when no hosts are available. 2016-12-19 07:11:09 -08:00
Christopher Jeffrey
3e3e4c84ba
network/pool: improve dns discovery. 2016-12-19 05:20:47 -08:00
Christopher Jeffrey
6617bd7d49
peer: lint. 2016-12-19 04:01:02 -08:00
Christopher Jeffrey
6d2659a31c
locker: revert to old drain behavior. 2016-12-19 03:58:34 -08:00
Christopher Jeffrey
1df11caf71
peer: lock fixes. dos fixes. 2016-12-18 22:14:50 -08:00
Christopher Jeffrey
3732260350
util: refactor locker. 2016-12-18 21:19:35 -08:00
Christopher Jeffrey
856957eee9
peer: fix witness checking for inbound. 2016-12-18 03:35:16 -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
9036ea263d
peer: less spammy logs. 2016-12-17 02:50:03 -08:00
Christopher Jeffrey
6a87a9588b
peer: refactor ack handling. 2016-12-17 02:10:28 -08:00
Christopher Jeffrey
dcfc19408f
node: minor fixes. 2016-12-17 00:18:28 -08:00
Christopher Jeffrey
1365d0ff1d
net: refactor peer.pending. 2016-12-16 22:48:16 -08:00
Christopher Jeffrey
edf47d67c8
primitives: refresh call. 2016-12-16 22:02:05 -08:00
Christopher Jeffrey
a23a5437a4
net: fix peer error handling. 2016-12-16 20:48:47 -08:00
Christopher Jeffrey
5683d708dd
browser: add dns resolution. 2016-12-16 18:05:04 -08:00
Christopher Jeffrey
2c2ad461af
net: add dns. 2016-12-16 17:18:55 -08:00
Christopher Jeffrey
af8194112e
net: refactor pool. 2016-12-16 17:18:20 -08:00
Christopher Jeffrey
8ccefb8e71
peer: refactor. 2016-12-16 15:08:59 -08:00
Christopher Jeffrey
4269d16fee
refactor: lint. 2016-12-16 14:49:35 -08:00
Christopher Jeffrey
7971e56765
peer: use list for request queue. 2016-12-16 14:40:30 -08:00
Christopher Jeffrey
463ebd9bd3
pool: misc refactor. 2016-12-16 13:53:05 -08:00
Christopher Jeffrey
761b6d6636
net: refactor host management. 2016-12-16 13:50:45 -08:00
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
ca9fc63309
net: minor. 2016-12-13 20:21:04 -08:00
Christopher Jeffrey
14c9a37cd9
packets: more serialization nonsense. 2016-12-13 02:58:49 -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
72d5eec710
block/bip152/merkleblock: refactor some block things. 2016-12-11 10:10:00 -08:00
Christopher Jeffrey
59645ac3ec
refactor: remove extra properties from tx and block. 2016-12-11 05:35:31 -08:00
Christopher Jeffrey
4e9bec4cd3
refactor: lint. 2016-12-07 17:52:53 -08:00
Christopher Jeffrey
136a48b4b4
pool: refactor requests. 2016-12-06 17:12:54 -08:00
Christopher Jeffrey
2365355d79
net: getblocks handling. 2016-12-06 11:10:47 -08:00
Christopher Jeffrey
f45ce12bec
chaindb: minor. 2016-12-04 18:09:33 -08:00
Christopher Jeffrey
a95aba92fb
serialization: less polymorphism. 2016-12-04 00:54:50 -08:00
Christopher Jeffrey
c190dd2aad
util: refactor encoding. 2016-12-02 04:34:38 -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
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
c7b7678f8a
peer: fix tryAnnounce. 2016-11-27 23:54:08 -08:00
Christopher Jeffrey
7fd2c409ae
peer: error on finishDrain. 2016-11-27 16:09:23 -08:00
Christopher Jeffrey
cb59675b06
refactor: rename buffer reader/writer vars. 2016-11-26 10:56:50 -08:00
Christopher Jeffrey
c0fd199f2d
chain: refactor and optimize. 2016-11-25 19:34:25 -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
0e40eb6491
tx/block: remove hashAsync. 2016-11-22 10:28:54 -08:00
Christopher Jeffrey
f376289684
crypto: implement subtle api for browser. 2016-11-21 17:50:05 -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
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
7f3c265085
net: rename timedata. 2016-11-19 06:53:59 -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
6f9ad90e07
modules: drop all circular deps. 2016-11-19 02:26:05 -08:00
Christopher Jeffrey
67a00bfe50
modules: remove all conditional requires. see #105. 2016-11-18 23:05:04 -08:00
Christopher Jeffrey
814c18437d
miner: options. 2016-11-18 06:53:55 -08:00
Christopher Jeffrey
d96a579665
peer: refactor cmpctblock handling. 2016-11-17 16:51:21 -08:00
Christopher Jeffrey
39a4df7b02
peer: improve sendcmpct handling. 2016-11-17 05:02:31 -08:00
Christopher Jeffrey
c18bb98b3c
peer: better options handling and logs. 2016-11-12 22:01:15 -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
b2c02a7052
chain: cleanup function names. 2016-11-09 18:25:33 -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
60c64a6eba
peer: kill unresponsive peers. 2016-11-05 09:11:16 -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
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
9e0542dba1
chain: improve reset. fix versionbits checkpoints. 2016-10-21 19:38:11 -07:00
Christopher Jeffrey
605874068b
s/bn/BN/g 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
a2d6ed56e7
refactor: have promises resolve to undefined. 2016-10-21 19:38:04 -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
cd0a8f2425
net: fix packet checksum error handling. 2016-10-04 15:55:10 -07:00
Christopher Jeffrey
0f74292082
refactor: style. 2016-10-03 07:58:12 -07:00
Christopher Jeffrey
5010c5588b
tx/block: s/32/u32/g 2016-10-03 05:32:39 -07:00
Christopher Jeffrey
3e59282c66
deps: browser transform. 2016-10-03 01:48:08 -07:00
Christopher Jeffrey
6dfa47e7f4
refactor: rename constructors. 2016-10-02 23:24:12 -07:00
Christopher Jeffrey
1a8657d131
spawn: rename to co. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
f0223146af
deps: massive refactor. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
376d6303b7
env: refactor how default instances work. 2016-10-02 23:24:10 -07:00
Christopher Jeffrey
c0d47baa08
net: minor. 2016-10-02 23:24:08 -07:00
Christopher Jeffrey
f5a8cb3ec0
locker: more refactoring. 2016-10-02 23:24:08 -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
3f1946cd7e
refactor: lint. misc. 2016-09-24 02:41:35 -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
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
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
4e11bbbf9f
refactor: locks. 2016-09-22 05:24:18 -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
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
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
5dadb224ca
rpc: lint. 2016-09-17 19:23:45 -07:00
Christopher Jeffrey
1096cd0bd9
peer: fix checksum optimization for spv serving. 2016-09-17 18:25:52 -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
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
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
0c90212f6d
refactor: drop all object literals. 2016-09-13 00:13:07 -07:00
Christopher Jeffrey
4e94d4a594
proxysocket: fix pow. 2016-09-07 13:52:00 -07:00
Christopher Jeffrey
c9ebe29e39
crypto: do not expose crypto module from utils. 2016-09-06 15:15:36 -07:00
Christopher Jeffrey
1edb5aa4cf
crypto: add random.js. 2016-09-05 23:33:36 -07:00
Christopher Jeffrey
97e0122b8b
peer: do not fire events for unknown packets (bad). 2016-08-27 18:41:32 -07:00
Christopher Jeffrey
dd53e43958
pool: repurpose regular peers if no loader is available. 2016-08-27 15:53:04 -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
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
6a2d1f639d
pool: fix loader disconnect handling. 2016-08-26 18:39:03 -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
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
Christopher Jeffrey
902fa59ca9
pool: handle host+port collision between inbound and outbound. 2016-08-25 20:42:28 -07:00
Christopher Jeffrey
4fa6136ec4
bip152: use regular varints for lengths. 2016-08-25 20:40:47 -07:00
Christopher Jeffrey
fa366e56fd
pool: more peer management. 2016-08-25 19:48:34 -07:00
Christopher Jeffrey
0ff93dc705
pool: refactor host and peer list. 2016-08-25 19:30:56 -07:00
Christopher Jeffrey
159679e5eb
pool: keep hostname on net addr. 2016-08-25 18:35:03 -07:00
Christopher Jeffrey
9ed67e0695
pool: repurpose regular peers. 2016-08-25 18:32:21 -07:00
Christopher Jeffrey
aa7f105f38
net: bip150 - do not attempt handshake if bip151 handshake failed. 2016-08-25 17:35:45 -07:00
Christopher Jeffrey
7c1c2b2d15
pool: disable alert on main. see bitcoin/bitcoin#7692. 2016-08-25 03:37:33 -07:00
Christopher Jeffrey
455dc027ee
pool: alert. 2016-08-25 03:35:02 -07:00
Christopher Jeffrey
d663eef37e
net: refactor framer and parser. 2016-08-25 01:35:20 -07:00
Christopher Jeffrey
f7b61278d0
http: fix require. 2016-08-24 05:21:05 -07:00
Christopher Jeffrey
6105095379
refactor: more restructuring. 2016-08-24 04:59:06 -07:00