Commit Graph

4103 Commits

Author SHA1 Message Date
Bucko
ed4e7b1243 pass options on keyring creation 2017-08-24 17:19:05 -07:00
Node
82595b95eb
rpc: getbalance default minconf=1 2017-08-24 20:57:27 +04:00
Christopher Jeffrey
a6b2c23a41
script: start using scriptnum implementation. 2017-08-20 15:13:17 -07:00
Christopher Jeffrey
1b0ae3ca79
refactor: use defineProperty instead of __define[GS]etter__. 2017-08-20 15:10:58 -07:00
Christopher Jeffrey
c54ba4c5ab
http/client: lint. 2017-08-20 14:35:42 -07:00
Christopher Jeffrey
6c8c18f2a0
opcode: improve perf of opcode.from methods. 2017-08-20 12:52:35 -07:00
Christopher Jeffrey
2647d011dc
opcode: experiment with using cached opcodes. 2017-08-19 23:14:30 -07:00
Christopher Jeffrey
5047028511
script: stop using new Opcode. 2017-08-19 23:14:18 -07:00
Christopher Jeffrey
040e798d9f
rpc: fix getTXOutProof. 2017-08-19 19:36:28 -07:00
Node
29f9d401e4
rpc: signrawtransaction input name fix 2017-08-18 14:35:12 +04:00
Node
4fb2df7789
rpc: createrawtransaction from inputs 2017-08-18 11:01:43 +04:00
Christopher Jeffrey
8f9f5dfc06
pool: fix map.clear call in stopSync. fixes #274. 2017-08-17 19:51:54 -07:00
Bucko
af32c5d4c2 pass passphrase for key import 2017-08-17 18:24:40 -07:00
Christopher Jeffrey (JJ)
d44d93486f Merge pull request #279 from Bucko13/check-for-id-param
check in http client that an id is passed to create wallet
2017-08-17 17:23:47 -07:00
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
Christopher Jeffrey (JJ)
2c8fcafa0a Merge pull request #265 from nodar-chkuaselidze/fix/rpc-requests
REST API fixes
2017-08-17 17:23:04 -07:00
Christopher Jeffrey (JJ)
87a31093f6 Merge pull request #276 from nodar-chkuaselidze/fix/invalidate
Chain: Fix _invalidate
2017-08-17 17:21:33 -07:00
Christopher Jeffrey
5415147d4e
encoding: encoding improvements for base128 varints. 2017-08-17 10:55:30 -07:00
Christopher Jeffrey
51cdd6156b
encoding: lint. 2017-08-17 10:04:51 -07:00
Christopher Jeffrey
a47d68024a
scriptnum: improve encoding. 2017-08-17 09:59:17 -07:00
Christopher Jeffrey
668202b2f9
encoding: start using int64 objects instead of BNs. 2017-08-17 09:56:57 -07:00
Christopher Jeffrey
411db44a76
workers: fix ErrorResultPacket. 2017-08-17 09:56:22 -07:00
Christopher Jeffrey
a91bd5c958
script: improve new scriptnum. 2017-08-16 20:36:09 -07:00
Bucko
64b7e4d0df check in http client that an id is passed to create wallet 2017-08-16 17:58:37 -07:00
Bucko
c3d8c6c377 add param for mnemonic in documentation for wallet creation options 2017-08-16 16:47:19 -07:00
Christopher Jeffrey
772025a4a1
script: a better scriptnum implementation. 2017-08-16 15:33:44 -07:00
Christopher Jeffrey
d277d55560
bn: use toArrayLike instead of toBuffer. 2017-08-16 15:32:24 -07:00
Node
15b22c03fa
chain: fix _invalidate 2017-08-16 21:06:08 +04:00
Christopher Jeffrey
f9eca70374
pkg: upgrade n64. 2017-08-15 18:47:34 -07:00
Christopher Jeffrey
2ce2f1f9f7
rpc: refactor getTXOutProof and mining calls. 2017-08-14 17:52:31 -07:00
Christopher Jeffrey
09a2dc0f55
cpuminer: avoid division by zero. 2017-08-14 17:51:40 -07:00
Christopher Jeffrey
b013b2f0f9
util: add toFloat function. 2017-08-13 13:15:56 -07:00
Christopher Jeffrey
b021f7cdd4
util: minor. 2017-08-13 12:21:56 -07:00
Christopher Jeffrey
ebb79e5ff1
secp256k1: es6ify length normalization. 2017-08-13 12:21:44 -07:00
Christopher Jeffrey
28d2f1478e
workers: do not listen for close event. 2017-08-11 15:21:16 -07:00
Christopher Jeffrey
b8f57df90c
hd: use a u32 for fingerprints. 2017-08-11 14:47:54 -07:00
Christopher Jeffrey
aa327131e8
hd: improve arg parsing. 2017-08-11 05:12:18 -07:00
Christopher Jeffrey
e6cd60f919
hd: better path parsing. 2017-08-11 05:07:04 -07:00
Christopher Jeffrey
60b345f59c
util: revert to old toFixed behavior. 2017-08-11 04:52:51 -07:00
Christopher Jeffrey
1735fe6a6c
hd: refactor hardening handling. 2017-08-11 04:47: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
e7bc53c995
test: refactor script and tx test parsing. 2017-08-11 00:07:48 -07:00
Christopher Jeffrey
6c96a8e6ba
script: lint. 2017-08-10 23:37:42 -07:00
Christopher Jeffrey
5c7c66332f
timedata: whitespace. 2017-08-10 12:32:49 -07:00
Christopher Jeffrey
7db5fd1537
memdb: fix typo. 2017-08-10 12:08:53 -07:00
Christopher Jeffrey
87e3ee1971
script: do not use return values for script.execute and Script.verify. 2017-08-10 09:41:01 -07:00
Christopher Jeffrey
413f26584d
mnemonic: refactor parsing and serialization for phrases. 2017-08-10 06:55:01 -07:00
Christopher Jeffrey
50b8dd2b2c
mnemonic: better parsing. 2017-08-10 06:22:33 -07:00
Christopher Jeffrey
bff9e25796
mnemonic: optimize fromPhrase. 2017-08-09 18:17:25 -07:00
Christopher Jeffrey
fbd99ea1b9
util: add util.fromDouble for convenience. 2017-08-09 17:45:10 -07:00
Christopher Jeffrey
9f3a040758
mnemonic: fix an error for certain languages. 2017-08-09 17:44:06 -07:00
Christopher Jeffrey
aec9474ba7
walletdb: use passed-in worker pool. 2017-08-09 15:45:02 -07:00
Christopher Jeffrey
8f73ec53e9
refactor: use assert.strictEqual instead of assert.equal. 2017-08-09 15:40:39 -07:00
Christopher Jeffrey
853ef18ad9
lint: fix some linting errors. 2017-08-09 15:32:46 -07:00
Christopher Jeffrey
15adc17dea
bip150: stricter parsing for known-peers and auth-peers. 2017-08-09 15:29:06 -07:00
Christopher Jeffrey
78dfe005c7
config: use stricter arg and config file parsing. 2017-08-09 15:28:52 -07:00
Christopher Jeffrey
a5b736b3f5
mtx: expose commit method returning a tx and view. 2017-08-09 15:26:33 -07:00
Christopher Jeffrey
ff8b0418b1
keyring: minor. 2017-08-09 15:25:46 -07:00
Christopher Jeffrey
edebc51d18
primitives: use equals instead of equal for consistency. 2017-08-09 15:25:01 -07:00
Christopher Jeffrey
33c32d32c1
bip152: minor. add assertion. 2017-08-08 14:31:58 -07:00
Christopher Jeffrey
de9f37b290
merkleblock: minor. style. 2017-08-08 14:31:42 -07:00
Christopher Jeffrey
7de854ce3f
http: require json bodies to be an object. 2017-08-07 15:56:15 -07:00
Christopher Jeffrey
e268e00adb
chain: minor. 2017-08-07 15:31:57 -07:00
Christopher Jeffrey
36523e2f56
tx: do not track flags byte. 2017-08-07 00:55:26 -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
ae1c040cd7
mempool: minor verification refactor. 2017-08-04 14:14:15 -07:00
Christopher Jeffrey
1d33816d89
config: fix and refactor arg parsing. 2017-08-03 20:17:58 -07:00
Christopher Jeffrey
d3675bfcf8
config: fix --n vs -n aliases. 2017-08-03 19:42:40 -07:00
Christopher Jeffrey
2084e26d0d
wallet/http: fix signing. 2017-08-03 19:39:15 -07:00
Christopher Jeffrey
cfd1715c9f
primitives: show hex on json. 2017-08-03 19:38:43 -07:00
Node
7cf63990d9
http-client: seperate address and addresses methods 2017-08-04 03:48:01 +04:00
Node
e6120039fc
http-api: Normalize API calls, fix getCoins by addr/addresses 2017-08-04 03:17:54 +04:00
Christopher Jeffrey
bb6110c609
chain/pool: make checkpoints option permanent. 2017-08-02 15:23:10 -07:00
Christopher Jeffrey
a76442acde
chain: minor. 2017-08-02 00:19:24 -07:00
Christopher Jeffrey
bec1aee604
http: fix basic auth options. 2017-08-01 16:02:49 -07:00
Christopher Jeffrey
ee7ad9dc86
chain: determine sync state using last checkpoint's chainwork. 2017-08-01 15:17:55 -07:00
Christopher Jeffrey
1d7b8ca7c1
http: better handling of api keys. 2017-08-01 01:38:36 -07:00
Christopher Jeffrey
1a4268544f
chain: better checkpoint handling. 2017-08-01 01:38:04 -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
c7ce985648
http: do not destroy socket on error. see #257. 2017-07-31 18:52:33 -07:00
Christopher Jeffrey
dfd63f12bb
networks: update testnet chainwork. 2017-07-31 18:21:04 -07:00
Christopher Jeffrey
6acf96457d
chaindb: fix cache invalidation. 2017-07-31 18:21:04 -07:00
Christopher Jeffrey
1fa800e9fd
networks: checkpoints and chainwork update. 2017-07-31 18:21:04 -07:00
Christopher Jeffrey
3fbe8174a4
compress: set max compress types to 6. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
57df561299
migrate: more pertxout migration optimizations. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
35068cb82b
coinentry: refactor. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
1bbe36ec1a
chaindb: minor. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
34421c1653
ip: minor. 2017-07-31 18:21:03 -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
ddda6c9dbd
dns: minor. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
749cd9323f
aes: move lookup tables. 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
70a2f64de6
compress: minor refactor. 2017-07-31 18:20:49 -07:00
Christopher Jeffrey
723c99d15e
coins: remove useless undo method. 2017-07-31 18:20:49 -07:00
Christopher Jeffrey
8b0ec7b179
coins: refactor compression. 2017-07-31 18:20:48 -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
50c75aeea8
script: minor. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
5602001348
coinview: fixes. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
a1601b8f3a
chaindb: alter hasCoins. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
82bdd73f05
chaindb: fix getCoin. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
aa71ae690a
coins: refactor prevout methods. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
492c05c378
coinview: refactor api. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
f8deb0cdfd
coinview: remove view.spend. 2017-07-31 18:20:48 -07:00
Christopher Jeffrey
fbb2500281
layout: aggressive asserts. 2017-07-31 18:20:47 -07:00
Christopher Jeffrey
79f88b93b3
chaindb: v3. 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
396ba5ee5f
mtx: minor. 2017-07-31 18:20:47 -07:00
Node
d809f66bf8
miner: pass workers option to miner 2017-07-27 23:42:22 +04:00
Christopher Jeffrey
8036c301a1
address: fix isMixedCase. 2017-07-25 16:48:30 -07:00
Christopher Jeffrey
9a2d39c751
address: minor var name change. 2017-07-25 16:38:12 -07:00
Christopher Jeffrey
957c4e8c93
network/address: remove segnet4 support. fix bech32 parsing. 2017-07-25 16:31:27 -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
32c93af2c4
node/rpc: throw errors on shutdown. minor changes. 2017-07-25 05:30:22 -07:00
Christopher Jeffrey
7eefb773be
refactor: use maps and sets wherever possible. 2017-07-25 05:15:47 -07:00
Christopher Jeffrey
590c4350e9
rpc: fix submitwork. 2017-07-25 02:20:17 -07:00
Christopher Jeffrey
1e9855a4fa
block/tx: refactor size calculation. 2017-07-25 02:12:35 -07:00
Christopher Jeffrey
0993bbacbf
memblock: fix isMemBlock. 2017-07-25 01:57:46 -07:00
Christopher Jeffrey
cd795cf96f
block: remove addTX. 2017-07-25 01:53:58 -07:00
Christopher Jeffrey
8c212d797f
block: rename some more methods. refactor bip152 ptx vector. 2017-07-25 01:16:25 -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
9743e8e314
bip150: use map objects. 2017-07-24 19:37:47 -07:00
Christopher Jeffrey
963c2173dd
util: improve inspection. 2017-07-24 19:05:23 -07:00
Christopher Jeffrey
340d4e3272
bip152: minor. 2017-07-23 22:17:55 -07:00
Christopher Jeffrey
6c901a19fa
bip152: add extra limit to avoid hashdos. 2017-07-23 21:22:32 -07:00
Christopher Jeffrey
69b862df42
bip152: minor refactor. 2017-07-23 20:56:27 -07:00
Christopher Jeffrey
9d90704b83
v1.0.0-beta.14 2017-07-23 08:33:37 -07:00
Christopher Jeffrey
6d838ad91c
v1.0.0-beta.13 2017-07-23 08:24:52 -07:00