Commit Graph

4103 Commits

Author SHA1 Message Date
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