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
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
422d2d4133
config: consistency changes.
2017-08-06 03:33:17 -07:00
Christopher Jeffrey
1df577cb74
validation: refactor.
2017-08-06 03:23:37 -07:00
Christopher Jeffrey
faabd36f9e
config/validator/utils: fix fixed parsing/serialization.
2017-08-05 18:52:24 -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
053561f2ba
errors: fix stack traces.
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
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
e02d645c07
util: optimize isUInt32 and isInt32.
2017-06-26 12:44:32 -07:00
Christopher Jeffrey
182784c8e0
utils: remove usage of isBrowser. some refactoring.
2017-06-15 22:28:06 -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
af0ab46f21
config/validator: add some validation methods.
2017-05-13 02:39:03 -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
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
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
5cbbdbfb2f
refactor: config, plugins, and walletdb.
2017-03-14 06:10:34 -07:00