Commit Graph

1340 Commits

Author SHA1 Message Date
Christopher Jeffrey
e96e09493d
comments. 2016-04-17 03:32:52 -07:00
Christopher Jeffrey
c8ba1aaa51
improve spv. fix preloading. 2016-04-17 03:19:10 -07:00
Christopher Jeffrey
45115995f6
verify partial merkle tree lazily. 2016-04-17 03:06:25 -07:00
Christopher Jeffrey
1c7d3082dc
types. do not mark compactblocks as valid. 2016-04-17 02:53:02 -07:00
Christopher Jeffrey
45ac59330e
docs. 2016-04-16 21:21:52 -07:00
Christopher Jeffrey
81e978f51a
fix docs. 2016-04-16 21:11:33 -07:00
Christopher Jeffrey
3f56375ad7
rename some files. 2016-04-16 20:59:32 -07:00
Christopher Jeffrey
5909b813cc
mark reorganized invalid blocks as invalid. 2016-04-16 20:53:47 -07:00
Christopher Jeffrey
1c1c34e6a4
refactor prune. 2016-04-16 20:49:00 -07:00
Christopher Jeffrey
a484d290d2
remove asserts. 2016-04-16 20:22:54 -07:00
Christopher Jeffrey
d9761fbe16
fix loop. 2016-04-16 20:19:36 -07:00
Christopher Jeffrey
9fd3bbb827
improve coin selection. 2016-04-16 20:04:38 -07:00
Christopher Jeffrey
0f6c19bcd5
major refactor. 2016-04-16 20:03:00 -07:00
Christopher Jeffrey
0d7d8073a2
refactor. 2016-04-16 05:56:38 -07:00
Christopher Jeffrey
0d75c8a621
validate sidechain's inputs after a reorg instead of before. 2016-04-16 01:38:07 -07:00
Christopher Jeffrey
8efef35828
minor. 2016-04-15 16:24:33 -07:00
Christopher Jeffrey
fbc8af9d94
fix docs. 2016-04-15 08:01:03 -07:00
Christopher Jeffrey
cb27964b3b
fix profiler. 2016-04-15 07:54:29 -07:00
Christopher Jeffrey
26b3d92acf
docs fixes. 2016-04-15 07:50:08 -07:00
Christopher Jeffrey
67f35296b2
docs fixes. 2016-04-15 07:32:44 -07:00
Christopher Jeffrey
72e907f81e
more fixes. cleanup. 2016-04-15 06:44:38 -07:00
Christopher Jeffrey
e3595906c9
no one can say i didn't write docs now. 2016-04-15 06:43:44 -07:00
Christopher Jeffrey
d93be7b3d7
walletdb args. 2016-04-09 04:53:41 -07:00
Christopher Jeffrey
2d83ce9579
wallet fixes. 2016-04-09 04:21:41 -07:00
Christopher Jeffrey
800d17278e
sort txs. 2016-04-09 03:56:36 -07:00
Christopher Jeffrey
096f71ba1a
cleanup. 2016-04-09 03:48:28 -07:00
Christopher Jeffrey
c33a88fb9e
more accurate sigop counting. 2016-04-09 03:36:29 -07:00
Christopher Jeffrey
9e0aa7acbb
minor. 2016-04-09 01:19:32 -07:00
Christopher Jeffrey
646b3c3028
improve block.getVirtualSize. 2016-04-09 00:55:22 -07:00
Christopher Jeffrey
044d54e12e
add total balance. 2016-04-08 18:15:50 -07:00
Christopher Jeffrey
2a47abd98a
have node.sendTX add to mempool. 2016-04-08 18:03:17 -07:00
Christopher Jeffrey
a166450335
sync on confirmations. 2016-04-08 17:58:59 -07:00
Christopher Jeffrey
94f7bf000b
http: add to mempool and broadcast. 2016-04-08 17:50:47 -07:00
Christopher Jeffrey
5a24103f62
disable avoid fee sniping for now. 2016-04-08 16:37:04 -07:00
Christopher Jeffrey
8b156d246e
fixes. 2016-04-08 16:33:15 -07:00
Christopher Jeffrey
d70ec29f4a
fix typo. 2016-04-08 16:09:50 -07:00
Christopher Jeffrey
9e830c4666
hack: temporarily disable socketio. 2016-04-08 16:04:43 -07:00
Christopher Jeffrey
407782122c
fix getInputType. 2016-04-08 15:32:28 -07:00
Christopher Jeffrey
21cae4224c
block size. 2016-04-08 15:26:41 -07:00
Christopher Jeffrey
34341e8b50
fixes. up pending limit. 2016-04-08 15:20:00 -07:00
Christopher Jeffrey
9a0af8a591
use leveldown staging. 2016-04-08 14:55:54 -07:00
Christopher Jeffrey
7c725c40aa
minor. 2016-04-08 14:42:09 -07:00
Christopher Jeffrey
61ea825ffe
move lowlevelup.js. 2016-04-07 22:00:59 -07:00
Christopher Jeffrey
d1d92b9b64
locker. options. 2016-04-07 14:30:52 -07:00
Christopher Jeffrey
1898b38c49
db option. 2016-04-07 03:03:28 -07:00
Christopher Jeffrey
a3720bd42d
more accurate segwit4 verification. misc. 2016-04-07 02:03:38 -07:00
Christopher Jeffrey
0a7f118528
add environment. 2016-04-06 18:55:55 -07:00
Christopher Jeffrey
5830cc044b
cleanup. 2016-04-06 14:21:57 -07:00
Christopher Jeffrey
12860920ea
readme. 2016-04-06 05:01:41 -07:00
Christopher Jeffrey
40cabd37fc
miner. 2016-04-05 18:49:20 -07:00
Christopher Jeffrey
9356a40e62 refactor. 2016-04-05 16:23:57 -07:00
Christopher Jeffrey
1afb9dbc27 minor. 2016-04-05 05:04:54 -07:00
Christopher Jeffrey
141dbcb65e cleanup 2016-04-05 02:58:53 -07:00
Christopher Jeffrey
86312d9241 more refactoring. 2016-04-04 23:53:05 -07:00
Christopher Jeffrey
d423e33e03 getutxos. arg parsing. 2016-04-04 20:29:46 -07:00
Christopher Jeffrey
4b20a87b4f db refactoring. 2016-04-04 18:57:34 -07:00
Christopher Jeffrey
849f1d842e more refactoring. 2016-04-04 17:37:53 -07:00
Christopher Jeffrey
6062f1ce94 more refactoring. 2016-04-04 16:39:02 -07:00
Christopher Jeffrey
a8a506aae0 more refacting. 2016-04-04 16:08:37 -07:00
Christopher Jeffrey
e22d0c56b0 read hashes as hex. 2016-04-04 15:26:00 -07:00
Christopher Jeffrey
9e61d0ee86 refactor. 2016-04-04 14:07:16 -07:00
Christopher Jeffrey
79aa613662 refactor. 2016-04-04 02:53:55 -07:00
Christopher Jeffrey
c874b9f2af fail on large invs. 2016-04-04 00:23:45 -07:00
Christopher Jeffrey
8e06d737a4 fix miner. 2016-04-04 00:18:18 -07:00
Christopher Jeffrey
7b3b0695c3 serve merkleblocks. 2016-04-03 23:44:39 -07:00
Christopher Jeffrey
c5bcd44606 miner. network. serve blocks and mempool txs. 2016-04-03 21:43:50 -07:00
Christopher Jeffrey
8124b4de44 bst options. 2016-04-03 06:37:20 -07:00
Christopher Jeffrey
3f0ac32334 add connect method. 2016-04-03 06:11:30 -07:00
Christopher Jeffrey
ecaec7b5d9 fix script.array. 2016-04-03 05:47:06 -07:00
Christopher Jeffrey
f3b8b4cd80 fix createCommitment. 2016-04-03 05:23:30 -07:00
Christopher Jeffrey
1e0b585f10 do not allow coinbases in mempool on reorgs. 2016-04-03 05:11:38 -07:00
Christopher Jeffrey
fd6b315756 refactor. miner fixes. 2016-04-03 04:48:02 -07:00
Christopher Jeffrey
24060f04bb fix and improve miner. 2016-04-03 04:11:26 -07:00
Christopher Jeffrey
b26961d68a prevent infinite loop on circular references. 2016-04-03 03:32:27 -07:00
Christopher Jeffrey
c3e45a2a53 fix for locker. 2016-04-03 03:22:04 -07:00
Christopher Jeffrey
f45f3b1380 do not preload before chaindb is open. 2016-04-03 03:18:51 -07:00
Christopher Jeffrey
ad7ef10343 fix implicit global var in bst. 2016-04-03 03:05:08 -07:00
Christopher Jeffrey
2163e3965e minor. 2016-04-03 03:03:13 -07:00
Christopher Jeffrey
d329d6e92f add batch.clear to bst. 2016-04-03 03:02:19 -07:00
Christopher Jeffrey
32e94429d3 fix getLocks and wallet zapping. 2016-04-03 02:13:36 -07:00
Christopher Jeffrey
187137262e spvnode. readme. 2016-04-03 01:34:30 -07:00
Christopher Jeffrey
d87e301986 mempool. 2016-04-03 00:15:02 -07:00
Christopher Jeffrey
9b4f00ccfe rename mempool. 2016-04-02 23:12:41 -07:00
Christopher Jeffrey
0e831555b2 remove sync mempool. 2016-04-02 23:12:13 -07:00
Christopher Jeffrey
a58b566c69 switch back to leveldown mempool. 2016-04-02 23:12:01 -07:00
Christopher Jeffrey
eda31da3ea add a bst for mempool. 2016-04-02 21:23:54 -07:00
Christopher Jeffrey
ec5175ec9e minor. 2016-04-02 14:27:11 -07:00
Christopher Jeffrey
fca8778d35 minor. 2016-04-02 04:32:45 -07:00
Christopher Jeffrey
47160c1cfe parsing and serialization. 2016-04-02 04:12:50 -07:00
Christopher Jeffrey
8289544b81 fixes. 2016-04-01 22:12:05 -07:00
Christopher Jeffrey
4f03675b9f remotely add and remove keys. 2016-04-01 22:01:13 -07:00
Christopher Jeffrey
73832de55f bloom refactor. 2016-04-01 21:25:48 -07:00
Christopher Jeffrey
c9bdad9bdf hd rewrite. 2016-04-01 21:19:46 -07:00
Christopher Jeffrey
2dede909c3 hd. bcoin-cli. 2016-04-01 19:02:08 -07:00
Christopher Jeffrey
c030d2480d more http. 2016-04-01 17:02:14 -07:00
Christopher Jeffrey
d83a68523e http. 2016-04-01 15:34:40 -07:00
Christopher Jeffrey
90aa2d81a6 more base58. 2016-04-01 14:40:56 -07:00
Christopher Jeffrey
4af5ba2574 base58: minor. 2016-04-01 14:35:29 -07:00
Christopher Jeffrey
f3b7aee6fe throw error on bad base58. 2016-04-01 07:06:35 -07:00
Christopher Jeffrey
bbf7748fbe drop old base58 functions. 2016-04-01 06:36:55 -07:00
Christopher Jeffrey
e17e36d1a0 clean up base58. 2016-04-01 06:03:56 -07:00
Christopher Jeffrey
42e12f312f faster base58. 2016-04-01 05:13:47 -07:00
Christopher Jeffrey
9e0adcfec1 http. 2016-04-01 04:05:54 -07:00
Christopher Jeffrey
03589f1df1 fix countAncestors and fix fork warning. 2016-04-01 01:37:52 -07:00
Christopher Jeffrey
4d30c9428a fix binary index. 2016-04-01 01:12:22 -07:00
Christopher Jeffrey
3dddfcf7ea more mempool work. 2016-04-01 00:57:26 -07:00
Christopher Jeffrey
39417424a2 refactor. 2016-03-31 23:18:57 -07:00
Christopher Jeffrey
74b9b68f4c minor. 2016-03-31 22:02:58 -07:00
Christopher Jeffrey
bba77b4150 more mempool work. 2016-03-31 22:00:00 -07:00
Christopher Jeffrey
703a89cc59 more mempool work. 2016-03-31 20:39:47 -07:00
Christopher Jeffrey
46bbde9af7 mempool work. 2016-03-31 20:25:25 -07:00
Christopher Jeffrey
c30d19d3e0 in memory mempool. 2016-03-31 19:24:54 -07:00
Christopher Jeffrey
819c63b9b7 expose zapping. 2016-03-31 16:32:09 -07:00
Christopher Jeffrey
8346cccbcb balance. http. 2016-03-31 16:17:10 -07:00
Christopher Jeffrey
b0e6826232 txdb. 2016-03-31 14:36:39 -07:00
Christopher Jeffrey
3031c4cd5c no changeindex. 2016-03-31 07:06:28 -07:00
Christopher Jeffrey
4f86c86312 changeIndex in extended format. 2016-03-31 07:04:31 -07:00
Christopher Jeffrey
bb34a80f9d fix tx.toExtended. 2016-03-31 07:03:34 -07:00
Christopher Jeffrey
dda07e8eab minor. 2016-03-31 06:56:49 -07:00
Christopher Jeffrey
018ce13815 even more size calculation. 2016-03-31 06:45:53 -07:00
Christopher Jeffrey
6c69914da5 better maxSize calculation. 2016-03-31 05:46:31 -07:00
Christopher Jeffrey
3242f39972 more fill errors. refactor. 2016-03-31 05:29:09 -07:00
Christopher Jeffrey
f7bdcfdfb2 clone mtx properly. 2016-03-31 05:24:10 -07:00
Christopher Jeffrey
5cab304a59 more coin selection. 2016-03-31 05:14:54 -07:00
Christopher Jeffrey
e907f35267 coin selection. 2016-03-31 04:56:16 -07:00
Christopher Jeffrey
399052d95a fee calculation. 2016-03-31 04:47:41 -07:00
Christopher Jeffrey
af4e9921b9 priority calculation. 2016-03-31 04:29:48 -07:00
Christopher Jeffrey
fec9f2e308 verify pubkey. 2016-03-31 03:55:47 -07:00
Christopher Jeffrey
fb370eda1c mempool. fix sigop counting. 2016-03-31 03:38:28 -07:00
Christopher Jeffrey
a110ddab27 script json. 2016-03-31 02:55:19 -07:00
Christopher Jeffrey
d158918a14 script parsing. 2016-03-31 02:44:59 -07:00
Christopher Jeffrey
b084913680 refactor. script encoding checks. 2016-03-31 02:31:09 -07:00
Christopher Jeffrey
2b5c1369da refactor. strict isscripthash. 2016-03-31 02:08:11 -07:00
Christopher Jeffrey
7b1af73c46 address parsing. 2016-03-31 01:54:07 -07:00
Christopher Jeffrey
82ee87c0f5 refactor. 2016-03-31 01:04:30 -07:00
Christopher Jeffrey
1dc15922f6 segwit mining. 2016-03-31 00:30:46 -07:00
Christopher Jeffrey
b1d53adb6a locks. reject. 2016-03-30 22:47:31 -07:00
Christopher Jeffrey
17d2f1586b refactor. 2016-03-30 19:52:32 -07:00
Christopher Jeffrey
f62ceb8515 segnet4 2016-03-30 19:15:30 -07:00
Christopher Jeffrey
9b4e363a80 more chain refactoring. 2016-03-30 17:32:39 -07:00
Christopher Jeffrey
4d2d9b328c verify error refactor. 2016-03-30 16:21:56 -07:00
Christopher Jeffrey
945c2f9564 more standardness. 2016-03-30 14:43:06 -07:00
Christopher Jeffrey
0720c6c64a accurate hasStandardInputs. 2016-03-30 14:22:02 -07:00
Christopher Jeffrey
ae2a5fb702 chain.add: minor. 2016-03-30 05:17:10 -07:00
Christopher Jeffrey
9f88173881 chain refactoring. 2016-03-30 04:50:29 -07:00
Christopher Jeffrey
b352bfbe3d handle forks better. 2016-03-30 04:15:33 -07:00
Christopher Jeffrey
d2767e4e34 refactoring. 2016-03-30 04:13:26 -07:00
Christopher Jeffrey
359cef93a0 refactor. framer sizes. 2016-03-29 20:47:21 -07:00
Christopher Jeffrey
498944781e remove datastore and tx-pool.js 2016-03-29 19:31:26 -07:00
Christopher Jeffrey
6655e57053 refactor maps. 2016-03-29 19:20:10 -07:00
Christopher Jeffrey
126fb72644 fixes. refactor. 2016-03-29 18:08:33 -07:00
Christopher Jeffrey
dffff280f7 api 2016-03-29 17:54:54 -07:00
Christopher Jeffrey
86efd59261 fixes. 2016-03-29 17:47:12 -07:00
Christopher Jeffrey
5dc7030ac4 broadcast witness txs correctly. 2016-03-29 16:19:33 -07:00
Christopher Jeffrey
00e7fcc1ad script parsing. 2016-03-29 15:21:48 -07:00
Christopher Jeffrey
caf52c0579 refactor. close methods. 2016-03-29 13:25:03 -07:00
Christopher Jeffrey
3d6892cbe9 mempool. constants. 2016-03-29 00:43:05 -07:00
Christopher Jeffrey
ea4d0dee03 opcodes. 2016-03-28 19:45:22 -07:00
Christopher Jeffrey
484db3568a add getSmall. 2016-03-28 18:37:38 -07:00
Christopher Jeffrey
93660e829a mem usage. 2016-03-28 17:54:56 -07:00
Christopher Jeffrey
a598a4850c no strings in scripting. 2016-03-28 16:50:59 -07:00
Christopher Jeffrey
2c9756f38b txdb orphan storage. 2016-03-28 15:45:47 -07:00
Christopher Jeffrey
2e0948faa5 network.height. 2016-03-28 15:26:02 -07:00
Christopher Jeffrey
46a47b5bf2 miner needs some love. 2016-03-28 14:05:16 -07:00
Christopher Jeffrey
af6ac736bf consistent naming. 2016-03-28 13:22:31 -07:00
Christopher Jeffrey
96a92ae29b witness parsing. 2016-03-28 12:29:00 -07:00
Christopher Jeffrey
aff7c0e360 check sequence locks in mempool. 2016-03-28 03:18:44 -07:00
Christopher Jeffrey
e89ed67843 script errors. 2016-03-27 19:18:39 -07:00
Christopher Jeffrey
e9c0e24b21 more parsing. 2016-03-27 18:52:26 -07:00
Christopher Jeffrey
30148368a8 parsing. 64 bit ints. 2016-03-27 14:56:57 -07:00
Christopher Jeffrey
e1fd556ff6 misc. alert. 2016-03-27 13:57:35 -07:00
Christopher Jeffrey
85af68d2ef use native buffer methods if possible. 2016-03-26 06:11:58 -07:00
Christopher Jeffrey
661bd06e3e http. 2016-03-26 05:33:07 -07:00
Christopher Jeffrey
19f2af16d4 script: pushdata. 2016-03-26 05:27:05 -07:00
Christopher Jeffrey
430e917b79 mempool. 2016-03-26 05:11:37 -07:00
Christopher Jeffrey
5912d65fa8 fix mempool.countAncestors. 2016-03-26 05:06:07 -07:00
Christopher Jeffrey
55957c2271 refactor. test for segwitActive. 2016-03-26 05:01:23 -07:00
Christopher Jeffrey
63421ec411 only asign hidden values for nonstandard pushes. 2016-03-26 04:21:01 -07:00
Christopher Jeffrey
e5c353f083 script hashes. 2016-03-26 03:57:56 -07:00
Christopher Jeffrey
6194c66d8f mempool work. accurate reject messages. 2016-03-26 03:37:06 -07:00
Christopher Jeffrey
37c488c802 txdb and mempool work. 2016-03-26 01:29:04 -07:00
Christopher Jeffrey
e205c70f97 mempool. txdb. 2016-03-25 20:02:23 -07:00
Christopher Jeffrey
a52d62a71e varint. 2016-03-25 16:32:15 -07:00
Christopher Jeffrey
adb95e2a3a buffer reader. 2016-03-25 15:48:44 -07:00
Christopher Jeffrey
62a7dba556 rename intv. 2016-03-25 15:31:43 -07:00
Christopher Jeffrey
569016e752 refactor. numbers. 2016-03-25 15:17:43 -07:00
Christopher Jeffrey
6c238c844f refactor. coin/utxo. 2016-03-25 13:00:11 -07:00
Christopher Jeffrey
c91cf7571b refactor. 2016-03-25 02:07:47 -07:00
Christopher Jeffrey
513fe6b196 ldb 2016-03-24 19:17:47 -07:00
Christopher Jeffrey
2a75a39849 writeu64n 2016-03-24 17:20:18 -07:00
Christopher Jeffrey
6ce950d081 duck typing. 2016-03-24 14:18:24 -07:00
Christopher Jeffrey
1db0954c83 misc. 2016-03-24 03:45:00 -07:00
Christopher Jeffrey
b4b4e8b6cc reject packets. 2016-03-23 19:03:50 -07:00
Christopher Jeffrey
81be92b1ba remove old getSeed. 2016-03-23 18:51:47 -07:00
Christopher Jeffrey
cc7004e43a peer handling. 2016-03-23 18:49:51 -07:00
Christopher Jeffrey
cf9a62a75b coins and coinview. 2016-03-23 17:44:28 -07:00
Christopher Jeffrey
6d5e277629 reject packets. pool refactor. 2016-03-23 15:46:07 -07:00
Christopher Jeffrey
5023c7efe4 add locker. refactor. 2016-03-23 03:52:11 -07:00
Christopher Jeffrey
3efdc904e7 refactor. tests. 2016-03-22 19:52:33 -07:00
Christopher Jeffrey
0b1b6fdb33 remove old parser. 2016-03-22 19:28:36 -07:00