Christopher Jeffrey
b021f7cdd4
util: minor.
2017-08-13 12:21:56 -07:00
Christopher Jeffrey
60b345f59c
util: revert to old toFixed behavior.
2017-08-11 04:52:51 -07:00
Christopher Jeffrey
e03182367f
amount: allow overloading for num vs. str by default.
2017-08-11 04:36:17 -07:00
Christopher Jeffrey
fbd99ea1b9
util: add util.fromDouble for convenience.
2017-08-09 17:45:10 -07:00
Christopher Jeffrey
8f73ec53e9
refactor: use assert.strictEqual instead of assert.equal.
2017-08-09 15:40:39 -07:00
Christopher Jeffrey
3bc47f5a3c
lint: enforce function names.
2017-08-06 21:36:48 -07:00
Christopher Jeffrey
62152a1005
util: remove util.inherits. inline inheritance.
2017-08-06 19:45:10 -07:00
Christopher Jeffrey
4ce070fad4
validation: use stricter validation for ints.
2017-08-06 14:43:22 -07:00
Christopher Jeffrey
cc1462f697
utils/util: reorganize functions.
2017-08-06 04:00:08 -07:00
Christopher Jeffrey
422d2d4133
config: consistency changes.
2017-08-06 03:33:17 -07:00
Christopher Jeffrey
a290e6880d
encoding: rename read int methods to readIx.
2017-08-06 03:27:06 -07:00
Christopher Jeffrey
1df577cb74
validation: refactor.
2017-08-06 03:23:37 -07:00
Christopher Jeffrey
5513563892
util: minor.
2017-08-06 01:35:25 -07:00
Christopher Jeffrey
faabd36f9e
config/validator/utils: fix fixed parsing/serialization.
2017-08-05 18:52:24 -07:00
Christopher Jeffrey
1d7b8ca7c1
http: better handling of api keys.
2017-08-01 01:38:36 -07:00
Christopher Jeffrey
34421c1653
ip: minor.
2017-07-31 18:21:03 -07:00
Christopher Jeffrey
88ef28d837
lint: no implicit casting.
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
5eb6620431
lint: consistent return values.
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
fbb2500281
layout: aggressive asserts.
2017-07-31 18:20:47 -07:00
Christopher Jeffrey
87d664784c
refactor: s/ts/time. s/ps/mtime.
2017-07-25 14:23:10 -07:00
Christopher Jeffrey
7eefb773be
refactor: use maps and sets wherever possible.
2017-07-25 05:15:47 -07:00
Christopher Jeffrey
23397dd753
refactor: change for..of loop usage.
2017-07-24 19:45:46 -07:00
Christopher Jeffrey
963c2173dd
util: improve inspection.
2017-07-24 19:05:23 -07:00
Christopher Jeffrey
053561f2ba
errors: fix stack traces.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
37da047a34
digest: avoid extra allocations.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
296e65d0fd
refactor: use es6 template strings everywhere.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
3af014119a
refactor: switch to template strings for errors.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
10672784e5
refactor: rename tx functions. more es6 features.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
fdb668aea3
refactor: use rest args where possible.
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
e00472891d
refactor: start using for...of.
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
275580f4ac
refactor: fix linting for empty modules.
2017-06-28 13:04:04 -07:00
Christopher Jeffrey
24cd81a1bd
webpack: use -browser convention instead of aliases.
2017-06-28 12:45:38 -07:00
Christopher Jeffrey
f9fdcb58f8
protoreader/protowriter: minor.
2017-06-28 02:30:21 -07:00
Christopher Jeffrey
be1ec1c22d
utils: refactor.
2017-06-27 09:28:37 -07:00
Christopher Jeffrey
62e7f97359
refactor: module index.
2017-06-27 09:28:18 -07:00
Christopher Jeffrey
d4cc22e1c5
refactor: crypto.
2017-06-27 07:27:53 -07:00
Christopher Jeffrey
63e6a97de3
refactor: lint.
2017-06-27 03:54:14 -07:00
Christopher Jeffrey
1aa0858f7c
encoding: avoid division in write64.
2017-06-27 01:28:05 -07:00
Christopher Jeffrey
b26b82ab97
util: start using path module. remove some functions.
2017-06-27 01:24:27 -07:00
Christopher Jeffrey
8358fa59c6
util: drop all homemade polyfills.
2017-06-27 00:36:13 -07:00
Christopher Jeffrey
d9342cd81c
util: rely on polyfill for nextTick and typed arrays.
2017-06-26 23:31:32 -07:00
Christopher Jeffrey
8b2a0ce446
util: do not use util.global.
2017-06-26 23:07:06 -07:00
Christopher Jeffrey
bf5ea72863
webpack: fix babelification. upgrade to webpack3.
2017-06-26 17:42:18 -07:00
Christopher Jeffrey
722118df6c
external/gcs: docs.
2017-06-26 13:36:01 -07:00
Christopher Jeffrey
e02d645c07
util: optimize isUInt32 and isInt32.
2017-06-26 12:44:32 -07:00
Christopher Jeffrey
f1f112b6c6
bech32: minor.
2017-06-26 03:48:07 -07:00
Christopher Jeffrey
518484cac0
util: remove util.nextTick.
2017-06-26 03:43:09 -07:00
Christopher Jeffrey
03303d670d
nexttick-browser: minor.
2017-06-26 03:38:08 -07:00
Christopher Jeffrey
6875fc99c6
nexttick: minor.
2017-06-26 03:37:11 -07:00
Christopher Jeffrey
edb5bb73af
utils: refactor nexttick module.
2017-06-26 03:35:21 -07:00
Christopher Jeffrey
d3b24da2e1
lint: require strict mode.
2017-06-24 05:11:54 -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
3db140e119
util: improve isSafeAddition.
2017-06-17 18:39:47 -07:00
Christopher Jeffrey
be0e7e02d2
util: add isSafeAddition.
2017-06-17 18:19:12 -07:00
Christopher Jeffrey
5bf68a765f
gcs: refactor.
2017-06-17 17:41:24 -07:00
Christopher Jeffrey
9058e7d78a
gcs: rename fromData.
2017-06-16 16:08:15 -07:00
Christopher Jeffrey
3324d18f5f
gcs: replace multiplication with shifts.
2017-06-16 15:11:52 -07:00
Christopher Jeffrey
b994c278f2
utils: preliminary GCS filter support.
2017-06-16 14:35:50 -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
Christopher Jeffrey
0ceca23cb5
chain/mempool: store peer id and punish invalid orphans.
2017-05-19 17:02:06 -07:00
Christopher Jeffrey
d64bffdd17
bech32: sanity checks.
2017-05-13 16:23:32 -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
83060ee964
bech32: rewrite and improve perf.
2017-05-13 13:54:11 -07:00
Christopher Jeffrey
af0ab46f21
config/validator: add some validation methods.
2017-05-13 02:39:03 -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
Sam Lanning
3e06a244dd
utils: Add clarification to util.isFloat() jsdoc
2017-05-11 14:38: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
b2649a6cd1
encoding: fix asserts.
2017-03-15 07:21:04 -07:00
Christopher Jeffrey
1458366441
reader: better errors.
2017-03-15 06:49:46 -07:00
Christopher Jeffrey
3ae417795f
rpc: better error codes.
2017-03-15 06:13:27 -07:00
Christopher Jeffrey
74b21b78c5
config/validator: fix lists.
2017-03-14 06:16:57 -07:00
Christopher Jeffrey
68bba8621e
rpc/mempool: implement prioritisetransaction.
2017-03-14 06:10:37 -07:00
Christopher Jeffrey
9a7b4eb6a0
validator: minor.
2017-03-14 06:10:36 -07:00
Christopher Jeffrey
023591978a
rpc: fix wit commitment for getblocktemplate.
2017-03-14 06:10:36 -07:00
Christopher Jeffrey
a266391f1b
logger: truncate log files.
2017-03-14 06:10:36 -07:00
Christopher Jeffrey
1a8a9afade
config/wallet: refactor config handling. add wallet server.
2017-03-14 06:10:35 -07:00
Christopher Jeffrey
945fa381c5
refactor: mining.
2017-03-14 06:10:34 -07:00
Christopher Jeffrey
50d47dd5a6
rpc: method refactor. getwork refactor.
2017-03-14 06:10:34 -07:00
Christopher Jeffrey
78a4f379f5
rpc: add u32 validation. rename node rpc methods.
2017-03-14 06:10:34 -07:00
Christopher Jeffrey
59e9ef277a
http: make rpc more hookable.
2017-03-14 06:10:34 -07:00
Christopher Jeffrey
a47316c264
http: refactor node websocket api.
2017-03-14 06:10:34 -07:00
Christopher Jeffrey
4c7a935484
http: better channel management.
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
eedc563903
utils: add fs.
2017-03-14 06:09:29 -07:00
Christopher Jeffrey
a81733a720
node/config: refactor config and options.
2017-03-14 06:09:29 -07:00
Christopher Jeffrey
cdbad54a8c
net: improvements. see comments.
...
- Improved local address handling.
- Enabled upnp discovery.
- Added retry for dns seeds.
- Improved hostlist in general.
2017-03-07 17:10:47 -08:00