Commit Graph

2131 Commits

Author SHA1 Message Date
Christopher Jeffrey
c597d7c411
bip151: overflow sequence number properly. 2016-07-26 01:19:57 -07:00
Christopher Jeffrey
018241fc78
bip151: set processed to zero on rekey. 2016-07-26 01:14:35 -07:00
Christopher Jeffrey
f37946abb7
bip151: fix rekeying. replicate openssh more. 2016-07-26 01:08:42 -07:00
Christopher Jeffrey
4af5273c0e
bip151: minor arg fix. 2016-07-25 23:13:06 -07:00
Christopher Jeffrey
eb9f35c8b4
bip151: set aad again. 2016-07-25 22:18:01 -07:00
Christopher Jeffrey
b0bb5d516d
chachapoly: do not reinitialize state. 2016-07-25 22:11:32 -07:00
Christopher Jeffrey
73deb5430e
bip151: max message size. 2016-07-25 21:46:00 -07:00
Christopher Jeffrey
94af094322
bip151: whitespace. 2016-07-25 18:53:57 -07:00
Christopher Jeffrey
a86a374ca5
node: add bip151 option. 2016-07-25 18:26:29 -07:00
Christopher Jeffrey
b455352708
peer/bip151: rewrite bip151. handle bip151 on p2p network. 2016-07-25 18:24:30 -07:00
Christopher Jeffrey
233af72b7f
peer: minor. 2016-07-25 16:00:14 -07:00
Christopher Jeffrey
84e2848c2a
remove profiler. 2016-07-25 15:56:39 -07:00
Christopher Jeffrey
1faa887eb6
mempool: disable verify_witness by default. 2016-07-25 15:53:12 -07:00
Christopher Jeffrey
8ba429d76c
mempool: logs. 2016-07-25 15:49:14 -07:00
Christopher Jeffrey
3f874b31e5
pool: minor. 2016-07-25 14:44:33 -07:00
Christopher Jeffrey
1356a3c7ab
mempool: logs. 2016-07-25 14:43:16 -07:00
Christopher Jeffrey
e3389ac28b
peer: send havewitness only for segnet3. 2016-07-25 14:22:08 -07:00
Christopher Jeffrey
bc7b6f487b
peer: handle ENOTFOUND. 2016-07-25 14:18:23 -07:00
Christopher Jeffrey
0dea0888e2
pool: add ignore list. 2016-07-25 14:11:57 -07:00
Christopher Jeffrey
6ed877c06c
logger: make logs less spammy. 2016-07-25 11:52:48 -07:00
Christopher Jeffrey
31bceddfa5
parser: fix bip152 typos. 2016-07-25 11:35:13 -07:00
Christopher Jeffrey
064ba7df9b
bip152: fixes. refactor. 2016-07-25 11:32:35 -07:00
Christopher Jeffrey
642f3c715f
peer: do not send getblocks to non-network-service peers. 2016-07-25 01:47:08 -07:00
Christopher Jeffrey
2b783e8f6e
more compact block logs. 2016-07-25 01:26:01 -07:00
Christopher Jeffrey
20d52ca110
pool: better peer options handling. 2016-07-25 01:22:31 -07:00
Christopher Jeffrey
8bd52cff0a
chaindb: cache 25mb of coins. 2016-07-25 01:20:26 -07:00
Christopher Jeffrey
b860894471
peer: compact block logs. 2016-07-25 00:13:38 -07:00
Christopher Jeffrey
c9e8f779f3
network: rename segwitHeight. 2016-07-25 00:08:20 -07:00
Christopher Jeffrey
cdbe6fc940
node: witness option. announce services properly. 2016-07-25 00:01:56 -07:00
Christopher Jeffrey
cd4bcb48e8
disable segwit for testnet, for now. 2016-07-24 23:53:12 -07:00
Christopher Jeffrey
e884a9ed48
temporary fix for segwit networks. 2016-07-24 23:50:01 -07:00
Christopher Jeffrey
cc6018a94e
chain: use separate state caches for separate deployments. 2016-07-24 23:09:22 -07:00
Christopher Jeffrey
d68d79841a
network: add block batch size. 2016-07-24 22:14:39 -07:00
Christopher Jeffrey
83c1f8853d
chain: keep track of processing time for blocks. 2016-07-24 20:52:36 -07:00
Christopher Jeffrey
af50f5e1c6
env variables. request more blocks during sync. 2016-07-24 19:02:12 -07:00
Christopher Jeffrey
6a760136a9
bip70/x509: only store cert fingerprints. 2016-07-23 07:18:43 -07:00
Christopher Jeffrey
83bab4d382
add bip70 tests. 2016-07-23 06:53:02 -07:00
Christopher Jeffrey
1d447683cb
x509: refactor. 2016-07-23 05:06:14 -07:00
Christopher Jeffrey
8e5ca9f41e
bip70: details.getData. 2016-07-23 04:59:24 -07:00
Christopher Jeffrey
0cbae18f1f
protobuf: optimize varint reading. 2016-07-23 04:35:06 -07:00
Christopher Jeffrey
5dbebe14d9
bip70: x509 improvements. 2016-07-23 04:12:03 -07:00
Christopher Jeffrey
54cf5ce341
bip151: minor. 2016-07-22 22:40:13 -07:00
Christopher Jeffrey
16eaa4402e
bip70: minor. 2016-07-22 22:03:10 -07:00
Christopher Jeffrey
072f5d6348
lint. 2016-07-22 22:00:46 -07:00
Christopher Jeffrey
46969c6f3a
bip70: fix signing. 2016-07-22 21:57:42 -07:00
Christopher Jeffrey
ac601e3675
implement bip70. 2016-07-22 21:26:59 -07:00
Christopher Jeffrey
2d2f11b5dc
optimize readVarint. 2016-07-21 14:26:42 -07:00
Christopher Jeffrey
ee08278654
lint. 2016-07-21 12:38:31 -07:00
Christopher Jeffrey
27684e9661
if we're going to have checkpoints, might as well optimize the hell out of them. 2016-07-21 12:36:11 -07:00
Christopher Jeffrey
04565cfadb
bip151: improve rekey test. 2016-07-21 10:14:58 -07:00
Christopher Jeffrey
e7347dd620
bip151: fixes and tests. 2016-07-21 09:21:36 -07:00
Christopher Jeffrey
8bcfeca44e
constants: zero key. 2016-07-21 08:41:26 -07:00
Christopher Jeffrey
bb0149e603
docs 2016-07-21 05:37:58 -07:00
Christopher Jeffrey
9cc05a488a
utils. 2016-07-21 05:27:42 -07:00
Christopher Jeffrey
253a6795a3
move crypto to its own module. 2016-07-21 05:21:22 -07:00
Christopher Jeffrey
78919ffde7
pool fixes and refactor. 2016-07-21 04:50:28 -07:00
Christopher Jeffrey
95067ba938
compact block relay support. 2016-07-20 19:42:19 -07:00
Christopher Jeffrey
a85f3edde5
bip152: always use witness serialization. 2016-07-20 14:51:44 -07:00
Christopher Jeffrey
b939de9423
use hkdf for bip151. 2016-07-20 14:39:21 -07:00
Christopher Jeffrey
2ec1f33cde
implement hkdf. 2016-07-20 14:25:18 -07:00
Christopher Jeffrey
0ffafa3238
bip152: fixes and tests. 2016-07-18 18:56:40 -07:00
Christopher Jeffrey
2feef87331
fixes and cleanup. 2016-07-18 02:02:49 -07:00
Christopher Jeffrey
34ecf9b318
aes: minor. 2016-07-16 16:52:19 -07:00
Christopher Jeffrey
3186aaa6cc
fix for createAccount. 2016-07-16 15:51:49 -07:00
Christopher Jeffrey
a70b615fd2
http client. 2016-07-16 15:41:26 -07:00
Christopher Jeffrey
2d8274b46e
lint. 2016-07-16 14:56:27 -07:00
Christopher Jeffrey
97f25f29f5
use supersha. 2016-07-16 14:32:06 -07:00
Christopher Jeffrey
8d497bca1e
script: minor. 2016-07-16 12:17:08 -07:00
Christopher Jeffrey
4381cb5d84
optimize tx.fillCoins. 2016-07-15 20:06:18 -07:00
Christopher Jeffrey
98eeaf0af3
optimize witness serialization. 2016-07-15 18:56:38 -07:00
Christopher Jeffrey
36029b8882
fix mutable tx parsing. 2016-07-15 18:51:44 -07:00
Christopher Jeffrey
11947a6ba8
minor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
d4356e6255
cleanup elliptic usage for new version (hybrid keys). 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
448771a6fe
walletdb: minor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
5e52c7f373
benchmarks. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
84b94fd1b5
fix scrypt worker. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
b81a6b3ea1
async signing. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
33d2803d4c
more worker serialization. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
678da4671a
fix hd cache. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
cbd8447d80
walletdb: minor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
f4a70df1a0
logs for deployment activation. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
74c999abe3
refactor websocket api. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
ba4ce73a8d
rename fill to fund. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
52c46e83ed
add scanning test. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
dd70c3167b
refactor txdb block handling. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
3ac22f0338
comment. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
e51736728e
drop old scanning. always rescan blockchain on boot. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
1c9c06b4f9
add chain scanner. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
3def705d35
expose chain deployment state. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
196f3ca861
ensure full atomicity in wallet. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
850b16fa7d
use libsecp256k1 for hd derivation. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
350c76d49b
fix getAccounts. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
1e1bd82355
comments. cleanup. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
682596fb05
http tests. caches. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
a60a48da9a
http test. fix path parsing. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
747c1a4949
optimize getRandom. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
a6dc5a08c8
misc. fix rejects filter additions. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
4a8768bcd2
api keys. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
2b41cfb9bd
temporary fix for "inverse" malleability. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
4f715d86c7
fix commitment hash checking. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
799c4a8d6e
pool: reconnect to regular peers. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
1c73374e55
binary insert and buffer uniqify. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
c9c38e860b
more coin serialization. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
e9bd890c8b
optimize coins serialization. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
9cc7b529d6
logger. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
c27466a7c5
avoid duplicate hash table lookups. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
a3bb955d95
walletdb best hash. fix spv chain. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
80d8c2b3c8
walletdb accounts. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
70225dcb57
master key future-proofing. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
5115b43435
iterate options. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
40217ebebe
remove profiler. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
20e0d6632d
miner. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
0dc2b41f5e
more path stuff. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
f8fadb73a7
more type checking. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
bbe8943bf4
minor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
6f345df018
coins format. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
28f6ebe43f
remove globals. add logger. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
ba6d4821cc
hd 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
e80785654c
minor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
e41a44b9a4
minor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
a3d2c0a089
rbt: minor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
49260aea10
start using a red black tree for in-memory databases. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
1e8c3a4487
fix rbt traversal. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
0d0b6c562e
lint. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
5cb23020ff
implement coin spent field. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
6ce27b82f3
add red black tree for mempool. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
1e38237f87
fix network. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
e046825145
sigcache. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
f01a1a0c6e
keypair object. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
33ed409529
network references. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
503cbfc886
address: types and MAST. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
afa7862e55
add script types. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
727dc66252
more tx method refactoring. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
9e4e6c8242
lru again. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
6062972da5
lru. comments. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
27a8a83969
priority. checkInputs. chainValue. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
4bf962638e
lru. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
996bbc6b21
add version error to ldb. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
6a17599f15
script refactor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
08692957c7
simplify ec.publicKeyConvert. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
4bf31f32bf
hd refactor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
b59f6ae384
fix minimal check. small ints. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
4e80320953
better coin compression. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
6c419cc754
pubkey compression. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
745e89131c
refactor script testing. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
87a94639d4
fix parse error. misc. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
ab8fff71e2
script compilation. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
6566620c5d
chain events. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
2b05bd0581
chain locator. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
e0373dbf65
lint. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
8541843e14
script.fromString. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
9fe97dc855
script: fromOptions. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
3a652727c9
script refactor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
3fb5a36f8d
optimize memblock parsing. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
f1bbd7736a
refactor miner. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
46d7fba13a
fix peer. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
616d9bd7f3
script refactor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
f5ea3b1870
always duplicate objects. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
27b88ddba9
do not cache redeem script. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
3e0830fe8e
do not cache input/output type. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
59cd4a29fe
refactor mtx. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
8069360c7b
refactor mtx. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
91de71851d
laid back options parsing. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
5e103f0706
txdb coin cache. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
6612b7ced3
remove mutable arg from inputs/outputs. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
0a3e61b3e6
add raw methods to address object. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
a09bd94052
use native assign if available. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
bd56b46806
handle notfound errors at a lower level. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
c6af30e69d
cleanup ldb. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
cfdbe2e970
keyring json. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
59cdc96c9f
add a read lock for walletdb. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
e3f023142f
wallet events. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
1a32e66468
fix open and close for all async objects. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
d346b36754
refactor pool and peer. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
b4bbba1ad9
refactor orphan pruning. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
c580557993
more chain refactoring. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
1f3d2f4b96
micro optimize. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
b3dd3bfacb
rename checkDeployments. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
c1a46eedee
minor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
c8dc5901ec
state.hasMTP. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
4b7d4a3c8d
chain deployment state. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
eb4f16f2b7
minor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
e364e2b619
refactor sighash. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
c7b9091da0
drop unoptimized sighashing. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
0a9ce90b84
tx parsing. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
3e13badc7a
do not use object literals in hd.js. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
667fa4b796
bip39 again. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
91fd1dc60d
bip39. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
3a7fc3a679
block.addtx. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
755d0a2c64
address work. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
203294029c
rename protocol.network. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
38a92ebecf
more address parsing. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
718ae3c1aa
more address stuff. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
5c5ff9e265
rename some versionbits stuff. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
74e67c8a65
laid back parsing for address parser. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
f2edf8f4b0
bip39 work. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
7821d65db4
network object. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
4a8ef06154
chainentry.fromBlock. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
1aa70f8ff0
chainentry refactor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
634290687b
minor. 2016-07-15 18:20:55 -07:00