Commit Graph

1398 Commits

Author SHA1 Message Date
Christopher Jeffrey
fd3bd9fac9 walletdb 2016-03-01 15:18:14 -08:00
Christopher Jeffrey
66c881bfb9 tx extended. 2016-03-01 15:12:56 -08:00
Christopher Jeffrey
45292df44d more node improvements. 2016-03-01 03:39:55 -08:00
Christopher Jeffrey
00b8f8950b walletdb improvements. start refactoring node object. 2016-02-29 21:33:11 -08:00
Christopher Jeffrey
c41ded7360 wallet improvements. 2016-02-29 14:47:57 -08:00
Christopher Jeffrey
3740281232 refactor json and cloning. 2016-02-29 02:24:16 -08:00
Christopher Jeffrey
5b1ee4cccb ignore orphan soil for request map. fix block delta. 2016-02-29 01:53:08 -08:00
Christopher Jeffrey
58d2f66a70 fix checkinputs. 2016-02-28 23:11:18 -08:00
Christopher Jeffrey
2677b0eecd wallet refactoring. 2016-02-28 22:44:02 -08:00
Christopher Jeffrey
8d0f432c7a received and tx.verify. 2016-02-28 22:08:39 -08:00
Christopher Jeffrey
6b54897b57 refactor. 2016-02-28 20:26:10 -08:00
Christopher Jeffrey
15c63eb14a use utils.indexOf. 2016-02-28 20:06:02 -08:00
Christopher Jeffrey
7829ff3bea orphan soil. misc. 2016-02-28 19:15:15 -08:00
Christopher Jeffrey
d6e7ca0660 minor fixes. 2016-02-28 12:11:49 -08:00
Christopher Jeffrey
d53050993c better witnessSize. 2016-02-28 10:34:10 -08:00
Christopher Jeffrey
8755b16235 more witness size. 2016-02-28 08:10:25 -08:00
Christopher Jeffrey
16f6a1b5e2 witness size. 2016-02-28 07:33:12 -08:00
Christopher Jeffrey
326ef521ff calculate vsize. other misc fixes. 2016-02-28 07:05:16 -08:00
Christopher Jeffrey
8a8b664061 more fixes. cleanup debugging. 2016-02-28 06:07:04 -08:00
Christopher Jeffrey
0e3aa32677 correct segwit signing. 2016-02-28 05:44:41 -08:00
Christopher Jeffrey
3fcc7d5b07 segwit wallet support. segwit chain improvements. 2016-02-28 04:12:51 -08:00
Christopher Jeffrey
bd868cda7a segwit things 2016-02-27 05:51:48 -08:00
Christopher Jeffrey
77c9348824 get segnet working. 2016-02-26 21:53:39 -08:00
Christopher Jeffrey
8467f339c1 segwit. misc. 2016-02-26 18:06:08 -08:00
Christopher Jeffrey
5a8e2b80f3 segwit parsing and framing. 2016-02-26 15:04:34 -08:00
Christopher Jeffrey
5d1f6089ed blockdb, segwit, and input fixes. 2016-02-26 04:32:31 -08:00
Christopher Jeffrey
4c653683b7 segregated - goddamn - witness... and docs update. 2016-02-26 03:54:26 -08:00
Christopher Jeffrey
57ceb627d2 input and output objects. 2016-02-25 13:39:06 -08:00
Christopher Jeffrey
bade3ba4a5 inspect. cleanup. fixes. cache addresses. 2016-02-25 13:23:02 -08:00
Christopher Jeffrey
a9c116c98c profiler. refactoring. 2016-02-25 01:36:50 -08:00
Christopher Jeffrey
afd6ee15c9 getblocks. parser/framer fixes. add profiler. 2016-02-24 23:45:45 -08:00
Christopher Jeffrey
1f0f9eb59e version packet. 2016-02-24 22:24:00 -08:00
Christopher Jeffrey
b563fe5de1 tx indicies. merkle things. 2016-02-24 21:21:14 -08:00
Christopher Jeffrey
2c2fa3913b cleanup parser calls. 2016-02-24 20:59:30 -08:00
Christopher Jeffrey
27ecf6dde3 comments. 2016-02-24 20:54:39 -08:00
Christopher Jeffrey
a8e6eda850 refactor framer and parser. 2016-02-24 20:48:08 -08:00
Christopher Jeffrey
4cea71fe65 keep all pending blocks off the heap. 2016-02-24 20:05:06 -08:00
Christopher Jeffrey
41c84c1937 drop relayedBy. 2016-02-24 17:47:35 -08:00
Christopher Jeffrey
15a3f4b28b optimize tx. 2016-02-24 17:43:29 -08:00
Christopher Jeffrey
08ccb4c6ee fix memleak. 2016-02-24 17:42:26 -08:00
Christopher Jeffrey
cc3db0583c Revert "keep orphans off the heap."
This reverts commit 466429dbe2.
2016-02-24 14:43:51 -08:00
Christopher Jeffrey
05939b5f24 framer instead of render. 2016-02-24 14:30:10 -08:00
Christopher Jeffrey
c7ae1f3d6b minor refactor 2016-02-24 07:32:05 -08:00
Christopher Jeffrey
42818c0646 drop block subtype. 2016-02-24 07:08:02 -08:00
Christopher Jeffrey
0af709388c update getheaders sync. 2016-02-24 06:54:36 -08:00
Christopher Jeffrey
62caf5fd4a rename new block object. 2016-02-24 06:47:38 -08:00
Christopher Jeffrey
aaca6db34f remove old block object. 2016-02-24 06:47:09 -08:00
Christopher Jeffrey
c5786e4932 add new block objects. 2016-02-24 06:45:47 -08:00
Christopher Jeffrey
e64a366400 refactor framer 2016-02-24 05:58:05 -08:00
Christopher Jeffrey
69038ac55e add mutable tx. 2016-02-24 05:48:52 -08:00
Christopher Jeffrey
ed90c9a4a2 output 2016-02-24 04:09:05 -08:00
Christopher Jeffrey
27f6e6e678 refactor coin selection. 2016-02-24 04:05:16 -08:00
Christopher Jeffrey
c312905585 do not copy scripts. 2016-02-24 03:53:32 -08:00
Christopher Jeffrey
6ad3540664 refactor addInput. 2016-02-24 03:41:06 -08:00
Christopher Jeffrey
466429dbe2 keep orphans off the heap. 2016-02-24 02:47:33 -08:00
Christopher Jeffrey
07a4c3a465 misc fixes. 2016-02-24 02:37:38 -08:00
Christopher Jeffrey
d1f05453bb improve block.fromRaw. 2016-02-24 02:37:02 -08:00
Christopher Jeffrey
727a000b23 minor. 2016-02-24 02:04:49 -08:00
Christopher Jeffrey
f586837013 optimize more. 2016-02-24 01:49:32 -08:00
Christopher Jeffrey
96bb12568e use iterators for getHeight. 2016-02-24 01:46:12 -08:00
Christopher Jeffrey
f9577cdc04 remove old by-address methods. 2016-02-24 01:39:44 -08:00
Christopher Jeffrey
8a3b0161c0 use leveldb iterators for getting by address. 2016-02-24 01:38:36 -08:00
Christopher Jeffrey
6a644be03f ensure prefix. 2016-02-24 00:07:44 -08:00
Christopher Jeffrey
26969d823a debug file flag. 2016-02-23 21:33:33 -08:00
Christopher Jeffrey
ad173d0f22 fix fromRaw. 2016-02-23 21:17:08 -08:00
Christopher Jeffrey
c559f97c26 add chain._checkReward. 2016-02-23 21:02:50 -08:00
Christopher Jeffrey
badf7e4d83 add gen.js. 2016-02-23 20:54:48 -08:00
Christopher Jeffrey
5cb06c6cbd faster hd deserialization. 2016-02-23 20:23:25 -08:00
Christopher Jeffrey
72a877cc49 more lazy loading. 2016-02-23 20:06:07 -08:00
Christopher Jeffrey
b6e32ecaf8 more hd cleanup. 2016-02-23 19:58:11 -08:00
Christopher Jeffrey
3804c2ea74 more hd optimization. 2016-02-23 19:35:47 -08:00
Christopher Jeffrey
ebee3965f7 cleanup hd. 2016-02-23 19:27:12 -08:00
Christopher Jeffrey
9a35cac74f lazy load publicKey. 2016-02-23 19:16:39 -08:00
Christopher Jeffrey
30db808930 refactor keypair and hd. 2016-02-23 19:08:42 -08:00
Christopher Jeffrey
0f40d78f9e this is faster for some reason. 2016-02-23 17:29:04 -08:00
Christopher Jeffrey
0dabee0336 improve getMerkleRoot. 2016-02-23 17:11:24 -08:00
Christopher Jeffrey
36e8d75faf remove old getMerkleRoot. 2016-02-23 17:08:55 -08:00
Christopher Jeffrey
0fac957da3 utils. merkle tree. 2016-02-23 16:53:05 -08:00
Christopher Jeffrey
abcd174bd3 add random function. 2016-02-23 13:25:21 -08:00
Christopher Jeffrey
aadb1fb4e0 more hd optimization. 2016-02-23 13:22:00 -08:00
Christopher Jeffrey
00eba20c4e hd key optimization 2016-02-23 13:14:58 -08:00
Christopher Jeffrey
1e1e214900 debugging output. 2016-02-23 05:27:36 -08:00
Christopher Jeffrey
a84f087e2e script optimization. 2016-02-23 04:58:19 -08:00
Christopher Jeffrey
76b79ab25d headers. 2016-02-23 04:40:00 -08:00
Christopher Jeffrey
95a5d2c47b getheaders. better pow test. 2016-02-23 04:37:13 -08:00
Christopher Jeffrey
a3b2149c1f minor. 2016-02-23 04:04:42 -08:00
Christopher Jeffrey
6cf17c2b6d some more optimization. 2016-02-23 03:59:12 -08:00
Christopher Jeffrey
83239112e4 improve keypair. 2016-02-23 03:46:51 -08:00
Christopher Jeffrey
f4f6c79bfd more framing. 2016-02-23 03:25:18 -08:00
Christopher Jeffrey
3514eb7dec use buffer for bloom filter. 2016-02-23 02:56:21 -08:00
Christopher Jeffrey
d63f4af6ca fix bloom filter. 2016-02-23 02:54:35 -08:00
Christopher Jeffrey
10821a00fc utils. improve fromBase58. 2016-02-23 02:45:59 -08:00
Christopher Jeffrey
e5de8db660 more json improvements. 2016-02-23 02:27:10 -08:00
Christopher Jeffrey
003330e678 more json improvements. 2016-02-23 01:23:29 -08:00
Christopher Jeffrey
ac9dfca3d3 refactor json and tx. 2016-02-23 00:56:41 -08:00
Christopher Jeffrey
64b5f731a8 even more fixes. 2016-02-23 00:38:32 -08:00
Christopher Jeffrey
3d017c5995 more fixes. 2016-02-23 00:32:21 -08:00
Christopher Jeffrey
5bba5d43c6 improve getMerkleRoot. 2016-02-23 00:29:03 -08:00
Christopher Jeffrey
68f3ef599d fixes. 2016-02-23 00:26:19 -08:00
Christopher Jeffrey
b473ca7d18 coin method for framer and parser. 2016-02-23 00:14:09 -08:00
Christopher Jeffrey
5923726e78 misc fixes. 2016-02-22 23:31:05 -08:00
Christopher Jeffrey
1ced7af7b4 handle minimal data better. 2016-02-22 23:13:46 -08:00
Christopher Jeffrey
4cc5d73959 use zero for op_0. fix signed ints. 2016-02-22 21:59:52 -08:00
Christopher Jeffrey
9e36ecd62e isScript 2016-02-22 21:33:33 -08:00
Christopher Jeffrey
73d3291ee9 more buffer work. 2016-02-22 21:25:01 -08:00
Christopher Jeffrey
78e9be11c3 switch to buffers. 2016-02-22 20:37:15 -08:00
Christopher Jeffrey
fc4fc9ea5c improve toHex. 2016-02-22 15:35:17 -08:00
Christopher Jeffrey
9bc0b250ae remove multiplePeers option. 2016-02-22 15:21:53 -08:00
Christopher Jeffrey
c0bb66bf73 refactor orphan root. 2016-02-22 15:16:50 -08:00
Christopher Jeffrey
0dc1b1cc5f fix orphan resolution. 2016-02-22 14:35:13 -08:00
Christopher Jeffrey
9ddc23227c fix LoadRequest. misc. 2016-02-22 13:52:03 -08:00
Christopher Jeffrey
ab3fb2e550 full json 2016-02-22 06:36:54 -08:00
Christopher Jeffrey
9c7ca8501f too many curlys. 2016-02-22 05:23:55 -08:00
Christopher Jeffrey
e10c3d2547 improve getBlock. 2016-02-22 05:05:26 -08:00
Christopher Jeffrey
cbed3bbc4f fsync all chain writes. 2016-02-22 04:54:07 -08:00
Christopher Jeffrey
0f4d2ca281 use async helpers. 2016-02-22 04:25:20 -08:00
Christopher Jeffrey
86b228ca07 add utils.once. some async functions. disable blockdb truncate. 2016-02-22 03:09:48 -08:00
Christopher Jeffrey
6b6a84a774 full json. cache. 2016-02-22 01:54:42 -08:00
Christopher Jeffrey
21ff3f1d78 fix orphan pruning. 2016-02-22 00:00:26 -08:00
Christopher Jeffrey
d6bef43d71 add http server. 2016-02-21 22:48:42 -08:00
Christopher Jeffrey
78098bcad5 fix getheaders sync. 2016-02-21 16:33:20 -08:00
Christopher Jeffrey
2ce5848d4c fix horrible typo. 2016-02-21 16:26:51 -08:00
Christopher Jeffrey
c81770c2b1 move some deps around. drop inherits. 2016-02-21 06:31:15 -08:00
Christopher Jeffrey
10804959d5 add wrapper for elliptic vs secp256k1. see #52. 2016-02-21 04:37:50 -08:00
Christopher Jeffrey
e7478372cf use level-js in the browser instead of memdown. 2016-02-20 21:33:58 -08:00
Christopher Jeffrey
b11cdd80af add walletdb. 2016-02-20 18:44:09 -08:00
Christopher Jeffrey
6e2eb039ac add spv node. add .bcoin dir. add file storage for wallet. 2016-02-20 16:53:10 -08:00
Christopher Jeffrey
86a368dddf fix wallet scan. 2016-02-20 03:50:25 -08:00
Christopher Jeffrey
7fe140d78b update cache in blockdb. 2016-02-20 01:36:09 -08:00
Christopher Jeffrey
2fd490922b return chainwork correctly for genesis block. 2016-02-19 22:41:43 -08:00
Christopher Jeffrey
e2759707f2 package.json and Makefile. 2016-02-19 22:29:33 -08:00
Christopher Jeffrey
7a66a2717e minor 2016-02-19 22:11:46 -08:00
Christopher Jeffrey
06d6d74081 more renaming. 2016-02-19 22:10:38 -08:00
Christopher Jeffrey
d48d9d44ee more renaming. 2016-02-19 22:06:47 -08:00
Christopher Jeffrey
3c29e20df2 refactor pool.search. 2016-02-19 22:04:33 -08:00
Christopher Jeffrey
48d7b95d61 minor refactor. 2016-02-19 21:48:06 -08:00
Christopher Jeffrey
28274cdba4 rename methods. 2016-02-19 21:42:44 -08:00
Christopher Jeffrey
ad7cd04e79 minor. 2016-02-19 21:22:22 -08:00
Christopher Jeffrey
032db24c41 typo 2016-02-19 21:17:05 -08:00
Christopher Jeffrey
509ed09603 better existence check. 2016-02-19 21:13:22 -08:00
Christopher Jeffrey
8ed054cbda handle verification better. make use of cache. 2016-02-19 21:00:38 -08:00
Christopher Jeffrey
ad95ffbfcd do verification on forked blocks. 2016-02-19 20:45:02 -08:00
Christopher Jeffrey
70553c884c better check for existing blocks. 2016-02-19 20:30:36 -08:00
Christopher Jeffrey
9eb90dd821 show pending jobs. 2016-02-19 19:53:24 -08:00
Christopher Jeffrey
a9ec49f954 misc fixes. 2016-02-19 19:48:24 -08:00
Christopher Jeffrey
56f68983d3 whitespace 2016-02-19 11:27:11 -08:00
Christopher Jeffrey
5a79637039 undo "fix". 2016-02-19 11:24:58 -08:00
Christopher Jeffrey
5e51b919f2 fix for resetHeight. 2016-02-19 11:24:07 -08:00
Christopher Jeffrey
e9a847e8e2 remove old functions. 2016-02-19 11:20:34 -08:00
Christopher Jeffrey
348049a5c3 refactor 2016-02-19 11:18:35 -08:00
Christopher Jeffrey
53158edf4f purge pending. 2016-02-19 11:16:39 -08:00
Christopher Jeffrey
3c3e9a496a more chain improvements. 2016-02-19 11:10:45 -08:00
Christopher Jeffrey
af59208ad5 cleanup 2016-02-19 09:49:07 -08:00
Christopher Jeffrey
fc5187bb26 fix some blockdb stuff. 2016-02-19 09:19:34 -08:00
Christopher Jeffrey
a558cbfb57 lower limits. 2016-02-19 09:13:18 -08:00
Christopher Jeffrey
a6668f860f experiment with _lock. 2016-02-19 09:10:50 -08:00
Christopher Jeffrey
bccc833299 play around with _lock method. 2016-02-19 08:35:46 -08:00
Christopher Jeffrey
3a63da5735 async work. 2016-02-19 08:07:50 -08:00
Christopher Jeffrey
cefeaf779b better block sync. 2016-02-19 07:49:14 -08:00
Christopher Jeffrey
7c3191aee8 fix chaindb queue system. 2016-02-19 06:30:10 -08:00
Christopher Jeffrey
7df05b971d async resets. 2016-02-19 05:54:23 -08:00
Christopher Jeffrey
053775ffac sync resetHeight 2016-02-19 05:38:02 -08:00
Christopher Jeffrey
9ff7e93c71 move sigop counting to checkInputs. 2016-02-19 04:16:29 -08:00
Christopher Jeffrey
9bc3e44a7f misc method improvements. 2016-02-19 03:08:50 -08:00
Christopher Jeffrey
71557ba95c more chain improvements. 2016-02-19 02:14:10 -08:00
Christopher Jeffrey
5f67f78170 chain fixes. 2016-02-19 01:42:59 -08:00
Christopher Jeffrey
29576c7bcc fix checkmultisig for nonstandard scripts. 2016-02-18 22:53:13 -08:00
Christopher Jeffrey
8b17c09116 move more logic into chaindb. 2016-02-18 22:52:51 -08:00
Christopher Jeffrey
5053fa2eeb move height lookups to chaindb. 2016-02-18 21:01:34 -08:00
Christopher Jeffrey
d2a4f995fd add some async functions. 2016-02-18 18:36:25 -08:00
Christopher Jeffrey
469d3c35d0 _revertLast. 2016-02-18 17:41:47 -08:00
Christopher Jeffrey
42f5ece282 refactor mempool events from chain. 2016-02-18 17:30:15 -08:00
Christopher Jeffrey
050d801849 standardness. chain. pool. 2016-02-18 15:26:03 -08:00
Christopher Jeffrey
83c5a6f906 minor. 2016-02-18 02:25:37 -08:00
Christopher Jeffrey
a6b1e8bdb0 recover keys. 2016-02-18 02:22:54 -08:00
Christopher Jeffrey
e68bab4ab3 make scripthash input test less insane. 2016-02-18 01:53:37 -08:00
Christopher Jeffrey
4b672d6337 fix sigops counting. 2016-02-18 01:45:47 -08:00
Christopher Jeffrey
ff467afaff minor. 2016-02-18 01:12:39 -08:00
Christopher Jeffrey
1f2e1fb6d5 add an extra failsafe check to checksig before normalizing DER sig length. 2016-02-17 21:32:29 -08:00
Christopher Jeffrey
86cebb7e3b normalize DER signature length. 2016-02-17 21:10:46 -08:00
Christopher Jeffrey
d22dc02e8f wait for flush. 2016-02-17 19:40:56 -08:00
Christopher Jeffrey
0139e1340c minor pool changes. 2016-02-17 18:00:54 -08:00
Christopher Jeffrey
6ef09f39ec better events. 2016-02-17 17:07:12 -08:00
Christopher Jeffrey
f7ac99d24d minor refactoring. 2016-02-17 16:02:11 -08:00
Christopher Jeffrey
d4aa15f9a3 remove old error code system. 2016-02-17 15:39:20 -08:00
Christopher Jeffrey
5d9f106e2a event based system for chain error handling. 2016-02-17 15:30:33 -08:00
Christopher Jeffrey
7a04ac25d0 add queue back to handleBlock. 2016-02-17 13:04:26 -08:00
Christopher Jeffrey
a208083dc5 do not increment total on orphans. 2016-02-17 12:55:48 -08:00
Christopher Jeffrey
2b84c16f0a drop bip37 emulation. 2016-02-17 12:54:42 -08:00
Christopher Jeffrey
a485a1d334 move queue to the chain. 2016-02-17 12:52:22 -08:00
Christopher Jeffrey
d1b470805e fix self references. 2016-02-17 12:32:31 -08:00
Christopher Jeffrey
9b1effdc66 pool improvements. 2016-02-17 05:08:19 -08:00
Christopher Jeffrey
8e81b8914d bad bufferpool. misc. 2016-02-17 04:59:12 -08:00
Christopher Jeffrey
f17575f864 queue 2016-02-17 02:53:43 -08:00
Christopher Jeffrey
90b3c16837 debugging. 2016-02-17 01:16:01 -08:00
Christopher Jeffrey
7b14c3b72b debugging. 2016-02-17 00:14:25 -08:00
Christopher Jeffrey
2dc3786eb0 refactor 2016-02-16 21:04:10 -08:00
Christopher Jeffrey
d0d0378f3e queue. fixes. 2016-02-16 21:01:31 -08:00
Christopher Jeffrey
0191acd530 blockdb reset height. 2016-02-16 17:19:14 -08:00
Christopher Jeffrey
997f0acbb0 more refactoring. 2016-02-16 16:13:34 -08:00
Christopher Jeffrey
ab610d6fa5 new verifyContext. 2016-02-16 14:27:46 -08:00
Christopher Jeffrey
02e4c9e266 fix verifyContext. 2016-02-16 14:08:56 -08:00
Christopher Jeffrey
fe46d1ada5 contextual verification. misc. 2016-02-16 13:45:02 -08:00
Christopher Jeffrey
e912f78814 async chain. 2016-02-16 03:03:11 -08:00
Christopher Jeffrey
5b7ac01e84 fix prop. 2016-02-16 01:36:44 -08:00
Christopher Jeffrey
9619779426 fix vars. 2016-02-16 01:33:35 -08:00
Christopher Jeffrey
5de30139ae lru. misc. 2016-02-16 01:23:07 -08:00
Christopher Jeffrey
24cc9c85ef options. misc. 2016-02-15 23:48:23 -08:00
Christopher Jeffrey
a7a8999a33 more lru cache. 2016-02-15 20:30:36 -08:00
Christopher Jeffrey
3bfd276b76 lru cache 2016-02-15 19:14:35 -08:00
Christopher Jeffrey
2ae8c17398 lru cache 2016-02-15 18:19:59 -08:00
Christopher Jeffrey
8f897c256b write buffer size. 2016-02-15 16:56:20 -08:00
Christopher Jeffrey
23d3343994 fix test. 2016-02-15 15:41:35 -08:00
Christopher Jeffrey
7a32e510e9 tx-pool fixes. 2016-02-15 15:37:33 -08:00
Christopher Jeffrey
39ecd292b3 bank on new bn() accepting buffers for extra perf. 2016-02-15 14:18:46 -08:00
Christopher Jeffrey
effaa57abf blockdb drop queue and cache. 2016-02-15 11:00:34 -08:00
Christopher Jeffrey
91897540d6 optimize blockdb more. 2016-02-15 10:54:04 -08:00
Christopher Jeffrey
124e79907b more blockdb cleanup 2016-02-15 02:03:09 -08:00
Christopher Jeffrey
299126225c blockdb cleanup. 2016-02-15 01:50:29 -08:00
Christopher Jeffrey
2a20e56f7b get coin parsing working. 2016-02-15 01:27:00 -08:00
Christopher Jeffrey
7175f81d59 fullnode 2016-02-14 18:05:37 -08:00
Christopher Jeffrey
06ba355363 simplify scanning. 2016-02-13 16:08:29 -08:00
Christopher Jeffrey
2a5c35cf05 add hd scanning to wallet. 2016-02-13 15:44:15 -08:00
Christopher Jeffrey
9d727cebae wallet tests. fixes. 2016-02-12 22:32:54 -08:00
Christopher Jeffrey
60abff853a hd option parsing and network. 2016-02-12 19:52:47 -08:00
Christopher Jeffrey
88c131c7b3 fix pool. hd improvements. 2016-02-12 17:57:21 -08:00
Christopher Jeffrey
dbba098190 remove calls to getTip(). 2016-02-12 16:38:26 -08:00
Christopher Jeffrey
a3fc9159a0 add more extractor functions. 2016-02-12 16:10:36 -08:00
Christopher Jeffrey
4e34d3d0ca use native pbkdf2. 2016-02-12 15:41:48 -08:00
Christopher Jeffrey
da19b6da29 add regular addresses to addressMap. 2016-02-12 13:55:21 -08:00
Christopher Jeffrey
bfd570e204 coin selection. misc. 2016-02-12 04:24:35 -08:00
Christopher Jeffrey
697718c940 drop fee recalculation. 2016-02-12 04:04:18 -08:00
Christopher Jeffrey
016c85f8b5 fill refactor. accurate fee calculation. 2016-02-12 03:54:02 -08:00
Christopher Jeffrey
c4818c4bc8 add subtract fee option. 2016-02-12 02:44:11 -08:00
Christopher Jeffrey
686dcbcdd9 minor fixes. 2016-02-12 01:20:05 -08:00
Christopher Jeffrey
a788f151b1 increment depths on sync. 2016-02-11 02:56:07 -08:00
Christopher Jeffrey
d445fb7943 option parsing. 2016-02-11 02:52:27 -08:00
Christopher Jeffrey
158a35881c add address.getType. 2016-02-11 02:00:54 -08:00
Christopher Jeffrey
173e133bf4 minor keypair fix. 2016-02-11 01:44:34 -08:00
Christopher Jeffrey
4a6c73fc8e refactor signing. 2016-02-11 01:29:35 -08:00
Christopher Jeffrey
b963809318 minor. 2016-02-10 21:39:44 -08:00
Christopher Jeffrey
25767d9273 minor fixes. 2016-02-10 21:22:28 -08:00
Christopher Jeffrey
f26fb32027 refactor orphan tx resolution. 2016-02-10 21:07:30 -08:00
Christopher Jeffrey
501abbab45 another wallet rewrite. 2016-02-10 21:06:25 -08:00
Christopher Jeffrey
6cc4c866dc wallet refactor. fixes. 2016-02-10 16:42:02 -08:00
Christopher Jeffrey
9fc6848dce reject packets. 2016-02-09 01:29:23 -08:00
Christopher Jeffrey
fb8be11eac add mempool object. 2016-02-09 01:21:38 -08:00
Christopher Jeffrey
17e25804de better preload. misc fixes. 2016-02-09 00:07:38 -08:00
Christopher Jeffrey
05d4eab0d8 add preload option. better errors. 2016-02-08 21:05:27 -08:00
Christopher Jeffrey
bcd68c4ed8 fix callback. 2016-02-08 20:49:50 -08:00
Christopher Jeffrey
36c3d72021 add preload from electrum.org. check for blockchain corruption. 2016-02-08 20:46:57 -08:00
Christopher Jeffrey
adb304748f add some data integrity checks when loading the chain. 2016-02-08 19:55:56 -08:00
Christopher Jeffrey
d20b3b8737 move chaindb and chainblock to their own modules. 2016-02-08 19:01:30 -08:00
Christopher Jeffrey
6cab97b265 listen on server socket for leech peers. 2016-02-08 18:46:09 -08:00
Christopher Jeffrey
72b7adc800 get bcoin working in the browser again. 2016-02-08 18:06:39 -08:00
Christopher Jeffrey
8fd883b6c6 add async utils 2016-02-08 17:03:31 -08:00
Christopher Jeffrey
58a859267c more tx-pool consistency. 2016-02-07 07:18:19 -08:00
Christopher Jeffrey
7fbfc1e248 remove tx-pool coin functions. 2016-02-07 06:44:11 -08:00
Christopher Jeffrey
7d17dd855f utils.cmp. tx-pool improvements. 2016-02-07 06:39:58 -08:00
Christopher Jeffrey
588d978bb9 implement bip64. 2016-02-07 04:36:30 -08:00
Christopher Jeffrey
bad5250983 serialization formats. 2016-02-07 03:36:07 -08:00
Christopher Jeffrey
69925eb7b4 coin toRaw and fromRaw. 2016-02-07 02:22:35 -08:00
Christopher Jeffrey
2ec7989b6a no more dynamic heights. 2016-02-06 21:51:38 -08:00
Christopher Jeffrey
1761266ba9 improve tx-pool. 2016-02-06 19:10:40 -08:00
Christopher Jeffrey
7bb20437bc refactor tx instantiation. 2016-02-06 17:12:16 -08:00
Christopher Jeffrey
769b50c999 rename output.prev to coin. 2016-02-06 16:16:02 -08:00
Christopher Jeffrey
274c6e6864 use utxo object instead of tx refs. 2016-02-06 04:54:38 -08:00
Christopher Jeffrey
26f1e44eb3 saner _addInput. 2016-02-06 01:07:26 -08:00
Christopher Jeffrey
18f0a55779 refactor tx. 2016-02-05 22:46:04 -08:00
Christopher Jeffrey
7de73c670c pass index around. 2016-02-05 03:59:30 -08:00
Christopher Jeffrey
51b0d83444 remove _deriveKey 2016-02-05 03:50:02 -08:00
Christopher Jeffrey
84551e17e2 paths. scanning. unspents. 2016-02-05 03:44:42 -08:00
Christopher Jeffrey
b835fff86c hd keys. address pruning. txpool balance. 2016-02-04 18:58:56 -08:00
Christopher Jeffrey
b9149a0855 fix hd privkey derivation. 2016-02-04 13:14:33 -08:00
Christopher Jeffrey
49bcfc17e9 keypair consistency. 2016-02-04 12:45:03 -08:00
Christopher Jeffrey
a367674584 more keypair stuff. 2016-02-04 03:33:15 -08:00
Christopher Jeffrey
99fac69127 keypair improvements. 2016-02-04 03:30:12 -08:00
Christopher Jeffrey
1ee4e556b0 more fixes. 2016-02-04 02:54:02 -08:00
Christopher Jeffrey
fa22c79dbe hd and wallet work. 2016-02-04 02:44:16 -08:00
Christopher Jeffrey
517a5d488b cleanup 2016-02-03 21:49:32 -08:00
Christopher Jeffrey
cf50502238 more fixes. 2016-02-03 21:46:02 -08:00
Christopher Jeffrey
97bcdd79c2 minor fixes 2016-02-03 21:35:07 -08:00
Christopher Jeffrey
c23fdeba50 improvements. 2016-02-03 21:21:08 -08:00
Christopher Jeffrey
eacd1e2ece bip45 wallet 2016-02-03 19:46:02 -08:00
Christopher Jeffrey
28a2cab787 add bip45 to hd.js. 2016-02-03 13:22:43 -08:00
Christopher Jeffrey
e0ab0ab88d minor changes/fixes. 2016-02-03 02:09:03 -08:00
Christopher Jeffrey
3158f57e0f fix tx.render() and avoidFeeSnipping(). 2016-02-02 20:28:35 -08:00
Christopher Jeffrey
f6fe37be6b improve address.ownInput. 2016-02-02 19:41:47 -08:00
Christopher Jeffrey
13d14b0130 tx: add bip69 sorting. 2016-02-02 17:57:38 -08:00
Christopher Jeffrey
2deccde29e wallet work. consistency. 2016-02-02 16:09:48 -08:00
Christopher Jeffrey
f3fd85354e wallet/keypair: fixes. 2016-02-02 13:43:43 -08:00
Christopher Jeffrey
156601e40a createTX. hd fixes. 2016-02-02 02:50:36 -08:00
Christopher Jeffrey
42e17bc0f2 rewrite wallet. allow multiple addresses. utilize hd. 2016-02-01 21:37:06 -08:00
Christopher Jeffrey
f9d960ca23 api: more method renames. legacy support. docs. 2016-02-01 11:57:40 -08:00
Christopher Jeffrey
6ad621cace api: rename methods, properties. add legacy support. 2016-02-01 11:50:09 -08:00
Christopher Jeffrey
999cfefe54 more pool work. wallet.fill(). 2016-02-01 10:54:52 -08:00
Christopher Jeffrey
1e027220c3 pool: refactor. 2016-01-31 00:57:34 -08:00
Christopher Jeffrey
b0ee614432 misc sync fixes. 2016-01-31 00:50:13 -08:00
Christopher Jeffrey
5ab48378cc fix addTX. 2016-01-30 02:34:35 -08:00
Christopher Jeffrey
a99725f8ff pool: remove old functions. 2016-01-30 02:31:15 -08:00
Christopher Jeffrey
8447790a84 remove peer backoff system. 2016-01-30 02:21:00 -08:00
Christopher Jeffrey
f59a1f887b increase requestTimeout. 2016-01-30 02:13:28 -08:00
Christopher Jeffrey
60c3db7cb9 better request handling. 2016-01-29 18:58:41 -08:00
Christopher Jeffrey
e8cb2102a3 work 2016-01-29 17:38:31 -08:00
Christopher Jeffrey
41516b4866 better system for avoiding duplicate txs. 2016-01-29 16:08:33 -08:00
Christopher Jeffrey
3959b9cf5d only emit new transactions. 2016-01-29 16:00:40 -08:00
Christopher Jeffrey
1115468f05 fix typos. 2016-01-29 15:56:22 -08:00
Christopher Jeffrey
e8815f3e6b version packet: minor. 2016-01-29 15:35:09 -08:00
Christopher Jeffrey
c6f91ddd69 minor fixes for tx requesting. 2016-01-29 15:32:41 -08:00
Christopher Jeffrey
e880dc5a5c pool._addTX to prevent duplicate requests. 2016-01-29 14:51:36 -08:00
Christopher Jeffrey
7ce5348cd9 debug messages. 2016-01-29 14:45:08 -08:00
Christopher Jeffrey
32c0f8ce3c do not request duplicate txs. 2016-01-29 14:44:43 -08:00
Christopher Jeffrey
b4abeceac3 handle requesting directly by peer. 2016-01-29 13:53:51 -08:00
Christopher Jeffrey
294e5a5b37 mark txs as in-flight. 2016-01-29 13:10:06 -08:00
Christopher Jeffrey
9ada551b28 auto request txs. 2016-01-29 13:00:29 -08:00
Christopher Jeffrey
3fc7272780 fix typo. 2016-01-29 12:46:25 -08:00
Christopher Jeffrey
ef3f8f37db no priority on inspection. 2016-01-29 12:45:05 -08:00
Christopher Jeffrey
30ad543c31 more docs. rename some functions. 2016-01-29 11:33:00 -08:00
Christopher Jeffrey
a6c2270775 enforce byte arrays in block.render(). 2016-01-28 15:09:59 -08:00
Christopher Jeffrey
07ddae9d33 misc fixes and improvements. 2016-01-27 19:43:24 -08:00
Christopher Jeffrey
4cc9b93fdd fix resetHeight. 2016-01-27 11:01:45 -08:00
Christopher Jeffrey
5dce1427ba raw blocks. pool fixes. 2016-01-25 15:40:53 -08:00
Christopher Jeffrey
b98640b27e drop preload constants. 2016-01-25 13:46:40 -08:00
Christopher Jeffrey
f3980ca029 deprecate chain.getTip(). 2016-01-25 11:58:22 -08:00
Christopher Jeffrey
e7d0ea81f9 block and tx methods. 2016-01-24 16:01:29 -08:00
Christopher Jeffrey
0d7929136a fix getChainwork. 2016-01-23 22:00:19 -08:00
Christopher Jeffrey
7526beace0 chaindb: minor. 2016-01-23 19:36:34 -08:00
Christopher Jeffrey
9a60ae8e50 add back old peer seed code. 2016-01-22 18:35:13 -08:00
Christopher Jeffrey
ef09a776fe cleanup old tries code. 2016-01-22 18:11:40 -08:00
Christopher Jeffrey
9476f7f70a remove peer "tries" system. 2016-01-22 18:09:26 -08:00
Christopher Jeffrey
9b266c6ec7 minor. 2016-01-21 18:28:46 -08:00
Christopher Jeffrey
cdfe7b6ec5 add assert. 2016-01-21 18:10:04 -08:00
Christopher Jeffrey
93e0fe95d0 chaindb: back to async writes. 2016-01-21 14:35:13 -08:00
Christopher Jeffrey
32109c5de5 chaindb: error handling. 2016-01-21 14:31:32 -08:00
Christopher Jeffrey
a459d190aa use async writes. 2016-01-21 14:10:01 -08:00
Christopher Jeffrey
cb73ab908e chaindb: add allocator. 2016-01-21 14:01:32 -08:00
Christopher Jeffrey
7c2171966c chaindb: minor fixes. 2016-01-21 13:43:04 -08:00
Christopher Jeffrey
8f3667b866 check range for search. 2016-01-21 04:22:37 -08:00
Christopher Jeffrey
34a44fe391 chaindb: async loading. 2016-01-21 04:10:21 -08:00
Christopher Jeffrey
c5bc356bc9 add getAsync. 2016-01-21 03:58:33 -08:00
Christopher Jeffrey
b65ed25b29 chaindb: fix async. 2016-01-21 03:48:39 -08:00
Christopher Jeffrey
b273bec120 chaindb: checksum. 2016-01-21 03:39:36 -08:00
Christopher Jeffrey
ef51f4f842 chaindb: recovery. 2016-01-21 03:24:29 -08:00
Christopher Jeffrey
c950a30330 chaindb: better loading. 2016-01-21 02:23:01 -08:00
Christopher Jeffrey
495dda79ef fix assert. 2016-01-21 02:02:44 -08:00
Christopher Jeffrey
18f1412ba7 rename functions. 2016-01-21 01:58:21 -08:00
Christopher Jeffrey
95ff41dde9 move saveAsync elsewhere. 2016-01-21 01:56:01 -08:00
Christopher Jeffrey
c3943c0111 chaindb. avoid buffered writes. 2016-01-21 01:50:22 -08:00
Christopher Jeffrey
dd4660eb15 chaindb: cleanup. remove old functionality. 2016-01-21 01:40:40 -08:00
Christopher Jeffrey
92619d408e chaindb/pool: fixes. work. 2016-01-21 01:28:59 -08:00
Christopher Jeffrey
9a575e9a26 chain: use binary search for byTime. 2016-01-20 22:32:32 -08:00
Christopher Jeffrey
423b52b0b7 chaindb: minor. 2016-01-20 21:14:50 -08:00
Christopher Jeffrey
f62cf7dc6e chaindb: use buffers. 2016-01-20 20:10:05 -08:00
Christopher Jeffrey
d5d3dd69e2 chaindb: minor improvements. 2016-01-20 20:06:43 -08:00
Christopher Jeffrey
43a365962b cleanup chain db. fixes. 2016-01-20 19:56:47 -08:00
Christopher Jeffrey
f6a35d0810 more chain db work. 2016-01-20 18:18:27 -08:00
Christopher Jeffrey
c111d673e7 blockchain db. 2016-01-20 17:40:51 -08:00
Christopher Jeffrey
e461e44303 save memory by not storing prevBlock. 2016-01-20 13:58:11 -08:00
Christopher Jeffrey
ef44bf44f0 more debugging. 2016-01-20 13:35:16 -08:00
Christopher Jeffrey
271ca1aa52 better fork handling for peers. 2016-01-20 12:48:31 -08:00
Christopher Jeffrey
704c95c90d add tx.getPriority and tx.isFree. 2016-01-20 12:31:47 -08:00
Christopher Jeffrey
f6dc42924b global debugging. script.isEncoded. 2016-01-20 12:25:19 -08:00
Christopher Jeffrey
03c117b009 more DOS protection. 2016-01-20 12:04:38 -08:00
Christopher Jeffrey
ddbb7894fa potentially clean up misbehaving peers. 2016-01-20 02:54:52 -08:00
Christopher Jeffrey
009f4f9f72 debug messages for dos prevention. 2016-01-20 02:48:42 -08:00
Christopher Jeffrey
47af5987ae better system to prevent DOSing. 2016-01-20 02:46:25 -08:00
Christopher Jeffrey
a2c08d9692 drop extra coinbase functions. 2016-01-20 00:21:41 -08:00
Christopher Jeffrey
486c22d0e7 get rid of getStartHeight. 2016-01-19 20:36:48 -08:00
Christopher Jeffrey
27fd056316 minor. 2016-01-19 20:35:26 -08:00
Christopher Jeffrey
c11a651e9d better loader management. 2016-01-19 20:32:59 -08:00
Christopher Jeffrey
8abaef49a9 check for nulldata in script extraction. 2016-01-19 17:15:27 -08:00
Christopher Jeffrey
5e00e42903 better nonstandard signing. 2016-01-19 16:12:30 -08:00
Christopher Jeffrey
1258cbbbd4 fix input/output calls. 2016-01-19 15:58:12 -08:00
Christopher Jeffrey
ebbb417283 more script data extraction improvements. 2016-01-19 15:53:00 -08:00
Christopher Jeffrey
b389dd1b5f better key and sig parsing for scripts. 2016-01-19 14:18:46 -08:00
Christopher Jeffrey
c8da41aa9d toJSON fixes. 2016-01-18 17:12:20 -08:00
Christopher Jeffrey
d2205241ee wallet key format. 2016-01-18 16:16:00 -08:00
Christopher Jeffrey
f5a63563e3 rename unspent. 2016-01-18 12:48:43 -08:00
Christopher Jeffrey
220b09bc67 fix unspent property. 2016-01-18 12:47:32 -08:00
Christopher Jeffrey
1d5e3ca27e add tx.setLockTime and tx.increaseFee (rbf). 2016-01-18 12:40:41 -08:00
Christopher Jeffrey
911f9534e4 fix testnet targetting. 2016-01-18 12:14:33 -08:00
Christopher Jeffrey
9011fcc25e stricter script standards. work on tx. 2016-01-18 01:52:18 -08:00
Christopher Jeffrey
6b36bad41d fix calls to isLowDER. 2016-01-17 21:23:19 -08:00
Christopher Jeffrey
575843acef work on chain. check for low der sigs. 2016-01-17 19:57:34 -08:00
Christopher Jeffrey
46b2983eb3 update preload. 2016-01-17 17:15:13 -08:00
Christopher Jeffrey
3745577837 standard opcodes. remove tx methods. 2016-01-17 15:52:09 -08:00
Christopher Jeffrey
6f4609792f regtest support. tx methods. 2016-01-16 23:48:18 -08:00
Christopher Jeffrey
b9041a0157 sign unknown txs. 2016-01-16 04:50:33 -08:00
Christopher Jeffrey
b1d46206a8 script fixes. 2016-01-15 19:28:17 -08:00
Christopher Jeffrey
e5a82c7195 sighash. tx signing. testnet. 2016-01-15 15:53:57 -08:00
Christopher Jeffrey
46295b3c08 cleanup. misc. 2016-01-15 02:23:22 -08:00
Christopher Jeffrey
7854ec07d8 fix lockTime and changeIndex. 2016-01-14 18:16:49 -08:00
Christopher Jeffrey
05a8aeeb48 add bn2.js. 2016-01-14 16:09:18 -08:00
Christopher Jeffrey
0ba31eeb59 better script conformance. 2016-01-14 15:58:22 -08:00
Christopher Jeffrey
282639b5b1 script standardness. 2016-01-14 11:45:33 -08:00
Christopher Jeffrey
bfca638025 more packet improvements. 2016-01-14 01:59:33 -08:00
Christopher Jeffrey
077588e90a fix script.args. 2016-01-14 01:34:40 -08:00
Christopher Jeffrey
6154b1f7a1 improve tx verification. 2016-01-14 01:18:31 -08:00
Christopher Jeffrey
ef59dae1b5 simplify tbsHash. 2016-01-14 01:04:11 -08:00
Christopher Jeffrey
8f037ea430 tx: add tbsHash method. 2016-01-14 00:57:55 -08:00
Christopher Jeffrey
f8ec64d46f do not throw on empty stack. 2016-01-13 20:20:18 -08:00
Christopher Jeffrey
018d534c47 fix anyonecanpay. 2016-01-13 20:05:25 -08:00
Christopher Jeffrey
8ade973b31 sighash work 2016-01-13 19:41:03 -08:00
Christopher Jeffrey
397764ece6 input and output redeem script. 2016-01-13 18:40:51 -08:00
Christopher Jeffrey
4f8d24ba36 more int and packet work. 2016-01-13 18:31:07 -08:00
Christopher Jeffrey
5c1b136117 revert back to old output value writing. 2016-01-13 04:31:20 -08:00
Christopher Jeffrey
37803d178d use write64 for output values. 2016-01-13 04:15:14 -08:00
Christopher Jeffrey
10bd983899 version and addr packets. 2016-01-13 03:38:23 -08:00
Christopher Jeffrey
a71da261ad handle low S values in signatures. 2016-01-12 20:26:11 -08:00
Christopher Jeffrey
de455fa3e9 improve int functions and usage in parser and framer. 2016-01-12 18:13:32 -08:00
Christopher Jeffrey
c94457cf1f more tx refactoring. 2016-01-12 05:15:22 -08:00
Christopher Jeffrey
b147951a83 rename some variables. 2016-01-12 04:23:53 -08:00
Christopher Jeffrey
7b27f5dc9b hard fee calculation. 2016-01-12 04:08:25 -08:00
Christopher Jeffrey
3c8442b1bb improve fee calculation. 2016-01-12 03:47:12 -08:00
Christopher Jeffrey
ca03911d80 do not check for uncompressed keys for now. 2016-01-12 03:27:50 -08:00
Christopher Jeffrey
abc1f2b610 signInput should test against keys. 2016-01-12 02:55:35 -08:00
Christopher Jeffrey
645a3a59b2 minor. recover keys for isMultisig? 2016-01-12 02:08:07 -08:00
Christopher Jeffrey
fdc72b2062 let isMultisig handle m and n validation. 2016-01-12 01:13:22 -08:00
Christopher Jeffrey
f17f3b5bee pool: add startSync and stopSync. 2016-01-12 00:39:39 -08:00
Christopher Jeffrey
f420b41907 improve script.isMultisig. 2016-01-11 23:58:43 -08:00
Christopher Jeffrey
d316b1c640 pool: move common listeners to createPeer. 2016-01-11 22:27:59 -08:00
Christopher Jeffrey
24f8bc69c5 refactor pool and tx. 2016-01-11 22:15:06 -08:00
Christopher Jeffrey
b77314dd0f signature work. script function renames. add wallet.fillTX/tx.fill. 2016-01-11 15:20:44 -08:00
Christopher Jeffrey
6f86ca2d02 add utils.isBytes. 2016-01-11 01:07:05 -08:00
Christopher Jeffrey
1754e7ee77 fix for miner. 2016-01-11 00:56:27 -08:00
Christopher Jeffrey
9c2b0015d1 checkmultisig fixes. misc. 2016-01-11 00:40:16 -08:00
Christopher Jeffrey
cf5a117a3e fixes and improvements. allow arbitrary redeem scripts for wallet. 2016-01-11 00:10:31 -08:00
Christopher Jeffrey
442c984c12 improve p2sh building. change wallet key/redeem methods. 2016-01-10 21:43:52 -08:00
Christopher Jeffrey
871e36c426 tx.scriptOutput 2016-01-10 20:28:28 -08:00
Christopher Jeffrey
bf3906b4d4 more fee estimation. 2016-01-10 20:15:14 -08:00
Christopher Jeffrey
eb1a3ea6d2 transaction improvements. 2016-01-10 04:58:03 -08:00
Christopher Jeffrey
0b7ca266ee tx/script refactor and improvements. 2016-01-09 19:02:19 -08:00
Christopher Jeffrey
0658444eb5 chain improvements. 2016-01-09 14:24:36 -08:00
Christopher Jeffrey
314c14f422 input/output consistency. misc. 2016-01-09 13:22:08 -08:00
Christopher Jeffrey
6b10fabc5f tx refactor. etc. 2016-01-08 19:27:00 -08:00
Christopher Jeffrey
8087601a7f work 2016-01-08 16:59:03 -08:00
Christopher Jeffrey
d56f7a3733 even more bufffer work. 2016-01-08 04:11:46 -08:00
Christopher Jeffrey
465b23013d temporarily use buffers. coinbase fixes. script/tx fixes. 2016-01-08 03:34:55 -08:00
Christopher Jeffrey
df420a4a8b refactor. work. 2016-01-08 02:22:35 -08:00
Christopher Jeffrey
42fbef82ed misc 2016-01-07 03:28:58 -08:00
Christopher Jeffrey
c56640a433 various fixes for our miner. 2016-01-07 01:22:06 -08:00
Christopher Jeffrey
8d120a4fd6 more block verification. 2016-01-06 19:15:41 -08:00
Christopher Jeffrey
e1ec89fe7d sigops 2016-01-06 01:41:06 -08:00
Christopher Jeffrey
6df8319871 fix pool peers. 2016-01-06 00:35:01 -08:00
Christopher Jeffrey
ee97c7ed12 handle chain forks better. 2016-01-06 00:14:51 -08:00
Christopher Jeffrey
680bf01e98 add tx.isFinal. refactor chain usage. 2016-01-05 21:32:31 -08:00
Christopher Jeffrey
c6c75d509b optimize chain.size() 2016-01-05 16:07:11 -08:00
Christopher Jeffrey
8e698673a0 fix typo. emit resolved entries. 2016-01-05 14:25:14 -08:00
Christopher Jeffrey
d0d5ab2c3b add mempool packet. miner refactor. 2016-01-05 12:46:30 -08:00
Christopher Jeffrey
ff08f73fa9 check orphan size. misc. 2016-01-05 03:25:53 -08:00
Christopher Jeffrey
60e01b261c rename fullchain.js to chain.js. 2016-01-05 02:48:53 -08:00
Christopher Jeffrey
32220fcc4f remove old spv chain. 2016-01-05 02:48:17 -08:00
Christopher Jeffrey
8a930ac037 drop missing event. fix for spv chain. pool.search improvements. 2016-01-05 02:45:57 -08:00
Christopher Jeffrey
2f618c961b fixes. peer improvements. 2016-01-05 02:28:06 -08:00
Christopher Jeffrey
019ecf4f2a switch to fullchain for both spv and fullnode. 2016-01-04 20:13:06 -08:00
Christopher Jeffrey
582a21fd5a getblocks failing for spv. 2016-01-04 18:31:27 -08:00
Christopher Jeffrey
0a97cebf25 improve getblocks download, spv chain, and events. 2016-01-04 18:22:42 -08:00
Christopher Jeffrey
2c3edd50aa chain: improve locatorHashes. 2016-01-04 16:33:52 -08:00
Christopher Jeffrey
74b1562a87 network: fix checkpoints. 2016-01-04 16:33:11 -08:00
Christopher Jeffrey
6da3fbac3a add utils.hash test. 2016-01-04 16:03:04 -08:00
Christopher Jeffrey
10fce032b7 improve locatorHashes. fix utils ref in tx-pool. add utils.hash. 2016-01-04 15:12:50 -08:00
Christopher Jeffrey
d0cbc8f358 do not push unknown hash onto locators. 2016-01-04 13:39:40 -08:00
Christopher Jeffrey
d1595c0ec4 use getheaders by default. fix header parsing and handling. 2016-01-04 13:14:09 -08:00
Christopher Jeffrey
50e606f625 fix pool.isWatched. 2016-01-04 10:37:58 -08:00
Christopher Jeffrey
eef4103296 miner: status event. 2016-01-04 05:07:53 -08:00
Christopher Jeffrey
61da977a3f miner: try to verify txs. 2016-01-04 05:03:24 -08:00
Christopher Jeffrey
20f8c82c7f add tip event to chain. 2016-01-04 04:59:55 -08:00
Christopher Jeffrey
0350b93a0a add a simple miner because we can. 2016-01-04 04:48:25 -08:00
Christopher Jeffrey
6758d4fe8a chain and search fixes. options. 2016-01-04 04:33:49 -08:00
Christopher Jeffrey
0f8819c78e minor fixes. refactor timestamps. 2016-01-04 04:12:26 -08:00
Christopher Jeffrey
a20cd7edbe refactor pool. improve chains. 2016-01-04 03:04:09 -08:00
Christopher Jeffrey
484b1f2817 use getheaders. 2016-01-03 06:47:27 -08:00
Christopher Jeffrey
3e5995f741 fix tx pool addition and tx verification. 2016-01-03 01:34:50 -08:00
Christopher Jeffrey
73262b74ba pool.searchWallet failsafe for fullnode. 2016-01-02 05:19:19 -08:00
Christopher Jeffrey
9c904f7b4f fix potential uncatchable error. 2016-01-02 05:16:58 -08:00
Christopher Jeffrey
bdc546edbc fix chain.index.lastTs. 2016-01-02 05:09:44 -08:00
Christopher Jeffrey
a7a8eb11bb add orphanRoot to spv chain. 2016-01-02 05:04:10 -08:00
Christopher Jeffrey
fc45025131 add chain.compact. orphan failsafe. 2016-01-02 04:48:20 -08:00
Christopher Jeffrey
35ba5a5de5 refactor chain methods. check for orphans during fullnode sync. 2016-01-02 04:32:04 -08:00
Christopher Jeffrey
7a8a7a5a2b better wallet searching for spv. pool methods. 2016-01-02 03:44:25 -08:00
Christopher Jeffrey
ff16271c1a comments. remove useless variable. 2016-01-02 00:26:19 -08:00
Christopher Jeffrey
9976208d0d comments. misc. 2016-01-02 00:16:36 -08:00
Christopher Jeffrey
e04aed96d0 remove throwing assert for now. 2016-01-01 23:54:48 -08:00
Christopher Jeffrey
440933c27d move pow target methods. 2016-01-01 19:58:35 -08:00
Christopher Jeffrey
0e5d7c41f2 refactor chain.has. 2016-01-01 19:54:22 -08:00
Christopher Jeffrey
5a26b7b71e add pow retargeting to full chain. 2016-01-01 19:53:57 -08:00
Christopher Jeffrey
8b546a85e0 check for fullNode in handleBlock and handleMerkle. 2016-01-01 19:14:34 -08:00
Christopher Jeffrey
1be3a74c70 more chain method improvements. 2016-01-01 18:46:46 -08:00
Christopher Jeffrey
a4084d8252 more chain methods. 2016-01-01 18:32:15 -08:00
Christopher Jeffrey
4c1a3761af set relay to false on spv. 2016-01-01 18:07:18 -08:00
Christopher Jeffrey
08320fd3fb update preload.js. 2016-01-01 17:58:54 -08:00
Christopher Jeffrey
eee2ef5d34 improve pool/chain options. 2016-01-01 17:54:22 -08:00
Christopher Jeffrey
90856a8f5b add size method. 2016-01-01 17:42:02 -08:00
Christopher Jeffrey
3c5a823445 allow watch() to be used on a full node. 2016-01-01 17:42:02 -08:00
Christopher Jeffrey
146e50dc68 add fullnode chain. improve pool. 2016-01-01 17:41:13 -08:00
Christopher Jeffrey
65dd1727be push wallet in pool.addWallet. 2016-01-01 14:21:10 -08:00
Christopher Jeffrey
3625a4f4c9 minor fixes. 2015-12-30 14:34:16 -08:00
Christopher Jeffrey
350ca9c875 move all block sync logic to pool. 2015-12-29 18:40:31 -08:00
Christopher Jeffrey
22427fe78f stop saving block height on blocks. 2015-12-29 18:35:30 -08:00
Christopher Jeffrey
67d1405c15 handle compact mantissa numbers. 2015-12-29 13:13:51 -08:00
Christopher Jeffrey
43b0533a18 minor improvements and fixes. 2015-12-27 23:54:53 -08:00
Christopher Jeffrey
afcb89f76f block and tx getters. coinbase height. multisig input test. 2015-12-24 13:19:29 -08:00
Christopher Jeffrey
1f8bf8c377 input and output getters. 2015-12-24 12:18:00 -08:00
Christopher Jeffrey
6ceeb6800b remove useless line. 2015-12-24 03:27:34 -08:00
Christopher Jeffrey
42d872b268 calculate block reward. 2015-12-24 00:34:31 -08:00
Christopher Jeffrey
1fb6cb04b4 clean up input and output schema. 2015-12-23 23:44:59 -08:00
Christopher Jeffrey
207d9e1a30 refactor input and output data. 2015-12-23 23:12:54 -08:00
Christopher Jeffrey
0ccf67aef6 more input and output data work. 2015-12-23 21:55:25 -08:00
Christopher Jeffrey
cf9e11e356 add ids to inputs and outputs without addresses. 2015-12-23 20:09:14 -08:00
Christopher Jeffrey
f3ae1c517a send block and merkleblock packets correctly. 2015-12-23 19:56:33 -08:00
Christopher Jeffrey
b77c34789e refactor getData for inputs and outputs. 2015-12-23 19:55:27 -08:00
Christopher Jeffrey
b14c4daee0 refactor tx.utxos(). 2015-12-23 18:31:31 -08:00
Christopher Jeffrey
389ee296b0 improve tx building. minor style fixes. utils.uniq. 2015-12-23 16:24:29 -08:00
Christopher Jeffrey
d32a951f37 fix isMultisig: compare to n value. 2015-12-23 11:45:43 -08:00
Christopher Jeffrey
2299ee757e minor refactor. 2015-12-23 11:35:57 -08:00
Christopher Jeffrey
dddd6b0b49 minor: inspect methods. 2015-12-23 05:45:33 -08:00
Christopher Jeffrey
f68750991d add block.reward. add coinbase data to into. failsafe for getFee. 2015-12-23 05:33:48 -08:00
Christopher Jeffrey
fdc11b76b2 start checking for height coinbases earlier. 2015-12-23 04:44:21 -08:00
Christopher Jeffrey
58d8e3ce53 fix coinbase parsing. 2015-12-23 04:14:51 -08:00
Christopher Jeffrey
2f6f3e11b1 Revert "use big numbers when calculating fee."
This reverts commit a057dc4064.
2015-12-23 02:42:57 -08:00
Christopher Jeffrey
a057dc4064 use big numbers when calculating fee. 2015-12-23 02:42:36 -08:00
Christopher Jeffrey
d54a532a66 fix error thrown in output.inspect. 2015-12-23 02:35:32 -08:00
Christopher Jeffrey
b3f457ee31 improve locktime checks and coinbase parsing. 2015-12-23 02:34:51 -08:00
Christopher Jeffrey
4ac398e41b add tx to prev output data. 2015-12-22 22:50:13 -08:00
Christopher Jeffrey
47618898c7 minor. 2015-12-22 20:11:09 -08:00
Christopher Jeffrey
3d417f48df improve coinbase height check. 2015-12-22 20:07:20 -08:00
Christopher Jeffrey
618177b6a6 grab block height from the coinbase script. 2015-12-22 19:30:32 -08:00
Christopher Jeffrey
07a1322749 inspect methods. better data parsing. expose modules. 2015-12-22 19:27:36 -08:00
Christopher Jeffrey
b522aa2b06 handle merkleblock vs block better. 2015-12-22 15:03:17 -08:00
Christopher Jeffrey
1c8604477f improve script type tests. improve input/output data. 2015-12-22 14:50:07 -08:00
Christopher Jeffrey
b16a86b2d4 fix typo. 2015-12-22 06:50:09 -08:00
Christopher Jeffrey
d3e4dfaf5c fix some getters. move getInputData and getOutputData. wallet.toAddress. 2015-12-22 06:21:01 -08:00
Christopher Jeffrey
a17fe6fe5f use dynamic input and output objects. 2015-12-22 05:00:55 -08:00
Christopher Jeffrey
a91f245e86 add types to data. aliases for utils. 2015-12-22 04:03:15 -08:00
Christopher Jeffrey
eb6a9fc20d make data easier to extract from inputs and outputs. 2015-12-22 03:22:49 -08:00
Christopher Jeffrey
a6e3024e9b peer address and port. 2015-12-22 03:19:27 -08:00
Christopher Jeffrey
68c16b214a add rblock and rhash helpers. 2015-12-22 02:15:33 -08:00
Christopher Jeffrey
52b653083c add features potentially useful for blockchain explorers. 2015-12-21 20:00:13 -08:00
Christopher Jeffrey
a7ea69f48a improve utils: primarily toBTC and fromBTC. 2015-12-21 15:20:01 -08:00
Christopher Jeffrey
500f079632 fix script arithmetic, op_verify, and wallet.fillUnspent. 2015-12-21 11:26:13 -08:00
Christopher Jeffrey
d28716c98d use regular addresses for wallet prefix. 2015-12-20 19:35:56 -08:00
Christopher Jeffrey
87d4d4b0ad refactor script and wallet. better redeem script error. 2015-12-20 16:08:00 -08:00
Christopher Jeffrey
c0d0423f14 hd/wallet: minor. 2015-12-20 13:29:39 -08:00
Christopher Jeffrey
b900d706c0 move varint and readIntv to utils. 2015-12-20 02:01:19 -08:00
Christopher Jeffrey
f25d69f30f put user agent in constants. 2015-12-20 01:57:47 -08:00
Christopher Jeffrey
93e42e90a1 drop old fee and dust constants. style. 2015-12-20 01:50:18 -08:00
Christopher Jeffrey
a50ee3e0ba remove wallet.getPublicKeys(). 2015-12-20 01:45:17 -08:00
Christopher Jeffrey
1db84a0528 wallet json and prefix. style. cleanup. 2015-12-20 01:43:09 -08:00
Christopher Jeffrey
61699cca3a style: function names. 2015-12-19 15:43:28 -08:00
Christopher Jeffrey
0aff6d7cfe improve script.isValidSig. 2015-12-19 15:26:26 -08:00
Christopher Jeffrey
2e7892c798 use keyPair() in script.verify. whitespace. 2015-12-19 15:24:19 -08:00
Christopher Jeffrey
a18a501c37 refactor hd keys. 2015-12-19 15:14:56 -08:00
Christopher Jeffrey
b20bcf701b fix private key encryption. style changes. 2015-12-19 14:00:23 -08:00
Christopher Jeffrey
75afb6d953 fix utils.toBTC 2015-12-19 02:57:01 -08:00
Christopher Jeffrey
cb2bcc21c6 prevent buffered _writes from binding thousands of events. 2015-12-19 02:52:51 -08:00
Christopher Jeffrey
a96f27682f style. fix addr timestamp. 2015-12-19 02:17:01 -08:00
Christopher Jeffrey
d3811acc28 move chain.on("fork") somewhere sane. 2015-12-19 02:08:42 -08:00
Christopher Jeffrey
1a6633bade style consistency - again. 2015-12-19 02:05:46 -08:00
Christopher Jeffrey
6411ec8914 fix p2sh multisig verification. 2015-12-19 01:43:34 -08:00
Christopher Jeffrey
7cae4c4eb5 remove uint8array check for now. minor style. 2015-12-18 22:57:39 -08:00
Christopher Jeffrey
8746248c2c addr packet parsing. 2015-12-18 22:55:06 -08:00
Christopher Jeffrey
1e802c152f comments. more style consistency. 2015-12-18 22:53:31 -08:00
Christopher Jeffrey
5ece45091b style consistency. 2015-12-18 22:37:02 -08:00
Christopher Jeffrey
9fe8afa7d3 emit orphan event. 2015-12-18 20:33:19 -08:00
Christopher Jeffrey
283157dd71 add allowEval option. 2015-12-18 17:56:06 -08:00
Christopher Jeffrey
0bd4d798a9 fix locator hashes by height. 2015-12-18 17:38:59 -08:00
Christopher Jeffrey
7cabdcfda5 fix getOrphanRoot and usage. 2015-12-18 17:31:45 -08:00
Christopher Jeffrey
d1f8e9b5ff add chain.hasOrphan method. 2015-12-18 16:58:26 -08:00
Christopher Jeffrey
e735249d0d try to choose from at least 5 potential peers when syncing. 2015-12-18 16:52:32 -08:00
Christopher Jeffrey
086b32cb73 minor: initialize syncPeer. 2015-12-18 16:39:29 -08:00
Christopher Jeffrey
cf502913b6 check to see if chain is synced. 2015-12-18 16:35:00 -08:00
Christopher Jeffrey
34e90c6baa handle chain forks from checkpoints. enforce one syncPeer. 2015-12-18 16:30:58 -08:00
Christopher Jeffrey
4984c306b9 minor: function name. 2015-12-18 15:44:15 -08:00
Christopher Jeffrey
6ae273f84d tx.verify: compare top stack item against zero instead of one. 2015-12-18 15:43:17 -08:00
Christopher Jeffrey
5942209f41 pass size into block and tx for maxsize checks. 2015-12-18 15:41:34 -08:00
Christopher Jeffrey
7ffcc8e7f3 check for syncPeer on blockchain fork. 2015-12-18 13:12:04 -08:00
Christopher Jeffrey
91618258e7 add a peers.bad list for peers with forked blockchains. 2015-12-18 13:10:27 -08:00
Christopher Jeffrey
5791672c07 pass _network to tx. script debugging. tx filled total. 2015-12-18 13:01:23 -08:00
Christopher Jeffrey
82983af52b pool wallets. chain errors. checkpoint failure. 2015-12-18 12:10:39 -08:00
Christopher Jeffrey
d109eaba6c handle reject packet. 2015-12-17 19:47:20 -08:00
Christopher Jeffrey
135208910d always set nSequence to zero when nLockTime is present. 2015-12-17 18:33:27 -08:00
Christopher Jeffrey
1e0a153b59 do not overwrite lockTime input by user. 2015-12-17 17:58:09 -08:00
Christopher Jeffrey
7f70b573c1 enforce checklocktimeverify for nLockTime when adding input. tx.prevOut method. 2015-12-17 17:56:46 -08:00
Christopher Jeffrey
aac4911b4e remove comments for pushdata issue. 2015-12-17 17:39:08 -08:00
Christopher Jeffrey
f89908bb65 script formatting 2015-12-17 17:37:13 -08:00
Christopher Jeffrey
3e747f0df4 comment 2015-12-17 17:33:02 -08:00
Christopher Jeffrey
5b68ec0b3e add option for colored coin output creation. 2015-12-17 17:31:37 -08:00
Christopher Jeffrey
efe1181bc1 move key sorting to utils. 2015-12-17 17:23:33 -08:00
Christopher Jeffrey
b74e8de067 input tests. function names. getInputKey/getOutputKey. 2015-12-17 17:14:41 -08:00
Christopher Jeffrey
6abfc10a28 improve input checks with keys/hashes/redeemscript. 2015-12-17 16:53:35 -08:00
Christopher Jeffrey
6caa6b91dd add spendable checking for checklocktimeverify. 2015-12-17 16:06:08 -08:00
Christopher Jeffrey
5e89aedf0b improve input testing. 2015-12-17 16:06:08 -08:00
Christopher Jeffrey
0c8168c697 rename colored coin check. all input script tests. 2015-12-17 16:06:08 -08:00
Christopher Jeffrey
3e608c2cc6 script and standard transaction types. prefixes. 2015-12-17 16:06:08 -08:00
Christopher Jeffrey
07a6788831 optimize block and tx rendering. script maxes. sync. 2015-12-17 16:06:08 -08:00
Christopher Jeffrey
88ddb3620c get blockchain sync working. fix pushdata ops. 2015-12-17 16:05:48 -08:00
Christopher Jeffrey
5e5507f668 optimize checkmultisig. 2015-12-15 01:48:21 -08:00
Christopher Jeffrey
c44ea0090f implement sighash_single bug. 2015-12-15 01:41:44 -08:00
Christopher Jeffrey
1b07d6e906 minor cleanup. 2015-12-15 01:23:49 -08:00
Christopher Jeffrey
c68ab4ee7d implement all sighash types. add hasUnspent(). 2015-12-15 01:22:24 -08:00