Christopher Jeffrey (JJ)
a4858e274b
Merge pull request #295 from Bucko13/segwit-keyring
...
pass options on keyring creation
2017-10-18 22:40:08 -07:00
Christopher Jeffrey (JJ)
340f2176fc
Merge pull request #292 from nodar-chkuaselidze/fix/rpc-getbalance-default
...
RPC: change default to getbalance
2017-10-18 22:39:20 -07:00
Christopher Jeffrey (JJ)
c44293acd8
Merge pull request #282 from nodar-chkuaselidze/fix/createrawtransaction
...
RPC: Create/Sign Raw Transaction fix
2017-10-18 22:31:23 -07:00
Christopher Jeffrey (JJ)
bdeb72a035
Merge pull request #281 from Bucko13/import-key-passphrase
...
pass passphrase for key import
2017-10-18 22:30:10 -07:00
Christopher Jeffrey (JJ)
9098d4dcd6
Merge pull request #298 from nodar-chkuaselidze/fix/rpc-verifytxoutproof
...
rpc: fix verifytxoutproof
2017-10-18 22:25:50 -07:00
Christopher Jeffrey (JJ)
61906d7564
Merge pull request #300 from tuxcanfly/passphrase-fix
...
client: use 'new' passphrase param
2017-10-18 22:24:03 -07:00
Christopher Jeffrey (JJ)
8883da8a7d
Merge pull request #308 from Bucko13/createTX-signature
...
remove outputs from function signature
2017-10-18 13:20:53 -07:00
Christopher Jeffrey (JJ)
e137288b78
Merge pull request #325 from sangaman/master
...
Adding confirmations property to block and tx getJSON
2017-10-18 13:17:17 -07:00
Christopher Jeffrey (JJ)
8c091f6e08
Merge pull request #329 from nodar-chkuaselidze/fix/http-client
...
Fix bcoin.http.Client errors
2017-10-18 13:11:49 -07:00
Christopher Jeffrey (JJ)
4bf7426566
Merge pull request #342 from nodar-chkuaselidze/enhancement/cli-bech32
...
CLI to accept bech32 addresses
2017-10-18 13:06:46 -07:00
Christopher Jeffrey
57181f27ee
walletdb: increase bloom filter size to 3m addrs.
2017-10-18 12:58:22 -07:00
Christopher Jeffrey
bfde70f2ab
db: improve iterator perf.
2017-10-18 12:58:22 -07:00
Christopher Jeffrey
4d8ca8c16f
db: change iterator api to be more loop-friendly.
2017-10-18 12:58:21 -07:00
Christopher Jeffrey
1c1e429383
fs/co: add fs.exists and wait for promise on co.clearInterval.
2017-10-18 12:58:21 -07:00
Christopher Jeffrey
aeb3d8f352
http: minor fixes.
2017-10-18 12:58:21 -07:00
Christopher Jeffrey
86746e2bd0
siphash: add siphash32 and siphash64.
2017-10-18 12:58:21 -07:00
Node
3a802cacd6
cli: accept bech32 addresses in getTX/getCoin
2017-10-16 23:49:02 +04:00
Node
d76ca37d0d
rpcclient: check body.error first
2017-10-11 16:23:37 +04:00
Node
b40ac6e081
http-client: fix returned errors
2017-10-05 18:52:14 +04:00
Daniel McNally
4f317992f5
Fixes to TX & Block confirmations property
...
TX `confirmations` property set to 0 for unconfirmed transactions. Block
`confirmations` property set to -1 for orphaned blocks. Fixing to add +1
to `confirmations` to match bitcoind behavior and corresponding bcoin
rpc methods - block or tx at tip of main chain starts with 1
confirmation (not zero).
2017-10-02 00:58:48 -07:00
Daniel McNally
c2cef86296
Adding 'confirmations' property to block getJSON
...
Adds a 'confirmations' property to the JSON returned by `cli tx [hash]`
as well as the Rest `/tx/:hash` call by subtracting block height from
chain height
2017-09-28 23:41:13 -04:00
Daniel McNally
0f68427778
Adding 'confirmations' property to TX getJSON
...
Adds a 'confirmations' property to the JSON returned by cli tx [hash] as
well as the REST '/tx/:hash' call by subtracting TX height from chain
height
2017-09-28 22:47:50 -04:00
Christopher Jeffrey
ca4e938a75
mempool: fix orphan resolution edge case.
2017-09-26 20:22:54 -07:00
Christopher Jeffrey
1aa78e2248
mempool: sanitize after reorg.
2017-09-26 17:20:16 -07:00
Christopher Jeffrey
459a9f25f4
chain/mempool: optimize coinview handling. fix mempool orphan edge case.
2017-09-26 13:07:01 -07:00
Christopher Jeffrey
17e473fda5
upnp: minor.
2017-09-19 17:52:19 -07:00
Bucko
e27408dc58
getCoin was unnecessarily passing account
2017-09-19 15:43:34 -07:00
Bucko
d9ebfcc2f9
coin lock methods weren't handling parameters correctly in http client
2017-09-19 14:28:26 -07:00
Christopher Jeffrey
991213d303
chain: fix typo.
2017-09-19 13:30:53 -07:00
Christopher Jeffrey
4c18dc5d0e
chain/util: minor style change.
2017-09-19 13:10:40 -07:00
Bucko
e3ac717ada
use req.wallet for lock coin endpoints
2017-09-18 18:55:44 -07:00
Christopher Jeffrey
fdca08b498
chain: minor.
2017-09-06 23:06:41 -07:00
Christopher Jeffrey
f63c19cb19
bn: stop using bn#cmp.
2017-09-06 22:51:06 -07:00
Christopher Jeffrey
5107cfd27a
consensus: clean up some functions.
2017-09-06 22:38:23 -07:00
Christopher Jeffrey
d78df4b79c
miner: minor.
2017-09-06 14:21:23 -07:00
Christopher Jeffrey
eb5469088c
chain: refactor checkpoints handling. other misc refactoring.
2017-09-06 14:17:39 -07:00
Christopher Jeffrey
5f82c0d8c2
chain: alias all db methods. remove chainentry spaghetti code.
2017-09-06 10:20:40 -07:00
Christopher Jeffrey
b81643473e
encoding: refactor int64 handling.
2017-09-05 21:17:58 -07:00
Christopher Jeffrey
83178e9333
encoding: minor.
2017-09-05 09:41:02 -07:00
Christopher Jeffrey
4046202b3f
lint: minor.
2017-09-04 16:46:47 -07:00
Christopher Jeffrey
a2c3e70f09
bip151: use buffer pool.
2017-09-04 13:12:10 -07:00
Christopher Jeffrey
7e456595de
workers: minor.
2017-09-03 22:16:06 -07:00
Christopher Jeffrey
d00e924965
hd: use buffer pool for key derivation.
2017-09-03 11:29:59 -07:00
Christopher Jeffrey
45e41b1bb4
writer: alloc pool lazily.
2017-09-03 00:56:15 -07:00
Christopher Jeffrey
a543648310
writer: use 100kb pool for sighashing.
2017-09-03 00:05:47 -07:00
Christopher Jeffrey
e0eb1cdbe3
refactor: remove all duck typing.
2017-09-02 21:29:38 -07:00
Christopher Jeffrey
bc25bdb016
workers: drop all static methods for packets.
2017-09-02 21:09:22 -07:00
Christopher Jeffrey
ad4c7e81c8
tx: minor.
2017-09-01 18:05:50 -07:00
Christopher Jeffrey
55f594d616
stack: remove useless checks.
2017-09-01 18:05:26 -07:00
Bucko
4329907e86
fixed signature as well as call
2017-08-30 16:38:43 -07:00
Bucko
df52cbe6f9
remove outputs from function signature
2017-08-30 16:36:30 -07:00
Bucko
778e118378
implement tux's fix for changing property name and more consistent behavior around setting passphrase on unencrypted wallet
2017-08-30 14:32:24 -07:00
Christopher Jeffrey
57b98b2368
tx: refactor hasStandardWitness.
2017-08-30 10:14:51 -07:00
Christopher Jeffrey
063f55f448
script: remove instances of script.getSmall().
2017-08-30 10:07:07 -07:00
Christopher Jeffrey
7022c6649f
tx: minor.
2017-08-28 06:08:50 -07:00
Christopher Jeffrey
b87f557823
tx/script/chain: refactor locktime handling.
2017-08-27 19:07:57 -07:00
Christopher Jeffrey
73b84cc1a7
lint: remove useless parens.
2017-08-27 16:50:23 -07:00
Javed Khan
9b777ac7e5
client: use 'new' passphrase param
2017-08-27 15:14:43 +05:30
Christopher Jeffrey
9d48c1385b
mtx: rename subtractFee to subtractIndex.
2017-08-26 12:37:08 -07:00
Christopher Jeffrey
3c2c8ea955
hd: pass purpose number to bip44 derivation. drop bip45 support.
2017-08-26 02:41:27 -07:00
Christopher Jeffrey
26f6fb5277
wallet: enforce settxfee for all functions.
2017-08-26 01:35:36 -07:00
Christopher Jeffrey
6742482445
mtx: subtract fee evenly from all outputs.
2017-08-26 01:21:25 -07:00
Christopher Jeffrey
c6b76ec73f
Revert "wallet/mtx: add extraOutputs option."
...
This reverts commit 3957f83a59 .
2017-08-26 00:13:24 -07:00
Christopher Jeffrey
140eece7dd
script: improve perf of getScripthash.
2017-08-25 20:54:56 -07:00
Christopher Jeffrey
49154be76d
script: refactor opcode and optimize.
2017-08-25 18:54:51 -07:00
Christopher Jeffrey
3957f83a59
wallet/mtx: add extraOutputs option.
2017-08-25 15:10:30 -07:00
Christopher Jeffrey
5fae0c50a1
script: enforce stack size on unexecuted branches.
...
This primarily only affects zero-length scripts. An input script which pushed
this many items onto the stack without failing _is not possible_, but with
segwit, it is possible. However, a witness program would fail due to cleanstack
before there would be any kind of consensus fault. In other words, without this
fix, we still remain in consensus with bitcoin core, but ideally we should want
to fail for the same reason.
2017-08-25 08:08:47 -07:00
Node
1c25d8913e
rpc: fix revHex arg in verifytxoutproof
2017-08-25 15:24:54 +04:00
Christopher Jeffrey
7145d21c9c
script: improve isCode.
2017-08-24 23:47:22 -07:00
Christopher Jeffrey
47eb484657
script: include opcode and instruction pointer in stack size errors.
2017-08-24 23:13:31 -07:00
Christopher Jeffrey
13892b3b38
encoding: rename written to offset.
2017-08-24 22:36:59 -07:00
Christopher Jeffrey
22a879f154
opcode: fix uncatchable error on .equals().
2017-08-24 22:24:39 -07:00
Christopher Jeffrey
af132c8818
opcode: handle OP_1NEGATE in opcode.toNum.
2017-08-24 18:22:45 -07:00
Christopher Jeffrey
d6ce66bce9
script: refactor script and stack mutation.
...
This allows more reasonable signing behavior and eliminates all polymorphism.
2017-08-24 17:34:20 -07:00
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
Christopher Jeffrey
906a6bf13a
http/tcp: remove reject listener on success.
2017-07-23 08:18:06 -07:00
Christopher Jeffrey
c347add2fd
pool: refactor assertion.
2017-07-23 08:17:43 -07:00
Christopher Jeffrey
5dd18d5fa6
chain: fix unknown versionbits log.
2017-07-23 07:41:19 -07:00
Christopher Jeffrey
3a0c9b60e2
chain: implement bip91 and bip148.
2017-07-23 07:32:18 -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
75adfe5ec0
mnemonic: refactor fromPhrase.
2017-07-23 07:22:53 -07:00
Christopher Jeffrey (JJ)
63423c7748
Merge pull request #245 from nodar-chkuaselidze/fix/config-bip150
...
Fix Pool bip150 assert
2017-07-23 07:03:10 -07:00
Christopher Jeffrey (JJ)
296492e7f8
Merge pull request #243 from mnaamani/fix-net-listen
...
net/http: correctly reject promise return by listen()
2017-07-23 07:01:56 -07:00
Christopher Jeffrey
ffec8ff2d7
chain: improve version display. fix getLocator.
2017-07-20 17:22:59 -07:00
Christopher Jeffrey
6a7c5eac8d
http: smarter handling of decodeURIComponent calls.
2017-07-20 17:18:18 -07:00
Christopher Jeffrey
a915545a1a
block: minor.
2017-07-20 14:28:47 -07:00
Christopher Jeffrey
beacd48462
timedata: refactor time.add().
2017-07-20 13:23:38 -07:00
Node
361ffd2705
Fix bip150 and bip151 configuration parsing
2017-07-20 16:44:41 +04:00
Christopher Jeffrey
7ef658049c
block: minor.
2017-07-20 01:56:06 -07:00
Christopher Jeffrey
a11a1ab4ad
timedata: minor.
2017-07-20 01:10:22 -07:00
Christopher Jeffrey
bd56c75d0d
merkle: refactor loops.
2017-07-20 01:04:44 -07:00
Christopher Jeffrey
f50416eaf9
merkle: minor.
2017-07-19 19:55:14 -07:00
Christopher Jeffrey
6a73f61a91
crypto: do not call out for merkle building.
2017-07-19 19:47:31 -07:00
Mokhtar Naamani
c9f736d33f
net/http: correctly reject promise return by listen()
2017-07-19 00:21:35 +03:00
Christopher Jeffrey
98c975de8b
pool: fix bad orphan event handling.
2017-07-17 22:39:11 -07:00
Christopher Jeffrey
2fb16a6c97
crypto: expose root256 function.
2017-07-17 22:24:00 -07:00
Christopher Jeffrey
76eb6b354b
crypto/random: minor. comments.
2017-07-17 22:22:52 -07:00
Christopher Jeffrey
20da155a08
sha256: minor.
2017-07-17 14:26:44 -07:00
Christopher Jeffrey
94b5487847
workers: minor.
2017-07-17 14:26:44 -07:00
Christopher Jeffrey
4eb3c2172d
workers: refactor jobs.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
18cc0a013c
node: lint.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
b52a5e3fd2
node: add node.get() for plugins.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
7530359b55
workers: minor.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
498264b417
workers: better errors for verification.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
053561f2ba
errors: fix stack traces.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
cedc54436a
lowlevelup: automatic dummies.
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
2f51fd1c50
api: use satoshi values for everything.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
47adb5a5a7
tx: refactor sighashing and hasStandardWitness.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
ff856fd6c2
chain: post-verify transactions due to potential of rejected promises.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
d7970882b3
bip70: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
cf795e1cd3
script: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
4771f2d0a8
chaindb: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
a627f00a3f
poly1305: fix.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
6893d5aa99
chain: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
19f0f42717
http: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
f2a939de70
poly1305: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
18c1476de9
chain: refactor getLocks.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
8a1eb9f5e1
chain: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
797016630c
chaindb: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
0ffabd7a9a
chaindb: more cases for genesis block.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
e65f6e26c3
chain: remove isCoinbase calls.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
73e61e864a
chaindb: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
278265536e
external: minor.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
4ab48c5f54
workers: saner env sending.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
a93f82db73
workers: minor.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
647b6909c6
dns: add custom timeout.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
7d9d3f979d
workers: minor.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
006d4d1fef
coinview: lint.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
0fa577a47d
workers: lint.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
f591e577f1
workers: minor.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
27c60ce76e
workers: refactor for browser vs node.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
6154ca8b4c
workers/build: require only one worker file.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
b570769eed
http: safer path parsing.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
3d65488108
crypto: fix duplicate names.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
ca48ab748f
bn: use toBuffer instead of toArrayLike.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
8d6f8f7cdf
workers/framer: lint.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
6690bd7e9d
workers/webpack: fixes for build and workers.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
886008a182
workers: misc fixes.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
4ebe557807
workers: make worker files configurable.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
8f295a376d
workers: refactor exiting.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
0250cf4296
workers: better signal handling.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
90f783fd05
workers: remove parser-client.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
972d98e0db
hostlist: es6 fixes.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
5b62a87a21
mempool: fix coinindex.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
fdc9bca468
script: minor.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
db0567fc01
node/browser: fix browser build.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
1b94d670c2
upnp: minor.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
3f3516ca18
coinview: remove old serialization methods.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
15d0b88308
bip152/merkleblock: use Map objects.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
a071a58380
config: fix parseArg.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
4f68d4cde0
node: minor.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
5e78cf4998
node: fix close bug.
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
3af014119a
refactor: switch to template strings for errors.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
7932a25abe
mtx: fix verify methods.
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
3e7c921ad3
tx: minor.
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
e89f285e9a
script: refactor execution.
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
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
98a59e814d
workers: fix build for workers.
2017-06-28 18:26:16 -07:00
Christopher Jeffrey
307e7dd698
webpack: get bcoin building in webpack for node.
2017-06-28 18:04:20 -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
3763b5309a
node: allow non-string plugins in config.
2017-06-28 02:47:05 -07:00
Christopher Jeffrey
09d41d32a2
rsa: minor.
2017-06-28 02:34:26 -07:00
Christopher Jeffrey
9d9d8e2133
refactor: lint.
2017-06-28 02:32:00 -07:00
Christopher Jeffrey
f9fdcb58f8
protoreader/protowriter: minor.
2017-06-28 02:30:21 -07:00
Christopher Jeffrey
2a5a8cdc93
pbkdf2: fix for browser.
2017-06-27 18:22:19 -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
fa3e98b274
crypto: rename ec to secp256k1.
2017-06-27 02:48:19 -07:00
Christopher Jeffrey
5d6e089c92
crypto: refactor pk.js.
2017-06-27 02:34:17 -07:00
Christopher Jeffrey
f6fb3ba3b5
config: fix browser build.
2017-06-27 02:01:11 -07:00
Christopher Jeffrey
56252921c1
bcoin: refactor.
2017-06-27 01:57:34 -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
7317076243
bcoin: remove env.js.
2017-06-26 23:02:49 -07:00
Christopher Jeffrey
65aefbd99c
httpbase: minor.
2017-06-26 21:39:59 -07:00
Christopher Jeffrey
8b74d95280
http: fix broadcast call.
2017-06-26 21:29:24 -07:00
Christopher Jeffrey
7ab6818210
env: fix environment.
2017-06-26 17:45:15 -07:00
Christopher Jeffrey
bf5ea72863
webpack: fix babelification. upgrade to webpack3.
2017-06-26 17:42:18 -07:00
Boyma Fahnbulleh
0d831b0c57
only output minimized files
2017-06-26 13:52:54 -07:00
Boyma Fahnbulleh
84bfb4f8cb
lib: fix webpack import issues
2017-06-26 13:48:40 -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