Commit Graph

567 Commits

Author SHA1 Message Date
Christopher Jeffrey
8146fb28f0
test: use better asserts. 2017-08-09 15:38:33 -07:00
Christopher Jeffrey
853ef18ad9
lint: fix some linting errors. 2017-08-09 15:32:46 -07:00
Christopher Jeffrey
2cf45c84cf
test: refactor a number of tests. 2017-08-09 15:28:03 -07:00
Christopher Jeffrey
36523e2f56
tx: do not track flags byte. 2017-08-07 00:55:26 -07:00
Christopher Jeffrey
a290e6880d
encoding: rename read int methods to readIx. 2017-08-06 03:27:06 -07:00
Christopher Jeffrey
faabd36f9e
config/validator/utils: fix fixed parsing/serialization. 2017-08-05 18:52:24 -07:00
Christopher Jeffrey
1b8115d03f
test: fixes for compact block tests. 2017-08-02 15:21:15 -07:00
Christopher Jeffrey
a085214d54
test: refactor several tests. clean up test data. 2017-08-02 00:19:08 -07:00
Christopher Jeffrey
860e51e390
test: refactor and clean up a few tests. 2017-08-01 15:17:17 -07:00
Christopher Jeffrey
e38da91065
lint: no extra parens around !await. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
6ba8eb9951
eslint: more style rules. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
5e73e51177
lint: fix function names. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
55cf07a871
refactor: style for const/let and returns. 2017-07-31 18:21:02 -07:00
Christopher Jeffrey
6f3988e861
refactor: use const as much as possible. 2017-07-31 18:21:02 -07:00
Christopher Jeffrey
9cc5c393b4
eslint: use prefer-const. 2017-07-31 18:21:02 -07:00
Christopher Jeffrey
d57dac13e0
coins: refactor method names. add isUnspent. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
0805babec1
coins: get rid of return value polymorphism. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
5602001348
coinview: fixes. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
492c05c378
coinview: refactor api. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
5a116923c5
test: block-test. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
deede064df
minor: lint. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
536497a204
test: update undocoins. 2017-07-31 18:20:47 -07:00
Christopher Jeffrey
345f0c90ac
coins: refactor. 2017-07-31 18:20:47 -07:00
Christopher Jeffrey
a1af3ab980
chaindb: switch to pertxout. 2017-07-31 18:20:47 -07:00
Christopher Jeffrey
9c87804b08
test: refactor walletdb usage. 2017-07-25 15:56:02 -07:00
Christopher Jeffrey
87d664784c
refactor: s/ts/time. s/ps/mtime. 2017-07-25 14:23:10 -07:00
Christopher Jeffrey
6f1f81dcbe
refactor: lint. 2017-07-25 11:21:43 -07:00
Christopher Jeffrey
7eefb773be
refactor: use maps and sets wherever possible. 2017-07-25 05:15:47 -07:00
Christopher Jeffrey
9219e23d8c
hd/wallet: add bip48 arg to prepare for bip48 support. see #238. 2017-07-23 07:22:53 -07:00
Christopher Jeffrey
37da047a34
digest: avoid extra allocations. 2017-07-17 14:26:43 -07:00
Christopher Jeffrey
2f51fd1c50
api: use satoshi values for everything. 2017-07-17 14:26:43 -07:00
Christopher Jeffrey
15ba37099e
test: enable workers for node. 2017-07-17 14:26:41 -07:00
Christopher Jeffrey
3f3516ca18
coinview: remove old serialization methods. 2017-07-17 14:26:39 -07:00
Christopher Jeffrey
296e65d0fd
refactor: use es6 template strings everywhere. 2017-07-17 14:26:39 -07:00
Christopher Jeffrey
10672784e5
refactor: rename tx functions. more es6 features. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
c53f4cf89e
refactor: switch to const/let. 2017-07-17 14:26:37 -07:00
Christopher Jeffrey
78d62c73b8
refactor: start using multiple return values. 2017-07-17 14:26:37 -07:00
Christopher Jeffrey
aa05bb5df7
refactor: use es6 maps for everything. 2017-07-17 14:26:37 -07:00
Christopher Jeffrey
9d9d8e2133
refactor: lint. 2017-06-28 02:32:00 -07:00
Christopher Jeffrey
82f67fa87f
test: improve bech32 test. 2017-06-28 02:29:34 -07:00
Christopher Jeffrey
be1ec1c22d
utils: refactor. 2017-06-27 09:28:37 -07:00
Christopher Jeffrey
d4cc22e1c5
refactor: crypto. 2017-06-27 07:27:53 -07:00
Christopher Jeffrey
fa3e98b274
crypto: rename ec to secp256k1. 2017-06-27 02:48:19 -07:00
Christopher Jeffrey
f70d6b8b45
refactor: lint tests, benchmarks, etc. 2017-06-24 14:35:10 -07:00
Christopher Jeffrey
2ef4d137e6
pkg: switch from jshint to eslint. 2017-06-24 04:45:46 -07:00
Christopher Jeffrey
84eccc29fa
refactor: switch to async/await. see #227. 2017-06-24 02:39:06 -07:00
Christopher Jeffrey
33ffb780b3
refactor: expose int64 and big numbers as modules. 2017-06-22 03:59:49 -07:00
Christopher Jeffrey
9058e7d78a
gcs: rename fromData. 2017-06-16 16:08:15 -07:00
Christopher Jeffrey
b994c278f2
utils: preliminary GCS filter support. 2017-06-16 14:35:50 -07:00
Christopher Jeffrey
015fb8b0b6
siphash: return objects instead of buffers. 2017-06-16 14:30:25 -07:00
Christopher Jeffrey (JJ)
dd16950fe2 Merge pull request #219 from jjz/master
Add tes new test file of key-address-test
2017-06-15 22:50:44 -07:00
Christopher Jeffrey
182784c8e0
utils: remove usage of isBrowser. some refactoring. 2017-06-15 22:28:06 -07:00
Christopher Jeffrey
a3c7a49c80
refactor: replace util.equal with Buffer#equals. 2017-06-12 03:00:08 -07:00
Christopher Jeffrey
28cd43045d
refactor: avoid using new Buffer() due to its new perf implications. 2017-05-30 21:11:10 -07:00
jjz
46edf8c591 1. add scripts of test single file
2. add  key-address-test.js
2017-05-27 15:06:10 +08:00
Christopher Jeffrey
7089735fb0
hd: cleanup some methods. 2017-05-13 23:39:22 -07:00
Christopher Jeffrey
c1dbac3a4a
bech32: optimize bits conversion. 2017-05-13 15:51:51 -07:00
Christopher Jeffrey
a9ea4e5531
bech32: refactor. 2017-05-13 15:13:42 -07:00
Christopher Jeffrey
0ea341772c
address: make bech32 addrs more sane. 2017-05-13 00:21:51 -07:00
Christopher Jeffrey (JJ)
3fda5bedab Merge pull request #198 from kleetus/compat/bool-validation
RPC method compatibility with bitcoin core.
2017-05-12 13:33:36 -07:00
Christopher Jeffrey
ed4400acb9
address: start using from/toString. 2017-04-30 07:13:36 -07:00
Chris Kleeschulte
dd49ee0761
RPC method compatibility with bitcoin core.
- RPC method param semantics, unfortunately, aren't consistent in bitcoin core, therefore bcoin can't be used as a drop in replacement if bcoin "fixes the glitch".
- To avoid breaking bcoin's current api, validation of bool includes integers 0 and 1 as false and true, respectively.
- The effect of this is to allow getRawTransaction to work with older client code.
2017-04-21 13:14:33 -04:00
Christopher Jeffrey
6acef06cbc
address: implement bech32 addresses. 2017-04-12 23:13:29 -07:00
Christopher Jeffrey
c0e4c169ba
http: more tests. 2017-03-15 20:38:04 -07:00
Christopher Jeffrey
0d844be588
rpc: tests and fixes. 2017-03-15 20:21:24 -07:00
Christopher Jeffrey
1a3dcbd277
test: add some more rpc tests. 2017-03-15 07:21:14 -07:00
Christopher Jeffrey
42da82e007
wallet: fix tests and add compat routes. 2017-03-14 06:28:55 -07:00
Christopher Jeffrey
aa7e550f91
hd: do not store mnemonic on hd private key. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
1a8a9afade
config/wallet: refactor config handling. add wallet server. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
bfd7cc9266
miner/template: refactor options handling. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
945fa381c5
refactor: mining. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
5cbbdbfb2f
refactor: config, plugins, and walletdb. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
70a0147080
test: fix chain test. 2017-03-14 06:09:30 -07:00
Christopher Jeffrey
11a2bc1356
net: less banning for bip152. 2017-03-07 18:01:05 -08:00
Christopher Jeffrey
9e480db00f
test: fix chain test. 2017-03-05 17:57:10 -08:00
Christopher Jeffrey
beefcfba67
chain: return null on orphan blocks. 2017-03-04 15:37:27 -08:00
Christopher Jeffrey
e5fd8305bf
test: fix failing bip70 test. 2017-03-01 09:22:14 -08:00
Christopher Jeffrey
89ff0796c7
refactor: do not require json files. 2017-03-01 08:48:53 -08:00
Christopher Jeffrey
7688d80e74
block/chain: refactor block verification and caching. 2017-02-28 09:20:22 -08:00
Christopher Jeffrey
47c43ea39a
rpcclient: refactor error handling. 2017-02-28 09:20:22 -08:00
Christopher Jeffrey
f71f2d954b
chain: optimize reward calculation. 2017-02-28 09:20:22 -08:00
Christopher Jeffrey
304f0e7e75
smart coin selection. 2017-02-22 11:35:49 -08:00
Christopher Jeffrey
1e07d1ba83
chain: improve target and mtp calculation. 2017-02-13 21:59:41 -08:00
Christopher Jeffrey
dcf705d8bc
chain: s/bad-witness-merkle-size/bad-witness-nonce-size/ 2017-02-11 12:54:24 -08:00
Christopher Jeffrey
0f1a62b0de
test: block sigops tests. 2017-02-01 23:00:54 -08:00
Christopher Jeffrey
fc2827a5bd
test: add coins test. 2017-02-01 11:56:45 -08:00
Christopher Jeffrey
d0e226f926
test: sigops tests. 2017-02-01 06:07:01 -08:00
Christopher Jeffrey
7d86b4bb5e
test: clean up chain test. 2017-01-31 17:08:12 -08:00
Christopher Jeffrey
74aede0447
test: lint. 2017-01-31 17:03:22 -08:00
Christopher Jeffrey
cc16b48cf4
test: tx sigops tests. more chain tests. 2017-01-31 16:27:39 -08:00
Christopher Jeffrey
231d08b1c4
test: add node-context. 2017-01-30 19:44:50 -08:00
Christopher Jeffrey
bc951e25a9
test: use memwallet for mempool test. 2017-01-30 18:56:56 -08:00
Christopher Jeffrey
df5228c849
test: node/chain tests. add memwallet. 2017-01-30 18:37:56 -08:00
Christopher Jeffrey
b6593adf75
net: remove alert system. 2017-01-19 04:41:58 -08:00
Christopher Jeffrey
491462f551
bip150: add dns resolution. comments. 2017-01-15 23:46:19 -08:00
Christopher Jeffrey
a486bd3a18
refactor: options. 2017-01-14 17:59:54 -08:00
Christopher Jeffrey
34dd6c3b79
http: url fixes. 2017-01-12 13:04:10 -08:00
Christopher Jeffrey
fed7d0de54
http: remove use of callbacks. 2017-01-12 02:57:24 -08:00
Christopher Jeffrey
4c557744a2
refactor: address, amount, uri, errors. 2017-01-09 23:07:02 -08:00
Christopher Jeffrey
9e4ea75198
test: cleanup. 2017-01-09 14:25:45 -08:00