Commit Graph

1398 Commits

Author SHA1 Message Date
Christopher Jeffrey
11ef30b942
refactor and comments/explanation. 2016-04-20 13:08:42 -07:00
Christopher Jeffrey
1168f55cef
put isBadPush in execute. 2016-04-20 09:23:39 -07:00
Christopher Jeffrey
1d8a86838d
new way of handling script parsing. 2016-04-20 09:17:58 -07:00
Christopher Jeffrey
91acf2a607
new script decoder. 2016-04-20 09:01:10 -07:00
Christopher Jeffrey
fcf5af802e
update isStandardProgram. 2016-04-20 04:20:25 -07:00
Christopher Jeffrey
6dd5b936ef
minor. 2016-04-20 03:53:11 -07:00
Christopher Jeffrey
50cc693ae8
minor. 2016-04-20 03:51:43 -07:00
Christopher Jeffrey
7301cf044e
increment total block count on alternate chains. 2016-04-20 03:42:49 -07:00
Christopher Jeffrey
c572e61bbb
drop purgePending call. 2016-04-20 03:39:34 -07:00
Christopher Jeffrey
9cd2e5438b
add alert tests. 2016-04-20 03:01:05 -07:00
Christopher Jeffrey
bddf3f6909
add "slow height". 2016-04-20 01:29:16 -07:00
Christopher Jeffrey
1e0394cc0b
another tx test. minor. 2016-04-20 01:08:13 -07:00
Christopher Jeffrey
50ab39aafb
more errors for scripting system. 2016-04-19 22:57:25 -07:00
Christopher Jeffrey
ce0c6f4fc7
accurate scripting error messages. 2016-04-19 21:43:40 -07:00
Christopher Jeffrey
4d7124830a
mempool requireStandard defaults and miner block version. 2016-04-19 21:07:53 -07:00
Christopher Jeffrey
c95681ae3f
add date and time functions. 2016-04-19 20:42:46 -07:00
Christopher Jeffrey
64813d3de1
fix ec verification for high s values on non-historical data. 2016-04-19 20:10:22 -07:00
Christopher Jeffrey
4456e468af
misc fixes. tx.toExtended. 2016-04-19 19:54:34 -07:00
Christopher Jeffrey
4cfc0daaad
use adjusted time for mining. 2016-04-19 12:14:43 -07:00
Christopher Jeffrey
6d7e81080e
refactor tests. 2016-04-19 12:00:27 -07:00
Christopher Jeffrey
0cfbaf91b5
fixes. 2016-04-19 11:54:46 -07:00
Christopher Jeffrey
ed6b1e9072
rename methods. 2016-04-19 11:50:56 -07:00
Christopher Jeffrey
63a9c44762
asserts. consistency. 2016-04-19 11:39:55 -07:00
Christopher Jeffrey
99d8f4d928
more hd refactoring. 2016-04-19 10:49:08 -07:00
Christopher Jeffrey
c8e771d05b
refactor hd. 2016-04-19 10:39:15 -07:00
Christopher Jeffrey
608fb8777e
do not handle negative zero for twos compliment. 2016-04-19 08:41:24 -07:00
Christopher Jeffrey
1e7e9a2aa7
handle negative outputs. serialize int64 correctly. 2016-04-19 07:36:05 -07:00
Christopher Jeffrey
5bf0824000
minor. 2016-04-19 06:19:51 -07:00
Christopher Jeffrey
ed5cee5ce7
rename adjusted time. 2016-04-19 06:11:13 -07:00
Christopher Jeffrey
a14299bdad
move adjusted time around. 2016-04-19 06:08:40 -07:00
Christopher Jeffrey
42ede54e94
fix adjusted time offset. 2016-04-19 05:53:06 -07:00
Christopher Jeffrey
8b3db92bbf
add limit for adjusted time. 2016-04-19 05:49:05 -07:00
Christopher Jeffrey
b9369412d2
implement GetAdjustedTime. 2016-04-19 05:47:47 -07:00
Christopher Jeffrey
53fb6dc8d5
some consensus stuff. 2016-04-19 03:05:42 -07:00
Christopher Jeffrey
81d2e1b700
passing bitcoind tx tests. 2016-04-19 03:05:35 -07:00
Christopher Jeffrey
59704b63c7
get bitcoind script tests passing. 2016-04-19 01:30:16 -07:00
Christopher Jeffrey
397e1f7d0b
more accurate removeData. 2016-04-18 21:50:09 -07:00
Christopher Jeffrey
2775382691
more accurate multisig. misc fixes. 2016-04-18 19:55:24 -07:00
Christopher Jeffrey
949f8684b0
fixes. 2016-04-18 17:33:03 -07:00
Christopher Jeffrey
f8d49f0653
more utils cleanup. 2016-04-18 01:11:02 -07:00
Christopher Jeffrey
69ddca52a8
clean up utils. 2016-04-18 00:36:03 -07:00
Christopher Jeffrey
a62d249d8e
do not kill loader if we have pending blocks. 2016-04-17 23:20:25 -07:00
Christopher Jeffrey
1ea23577e4
server. one hash. 2016-04-17 22:26:11 -07:00
Christopher Jeffrey
6fc3c15c77
minimaldata. 2016-04-17 21:16:44 -07:00
Christopher Jeffrey
ec5c548fe1
fix coinbase height. 2016-04-17 21:11:52 -07:00
Christopher Jeffrey
f4c991ab77
mutable scripts. 2016-04-17 21:02:43 -07:00
Christopher Jeffrey
a4f0807c50
strict scripting. 2016-04-17 19:34:03 -07:00
Christopher Jeffrey
ea7fb8f476
minor refactor. 2016-04-17 16:32:12 -07:00
Christopher Jeffrey
cdddf06458
drop legacy IBD check. 2016-04-17 16:06:23 -07:00
Christopher Jeffrey
87d985fcdb
constants. network. docs. 2016-04-17 15:58:12 -07:00
Christopher Jeffrey
0cbc9b7338
constants. 2016-04-17 15:09:24 -07:00
Christopher Jeffrey
dee60da2e2
chain accuracy. 2016-04-17 14:46:40 -07:00
Christopher Jeffrey
d5bfb124cf
bloom filter. network. 2016-04-17 13:30:32 -07:00
Christopher Jeffrey
f3c2134dfa
deployments. 2016-04-17 12:09:30 -07:00
Christopher Jeffrey
69436cfd16
refactor network. 2016-04-17 10:41:48 -07:00
Christopher Jeffrey
4960e48b48
disabled opcodes fixes. 2016-04-17 08:45:37 -07:00
Christopher Jeffrey
0a621238ba
refactor: rename constants. 2016-04-17 08:45:22 -07:00
Christopher Jeffrey
ad11d33038
more accurate script interpretation. 2016-04-17 06:39:31 -07:00
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