Commit Graph

541 Commits

Author SHA1 Message Date
Christopher Jeffrey (JJ)
fd5dcec680 Merge pull request #278 from Bucko13/wallet-options
add documentation for mnemonic option in wallet creation
2017-08-17 17:23:21 -07:00
Bucko
c3d8c6c377 add param for mnemonic in documentation for wallet creation options 2017-08-16 16:47:19 -07:00
Christopher Jeffrey
aec9474ba7
walletdb: use passed-in worker pool. 2017-08-09 15:45:02 -07:00
Christopher Jeffrey
edebc51d18
primitives: use equals instead of equal for consistency. 2017-08-09 15:25:01 -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
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
faabd36f9e
config/validator/utils: fix fixed parsing/serialization. 2017-08-05 18:52:24 -07:00
Christopher Jeffrey
2084e26d0d
wallet/http: fix signing. 2017-08-03 19:39:15 -07:00
Christopher Jeffrey
1d7b8ca7c1
http: better handling of api keys. 2017-08-01 01:38:36 -07:00
Christopher Jeffrey
1f38f36077
wallet: fix layout style. 2017-07-31 18:59:25 -07:00
Christopher Jeffrey
f58feb0035
wallet/http: fixes for deserialization. 2017-07-31 18:54:46 -07:00
Christopher Jeffrey
e38da91065
lint: no extra parens around !await. 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
3f9d57f680
wallet: refactor mappings to use maps and sets. 2017-07-25 13:39:38 -07:00
Christopher Jeffrey
02e4dda012
refactor: cleanup for..of loops. 2017-07-25 11:39:12 -07:00
Christopher Jeffrey
6f1f81dcbe
refactor: lint. 2017-07-25 11:21:43 -07:00
Christopher Jeffrey
d9a726a358
walletdb: use set for querying wallets by tx. 2017-07-25 11:19:53 -07:00
Christopher Jeffrey
2d74bda89b
wallet: refactor syncOutputDepth. 2017-07-25 05:34:44 -07:00
Christopher Jeffrey
7eefb773be
refactor: use maps and sets wherever possible. 2017-07-25 05:15:47 -07:00
Christopher Jeffrey
7ed36ec2ba
block: rename "abbr" methods to "head". 2017-07-25 00:08:28 -07:00
Christopher Jeffrey
23397dd753
refactor: change for..of loop usage. 2017-07-24 19:45:46 -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
b52a5e3fd2
node: add node.get() for plugins. 2017-07-17 14:26:43 -07:00
Christopher Jeffrey
cedc54436a
lowlevelup: automatic dummies. 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
8f295a376d
workers: refactor exiting. 2017-07-17 14:26:40 -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
c732333554
client: fix typo. 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
c651136d83
refactor: refactor clients. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
7f1b23223c
wallet: fix server workers. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
0ea25b0c1c
wallet: move nodeclient. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
074c065262
node: automatically bind to errors for plugins. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
8c7279518f
refactor: de-globalize workerpool. 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
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
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
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
7129370b2b
walletkey: fix getType in toJSON. 2017-06-17 18:49:28 -07:00
Christopher Jeffrey
fcc468fb3c
txdb: fix txid() call. 2017-06-16 23:47:04 -07:00
Christopher Jeffrey
7c1786d584
rpc: minor. 2017-06-16 23:46:53 -07:00
Christopher Jeffrey
f04ad612b2
wallet: expose witness option over http. 2017-06-16 23:46:30 -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
46b34677f1
address/wallet: refactor usage of Address.getHash. 2017-05-25 23:27:37 -07:00
Christopher Jeffrey
76c20eddf1
rpc: do not use Address.getHash. 2017-05-21 21:42:35 -07:00
Christopher Jeffrey
5ff46dd36d
wallet: more specific hd key functions. 2017-05-13 20:04:23 -07:00
Christopher Jeffrey
41d9493cc7
minor: lint. 2017-05-13 00:31:18 -07:00
Christopher Jeffrey
0ea341772c
address: make bech32 addrs more sane. 2017-05-13 00:21:51 -07:00
Christopher Jeffrey
1ae6205e24
wallet/http: remove admin check for now. see #185. 2017-05-12 15:57:01 -07:00
Christopher Jeffrey
2b970e2e40
wallet/http: treat sign call tx as an mtx. fixes #149. 2017-05-12 15:52:18 -07:00
Christopher Jeffrey
377017ba3d
walletdb: handle errors for plugin. 2017-05-03 19:29:45 -07:00
Christopher Jeffrey
ed4400acb9
address: start using from/toString. 2017-04-30 07:13:36 -07:00
Christopher Jeffrey
0429d56534
http: fix response for wallet join (no wallet auth). 2017-03-26 15:15:29 -07:00
Christopher Jeffrey
c0e4c169ba
http: more tests. 2017-03-15 20:38:04 -07:00
Christopher Jeffrey
0e5c542b49
rpc: minor. 2017-03-15 18:20:29 -07:00
Christopher Jeffrey
66c4fd8a77
rpc: better funding errors. 2017-03-15 06:55:00 -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
a4e37cf9df
browser: fixes. 2017-03-14 08:07:42 -07:00
Christopher Jeffrey
42da82e007
wallet: fix tests and add compat routes. 2017-03-14 06:28:55 -07:00
Christopher Jeffrey
4674109706
node: refactor config options. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
c174bed58d
rpc: getmemoryinfo. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
f7853aa639
logger: better context handling. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
896ffdd3f5
masterkey: fix fromKeyRaw. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
eb601eece6
node: start using logger contexts. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
aa7e550f91
hd: do not store mnemonic on hd private key. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
2bd578fbe4
walletdb: minor. 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
b453898f6e
rpc: misc fixes. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
48066f1634
http: misc fixes. 2017-03-14 06:10:34 -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
5cbbdbfb2f
refactor: config, plugins, and walletdb. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
a81733a720
node/config: refactor config and options. 2017-03-14 06:09:29 -07:00
Christopher Jeffrey
a11344db0e
mempool: refactor fee estimation. 2017-03-01 09:53:10 -08:00
Christopher Jeffrey
9f09de4867
rpc/http/wallet: more aggressive validation for addrs/keys. 2017-02-28 14:52:54 -08:00
Christopher Jeffrey
29fe6468eb
db: do not use isBrowser for bufferKeys check. see #137. 2017-02-28 13:04:55 -08:00
Christopher Jeffrey
304f0e7e75
smart coin selection. 2017-02-22 11:35:49 -08:00
Christopher Jeffrey
ef95b69e5e
minor: refactor. move asyncobject. 2017-02-04 14:52:13 -08:00
Christopher Jeffrey
4e7df6ef87
docs: get jsdoc compiling again. 2017-02-03 22:47:26 -08:00
Christopher Jeffrey
69b442a318
wallet: fix resend. 2017-02-02 16:54:15 -08:00
Christopher Jeffrey
4740a2fff3
wallet: rename noSorting to sort. see #122. 2017-01-29 17:28:12 -08:00
Christopher Jeffrey
80d47b8db4
wallet: more failsafes for sending. 2017-01-29 17:21:16 -08:00
Christopher Jeffrey
0ec58ca93d
wallet: minor style change. 2017-01-27 18:11:23 -08:00
Christopher Jeffrey (JJ)
94ec846fdd Merge pull request #122 from mnaamani/bip69-optional
add option to disable bip69 in Wallet.send
2017-01-27 17:49:35 -08:00
Christopher Jeffrey
977ef01d5a
txdb: failsafe for unconfirm. 2017-01-26 03:00:14 -08:00
Mokhtar Naamani
38e5a0f615 add option to disable bip69 in Wallet.send 2017-01-24 10:10:25 +02:00
Christopher Jeffrey
cbb45db801
config: rename useCheckpoints. allow implicit noAuth on localhost. 2017-01-23 03:19:19 -08:00
Christopher Jeffrey
1a2f29a360
walletdb: improve global resend. 2017-01-22 15:25:33 -08:00
Christopher Jeffrey
66ec0ae36e
net: better headers first. 2017-01-19 04:35:12 -08:00
Christopher Jeffrey
6bc016f313
wallet: fix resend. 2017-01-19 02:06:42 -08:00
Christopher Jeffrey
4cba97a0a8
wallet/net: ensure low FPR of bloom filters. see #118. 2017-01-18 20:53:01 -08:00
Christopher Jeffrey
569c18241f
txdb: fix range queries. 2017-01-17 17:10:00 -08:00
Christopher Jeffrey
e738a80988
walletdb: minor. 2017-01-16 23:20:13 -08:00
Christopher Jeffrey
a486bd3a18
refactor: options. 2017-01-14 17:59:54 -08:00
Christopher Jeffrey
79eea76cc4
output: remove output mutability and addr caching. 2017-01-12 16:13:32 -08:00
Christopher Jeffrey
0b296a1a6f
masterkey: refactor. 2017-01-11 23:39:33 -08:00
Christopher Jeffrey
38a30aceed
masterkey: remove useless arg for lock. 2017-01-11 21:47:09 -08:00
Christopher Jeffrey
7c021cf842
utils: rename locker to lock for consistency. 2017-01-11 21:20:26 -08:00
Christopher Jeffrey
8c1002e1da
path: lint. 2017-01-11 14:56:59 -08:00
Christopher Jeffrey
4c557744a2
refactor: address, amount, uri, errors. 2017-01-09 23:07:02 -08:00
Christopher Jeffrey
469da05515
txdb: remove useless props. 2017-01-08 21:57:06 -08:00
Christopher Jeffrey
8987c0d870
wallet/mtx: fix fee checking and refactor some mtx functions. 2017-01-08 01:36:01 -08:00
Christopher Jeffrey
0eef277984
mtx: coin selector refactor. 2017-01-07 15:39:18 -08:00
Christopher Jeffrey
bea77b0ec7
mtx: refactor coin selection. 2017-01-07 00:18:45 -08:00
Christopher Jeffrey
5caf6210b9
refactor: move constants around. 2017-01-06 09:57:55 -08:00
Christopher Jeffrey
648ad0227b
walletdb: comments. 2016-12-22 04:01:59 -08:00
Christopher Jeffrey
9d8f95ee0f
walletdb: less load for browser. 2016-12-18 23:06:44 -08:00
Christopher Jeffrey
595ada8c86
mtx/wallet: more sanity checks for sending. 2016-12-18 03:20:47 -08:00
Christopher Jeffrey
854cdf1367
wallet: fix txrecord. 2016-12-14 12:17:53 -08:00
Christopher Jeffrey
ef1eb23ea3
txdb: minor. 2016-12-13 17:51:45 -08:00
Christopher Jeffrey
f9a1e18437
wallet: remove resolution. 2016-12-13 14:26:14 -08:00
Christopher Jeffrey
14c9a37cd9
packets: more serialization nonsense. 2016-12-13 02:58:49 -08:00
Christopher Jeffrey
51ca09603a
masterkey: minor. 2016-12-12 12:59:08 -08:00
Christopher Jeffrey
dfefc7182f
serialization: more sizes. 2016-12-11 19:16:02 -08:00
Christopher Jeffrey
3b9e4d6c6e
refactor: use static writers everywhere. 2016-12-11 17:26:42 -08:00
Christopher Jeffrey
d4cb8d82a2
minor: comments. 2016-12-11 08:32:46 -08:00
Christopher Jeffrey
48fc7549ce
tx/wallet: misc fixes. 2016-12-11 06:14:32 -08:00
Christopher Jeffrey
59645ac3ec
refactor: remove extra properties from tx and block. 2016-12-11 05:35:31 -08:00
Christopher Jeffrey
b77aa9240e
coins: refactor and comments. 2016-12-10 20:43:49 -08:00
Christopher Jeffrey
092c1a90df
coins: undo coins fixes. 2016-12-09 17:29:33 -08:00
Christopher Jeffrey
12b3274d33
refactor: pass coin viewpoints for every function requiring inputs. 2016-12-09 07:15:35 -08:00
Christopher Jeffrey
ead3f64b7f
Merge branch 'pass-coins-4' into coins-compression-2 2016-12-09 00:01:14 -08:00
Christopher Jeffrey
4e9bec4cd3
refactor: lint. 2016-12-07 17:52:53 -08:00
Christopher Jeffrey
9e4db47792
wallet: improve size estimation. 2016-12-06 23:29:13 -08:00
Christopher Jeffrey
f7e50e3435
tx: pass coins into scripting system. 2016-12-06 17:37:35 -08:00
Christopher Jeffrey
4e4dbfba49
server/wallet/mempool: get tests passing. 2016-12-05 21:02:08 -08:00
Christopher Jeffrey
5091f69038
wallet/http: send address validation. 2016-12-05 17:24:18 -08:00
Christopher Jeffrey
72b68532e3
ldb: add db cache-size option. 2016-12-04 13:59:08 -08:00
Christopher Jeffrey
a95aba92fb
serialization: less polymorphism. 2016-12-04 00:54:50 -08:00
Christopher Jeffrey
8e49d87e53
wallet: refactor client. 2016-12-01 00:13:59 -08:00
Christopher Jeffrey
81e71e7922
wallet: drop wallet getters. 2016-11-30 23:12:01 -08:00
Christopher Jeffrey
bffdd78009
hd: drop getters. 2016-11-30 22:00:22 -08:00
Christopher Jeffrey
ded3bc34f3
refactor: start moving away from getters. 2016-11-30 21:31:52 -08:00
Christopher Jeffrey
cb59675b06
refactor: rename buffer reader/writer vars. 2016-11-26 10:56:50 -08:00
Christopher Jeffrey
c5a5d4498a
chain/wallet: handle caches better. 2016-11-26 01:12:38 -08:00
Christopher Jeffrey
eef9bcd872
walletdb: minor. 2016-11-25 19:37:04 -08:00
Christopher Jeffrey
9e48947d2f
txdb: fix txdb.confirm. 2016-11-23 00:36:57 -08:00
Christopher Jeffrey
229be344fc
chaindb: persistent versionbits state caches. 2016-11-22 23:59:02 -08:00
Christopher Jeffrey
e025902405
wallet: expose client. 2016-11-22 10:51:00 -08:00
Christopher Jeffrey
f376289684
crypto: implement subtle api for browser. 2016-11-21 17:50:05 -08:00
Christopher Jeffrey
6c61ad976d
walletdb: add experimental client. 2016-11-19 22:55:00 -08:00
Christopher Jeffrey
d75b5d80cc
walletdb: nodeclient work. 2016-11-19 21:40:31 -08:00
Christopher Jeffrey
1827b945dd
walletdb: new client api. 2016-11-19 18:26:27 -08:00
Christopher Jeffrey
bf34a8133d
btc: rename. 2016-11-19 11:14:38 -08:00
Christopher Jeffrey
b754973511
utils/btc: rename. 2016-11-19 10:45:31 -08:00
Christopher Jeffrey
ae093d2242
amount/utils: drop utils.btc and utils.satoshi. 2016-11-19 09:59:47 -08:00
Christopher Jeffrey
a1ec1bfff1
modules: refactor indexes. 2016-11-19 06:36:57 -08:00
Christopher Jeffrey
0631148705
modules: more refactoring. 2016-11-19 05:29:29 -08:00
Christopher Jeffrey
9f522c5ca4
layout: less conditional requires. see #105. 2016-11-18 18:31:29 -08:00
Christopher Jeffrey
bc00697adb
mempool/miner: mining and mempool refactor. 2016-11-18 06:35:20 -08:00
Christopher Jeffrey
f625013548
txdb: lint. 2016-11-17 23:20:44 -08:00
Christopher Jeffrey
90c53fc33c
txdb: optimize addBlock. 2016-11-17 06:13:31 -08:00
Christopher Jeffrey
39aee21030
tx: refactor network handling in json serialization. 2016-11-17 04:05:32 -08:00
Christopher Jeffrey
8377a5082e
walletdb: start marking the start block. 2016-11-16 09:26:06 -08:00
Christopher Jeffrey
025a5b9138
chain: handle chain resetting more gracefully. 2016-11-14 15:45:39 -08:00
Christopher Jeffrey
ecd18b9613
walletdb: refactor. 2016-11-11 18:16:31 -08:00
Christopher Jeffrey
d088412380
walletdb: filter watch logs. 2016-11-09 18:45:26 -08:00
Christopher Jeffrey
615537def9
walletdb: lint. 2016-11-09 18:34:59 -08:00
Christopher Jeffrey
0d2391be14
wallet: start using crypto.cleanse. 2016-11-09 18:25:37 -08:00
Christopher Jeffrey
0825007c3d
walletdb: setLookahead. 2016-11-09 18:25:37 -08:00
Christopher Jeffrey
4e1709e9b6
walletdb: lookahead of 10. 2016-11-09 18:25:37 -08:00
Christopher Jeffrey
4cb11da4cf
walletdb: safe sync option. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
04596522ea
walletdb: increase lookahead. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
4fcb07ff5f
walletdb: switch back to lookahead of 10. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
93d2c8811f
walletdb: switch to u32s to potentially avoid deserialization. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
827ab4b539
walletdb: varint serialization. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
e07f9b737c
walletdb: fix getAccounts. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
465a76a485
wallet: minor. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
d6b97efcc4
walletdb: fee handling. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
5069ec1bfb
walletdb: list blocks. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
8d624f1b0e
walletdb: better getAccounts. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
86e1e35f9a
txdb: add block entries. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
704d9e1783
walletdb: cleanup wipe method. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
5b43f76307
txdb: remove chainHeight from details json. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
3baddeebb6
walletdb: shared keys check. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
7faba4a23b
walletdb: comments. minor. 2016-11-09 18:25:35 -08:00