Commit Graph

706 Commits

Author SHA1 Message Date
Christopher Jeffrey
3a89e627b8
walletdb: sync state and utxo handling refactor. 2016-11-09 18:25:32 -08:00
Christopher Jeffrey
45ad99c8f5
walletdb: add sync state object. 2016-11-09 18:25:32 -08:00
Christopher Jeffrey
62ef5ea7f4
bip152: implement segwit compact blocks. 2016-11-06 22:34:05 -08:00
Christopher Jeffrey
4823e71066
tests: add version bits and csv chain tests. 2016-11-03 20:53:49 -07:00
Christopher Jeffrey
6696045f60
test: fix encryption test. 2016-10-25 11:55:07 -07:00
Christopher Jeffrey
6e5bb6eef7
wallet: better masterkey handling for timeouts. 2016-10-25 11:27:47 -07:00
Christopher Jeffrey
5a4ebccfd4
walletdb: use bloom filter for rescanning. 2016-10-24 18:43:39 -07:00
Christopher Jeffrey
45464c412f
walletdb: refactor block handling. 2016-10-24 10:40:53 -07:00
Christopher Jeffrey
11a7515bfd
walletdb: improve block handling. 2016-10-23 22:24:00 -07:00
Christopher Jeffrey
8896ff9665
test: clean up wallet tests. 2016-10-23 15:04:55 -07:00
Christopher Jeffrey
4128ddba36
wallet: more chain atomicity. 2016-10-22 13:34:28 -07:00
Christopher Jeffrey
9049053a1e
http: send details after send. 2016-10-21 19:38:10 -07:00
Christopher Jeffrey
33bcc08656
tx/block: cache hashes. 2016-10-21 19:38:09 -07:00
Christopher Jeffrey
dc0cbc3637
txdb: fix deterministic weight. 2016-10-21 19:38:09 -07:00
Christopher Jeffrey
284932f4cf
txdb: serialization. 2016-10-21 19:38:09 -07:00
Christopher Jeffrey
557c1044cc
txdb: new orphan resolution. 2016-10-21 19:38:09 -07:00
Christopher Jeffrey
3412916c89
txdb: refactor. 2016-10-21 19:38:08 -07:00
Christopher Jeffrey
8368265c71
test: txdb no resolution tests. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
06a104c34d
txdb: cleanup. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
b666b89a4c
test: txdb missed txs. 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
c07848fadd
txdb: orphan resolution. 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
605874068b
s/bn/BN/g 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
ed6ec1e56c
test: latest script tests. 2016-10-21 19:38:05 -07:00
Christopher Jeffrey
a864ec1552
wallet: refactor passphrase options. 2016-10-21 19:38:04 -07:00
Christopher Jeffrey
a2d6ed56e7
refactor: have promises resolve to undefined. 2016-10-21 19:38:04 -07:00
Braydon Fuller
768595dca2 test: include derivation test when private key has leading zeros 2016-10-19 22:05:45 -04:00
Christopher Jeffrey
acae838059
miner: refactor jobs and pool. 2016-10-05 16:56:26 -07:00
Christopher Jeffrey
baeb786bb8
test: fix wallet accurate fee test. 2016-10-03 15:17:23 -07:00
Christopher Jeffrey
0f74292082
refactor: style. 2016-10-03 07:58:12 -07:00
Christopher Jeffrey
2097450b42
wallet: move watchOnly flag to wallet for safety. 2016-10-03 03:03:10 -07:00
Christopher Jeffrey
3e59282c66
deps: browser transform. 2016-10-03 01:48:08 -07:00
Christopher Jeffrey
7b3134d782
account: hd watchonly support. 2016-10-02 23:24:13 -07:00
Christopher Jeffrey
57bc9bf4b0
wallet: better encrypted for imported keys. 2016-10-02 23:24:13 -07:00
Christopher Jeffrey
c43df089f6
script: refactor verification and execution. 2016-10-02 23:24:12 -07:00
Christopher Jeffrey
6dfa47e7f4
refactor: rename constructors. 2016-10-02 23:24:12 -07:00
Christopher Jeffrey
1a8657d131
spawn: rename to co. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
f0223146af
deps: massive refactor. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
f96ee525f5
http: refactor deps and tests. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
376d6303b7
env: refactor how default instances work. 2016-10-02 23:24:10 -07:00
Christopher Jeffrey
960393a53f
wallet: use separate branch for nested addrs. 2016-10-02 23:24:10 -07:00
Christopher Jeffrey
8c5c9de132
wallet: more rewriting. 2016-10-02 23:24:09 -07:00
Christopher Jeffrey
61a77d90e9
wallet: more rewriting. 2016-10-02 23:24:09 -07:00
Christopher Jeffrey
2544e5310a
walletdb: path refactor. 2016-10-02 23:24:09 -07:00
Christopher Jeffrey
99ef1fbc7b
test: update tx tests. 2016-10-02 23:24:07 -07:00
Christopher Jeffrey
44b78dd345
tests: use generators. 2016-09-23 04:18:54 -07:00
Christopher Jeffrey
ed66e0b7cc
test: fix chain tests. 2016-09-23 02:11:16 -07:00
Christopher Jeffrey
3b14525d17
refactor: lint. misc. 2016-09-23 00:56:53 -07:00
Christopher Jeffrey
8c11a2aa3f
generators: refactor http. 2016-09-22 01:29:48 -07:00
Christopher Jeffrey
ae83aa6fba
refactor: more work. 2016-09-22 00:24:59 -07:00
Christopher Jeffrey
2899219033
refactor: cleanup. 2016-09-21 11:03:48 -07:00
Christopher Jeffrey
d78151d3d3
refactor: promises. 2016-09-20 15:28:14 -07:00
Christopher Jeffrey
72597c9faf
test: add more mempool tests. 2016-09-19 14:16:14 -07:00
Christopher Jeffrey
b03a10d790
script: implement bip146 (nullfail). 2016-09-18 12:03:12 -07:00
Christopher Jeffrey
d6576c51f1
merkleblock: use buffers for tree hashes. 2016-09-16 19:18:00 -07:00
Christopher Jeffrey
1e93d5ec7d
bip151: refactor. 2016-09-16 17:32:44 -07:00
Christopher Jeffrey
5da0aceb38
packets 2016-09-16 17:03:56 -07:00
Christopher Jeffrey
07285ebdd7
refactor: rename cost to weight. 2016-09-13 02:06:18 -07:00
Christopher Jeffrey
2dba490d02
crypto: expose scrypt. 2016-09-12 22:56:13 -07:00
Christopher Jeffrey
7f31a41e84
perf: start using bcoin-native. 2016-09-12 14:10:20 -07:00
Christopher Jeffrey
c9ebe29e39
crypto: do not expose crypto module from utils. 2016-09-06 15:15:36 -07:00
Christopher Jeffrey
a02564e0a1
test: fix http tests. 2016-09-06 00:56:25 -07:00
Christopher Jeffrey
a0726efe75
crypto: preliminary support for schnorr signatures. 2016-09-01 02:06:08 -07:00
Christopher Jeffrey
a14da39384
bip152: refactor siphash. 2016-08-26 02:29:09 -07:00
Christopher Jeffrey
acdd9c0a8a
compact: more compact block tests. 2016-08-25 20:48:09 -07:00
Christopher Jeffrey
4fa6136ec4
bip152: use regular varints for lengths. 2016-08-25 20:40:47 -07:00
Christopher Jeffrey
22e90303a2
siphash: refactor. 2016-08-25 14:47:50 -07:00
Christopher Jeffrey
5fa102d5bd
test: fix protocol tests. 2016-08-25 14:25:00 -07:00
Christopher Jeffrey
6105095379
refactor: more restructuring. 2016-08-24 04:59:06 -07:00
Christopher Jeffrey
e04dccb0c1
refactor: more restructuring (again). 2016-08-24 01:36:42 -07:00
Christopher Jeffrey
d350338c98
refactor: more moving around. 2016-08-23 22:57:59 -07:00
Christopher Jeffrey
7f6849b6a6
refactor: fix pathnames. 2016-08-23 22:43:20 -07:00
Christopher Jeffrey
134bece292
bip150: first implementation. 2016-08-23 04:16:11 -07:00
Christopher Jeffrey
3cac0a96d2
http: better events. 2016-08-22 19:08:39 -07:00
Christopher Jeffrey
aec3548b26
walletdb: fix reorg handling. 2016-08-22 17:55:44 -07:00
Christopher Jeffrey
4b008540e0
wallet: key importing. 2016-08-19 12:39:50 -07:00
Christopher Jeffrey
eecae63cf3
walletdb: custom addresses. 2016-08-19 02:29:55 -07:00
Christopher Jeffrey
2b3c6622d3
test: fix mempool test. 2016-08-19 00:42:27 -07:00
Christopher Jeffrey
c836786b99
mtx/wallet: refactor keyring. 2016-08-19 00:39:56 -07:00
Christopher Jeffrey
4b85715ec2
do not accept mutable txs anywhere except wallet. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
841cb290d8
major db and async object refactor. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
e2d530c0da
wallet: range fixes. tests. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
c8bc9fb8b6
mempool: rewrite. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
16204a4794
walletdb: use layout for walletdb and txdb. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
49f56f786f
keyring: refactor. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
cfad740b09
walletdb: fixes. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
b6e9019d56
wallet: rename label to id and id to wid. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
9e2dd9145f
wallet: switch to using number ids. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
30b7421ea7
http: better api key handling. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
2b630ad99c
http: api refactor. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
cbed60e900
wallet/http: fix events. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
9c94fae2a8
txdb: refactor batches. 2016-08-18 02:09:30 -07:00
Christopher Jeffrey
f37946abb7
bip151: fix rekeying. replicate openssh more. 2016-07-26 01:08:42 -07:00
Christopher Jeffrey
b455352708
peer/bip151: rewrite bip151. handle bip151 on p2p network. 2016-07-25 18:24:30 -07:00
Christopher Jeffrey
064ba7df9b
bip152: fixes. refactor. 2016-07-25 11:32:35 -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
54cf5ce341
bip151: minor. 2016-07-22 22:40:13 -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
2ec1f33cde
implement hkdf. 2016-07-20 14:25:18 -07:00
Christopher Jeffrey
d9fe94b80a
bip152 tests. 2016-07-19 02:42:01 -07:00
Christopher Jeffrey
0ffafa3238
bip152: fixes and tests. 2016-07-18 18:56:40 -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
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
a3bb955d95
walletdb best hash. fix spv chain. 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
503cbfc886
address: types and MAST. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
8541843e14
script.fromString. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
616d9bd7f3
script refactor. 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
b58ca398fb
block test. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
f2edf8f4b0
bip39 work. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
b6ce94cec3
optimize sighashing. default values for every constructor. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
05b83fe1c8
script fromJSON. mempool test. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
402b47a940
address consistency. 2016-07-15 18:20:55 -07:00
Christopher Jeffrey
b8997c9212
fix aes tests. 2016-06-27 02:23:06 -07:00
Christopher Jeffrey
a95ab18379
scanning. 2016-06-26 16:32:36 -07:00
Christopher Jeffrey
5095f78dbf
wallet map. 2016-06-26 03:58:09 -07:00
Christopher Jeffrey
9b81126ea4
hd refactor. 2016-06-25 03:40:54 -07:00
Christopher Jeffrey
f784c25d01
make encryption async. 2016-06-25 01:10:10 -07:00
Christopher Jeffrey
48855ae56f
fix tests. non-rolling bloom filter for txdb. 2016-06-22 17:51:49 -07:00
Christopher Jeffrey
5773d5b445
add packet objects. 2016-06-22 15:12:49 -07:00
Christopher Jeffrey
8b262a7ff9
tests. asserts. subtractFee. 2016-06-20 16:56:23 -07:00
Christopher Jeffrey
7422b46e75
refactor. 2016-06-18 20:59:34 -07:00
Christopher Jeffrey
d5529996ef
tests. 2016-06-17 17:54:23 -07:00
Christopher Jeffrey
7862418ccc
program. addresses. 2016-06-17 06:34:48 -07:00
Christopher Jeffrey
54d3b350e9
rename. fix testing functions. 2016-06-17 04:10:32 -07:00
Christopher Jeffrey
6216bcbd97
witsize. json. 2016-06-17 03:31:01 -07:00
Christopher Jeffrey
16404a03ba
serialization... again. 2016-06-17 01:34:59 -07:00
Christopher Jeffrey
27b18c0fd2
work. mutable scripts. 2016-06-14 16:26:26 -07:00
Christopher Jeffrey
3f62a8ae42
scripting system. 2016-06-13 21:25:42 -07:00
Christopher Jeffrey
9a5f1c556d
strict mode. 2016-06-13 01:06:01 -07:00
Christopher Jeffrey
e51464f29b
refactor tx.verify. 2016-06-12 23:16:00 -07:00
Christopher Jeffrey
97fc0b60f5
minor. 2016-06-09 03:43:33 -07:00
Christopher Jeffrey
c1a2601a20
more segwit tests. 2016-06-09 03:40:35 -07:00
Christopher Jeffrey
1984bc178c
bip151: add chacha20 and poly1305. 2016-06-09 02:18:37 -07:00
Christopher Jeffrey
a5fc00d4a6
add siphash. 2016-06-07 17:57:09 -07:00
Christopher Jeffrey
af33e61031
txdb: fix double-spend handling. 2016-06-04 19:34:37 -07:00
Christopher Jeffrey
b9434afc1e
base58 tests. 2016-06-03 11:38:18 -07:00
Christopher Jeffrey
c3822dbf70
improve mm3 perf slightly. 2016-06-03 11:29:11 -07:00
Christopher Jeffrey
084568617b
wallet and test refactor. 2016-06-01 17:55:40 -07:00
Christopher Jeffrey
64af74fe4a
master key. use locks to avoid race conditions in wallet. 2016-06-01 14:59:23 -07:00
Christopher Jeffrey
f382ca2a31
test account usage. 2016-05-31 23:45:48 -07:00
Christopher Jeffrey
0c4df11cb6
consistency. chain test. 2016-05-31 22:17:36 -07:00
Christopher Jeffrey
293f9c5dc5
fix potential dos vectors. tests. 2016-05-31 22:10:06 -07:00
Christopher Jeffrey
c7b47f59fd
add coolest tx ever sent to tx tests. 2016-05-31 18:48:53 -07:00
Christopher Jeffrey
2e5df5514a
change passphrase. 2016-05-31 06:42:12 -07:00
Christopher Jeffrey
390af13b14
wallets, now with reference counting. 2016-05-29 07:00:36 -07:00
Christopher Jeffrey
1002c222a6
refactor. 2016-05-28 12:02:39 -07:00
Christopher Jeffrey
14088e5b0c
async wallet cwallet. 2016-05-28 08:33:53 -07:00
Christopher Jeffrey
420d72d647
async wallet. 2016-05-28 05:48:50 -07:00
Christopher Jeffrey
3480b8c679
more wallet work. 2016-05-27 14:26:40 -07:00
Christopher Jeffrey
2884a794c3
coins 2016-05-26 23:47:41 -07:00
Christopher Jeffrey
2738a4ed5d
merkle refactor. misc. 2016-05-25 02:01:16 -07:00
Christopher Jeffrey
dccfc91974
block tests. 2016-05-24 23:48:52 -07:00
Christopher Jeffrey
08dd3d9b56
witness tests. 2016-05-24 03:28:00 -07:00
Christopher Jeffrey
da701cbef4
refactor merkleblock. 2016-05-24 00:56:31 -07:00
Christopher Jeffrey
2fe481659c
mempool tests. 2016-05-23 19:53:00 -07:00
Christopher Jeffrey
9c89630490
block tests. fix spv and bloom filters. 2016-05-23 19:38:06 -07:00
Christopher Jeffrey
92e8a9c4bc
new varint2. 2016-05-22 06:54:36 -07:00
Christopher Jeffrey
cf041e1fad
Revert "hash bloom"
This reverts commit f7dd8a6e8a.
2016-05-21 17:38:06 -07:00
Christopher Jeffrey
f7dd8a6e8a
hash bloom 2016-05-21 16:37:48 -07:00
Christopher Jeffrey
292e077550
optimization for rolling filter. 2016-05-20 16:42:34 -07:00
Christopher Jeffrey
381c1ca1f1
rolling bloom filter. 2016-05-20 14:40:36 -07:00
Christopher Jeffrey
d4f03f982e
fix issue with mutable scripts. 2016-05-20 04:53:15 -07:00
Christopher Jeffrey
f013ddb353
improve fee calculation. tests. 2016-05-20 04:17:05 -07:00
Christopher Jeffrey
712a445b99
utils and createServer callback. 2016-05-19 21:05:26 -07:00
Christopher Jeffrey
ae230cf294
refactor tx. 2016-05-19 00:17:01 -07:00
Christopher Jeffrey
b9c7afa0ea
coin.fromTX. 2016-05-18 05:12:28 -07:00
Christopher Jeffrey
f798c6f38e
tx test. 2016-05-17 17:55:24 -07:00
Christopher Jeffrey
0b6f86c9d5
refactor testTarget. 2016-05-16 03:59:42 -07:00
Christopher Jeffrey
56445cf562
script test. 2016-05-16 03:26:13 -07:00
Christopher Jeffrey
92d95c552c
minor optimizations. 2016-05-16 03:18:28 -07:00
Christopher Jeffrey
278ff82658
FindAndDelete again. 2016-05-15 23:51:18 -07:00
Christopher Jeffrey
52541fe123
tests. block reward. 2016-05-15 21:47:39 -07:00
Christopher Jeffrey
e648bfb9f5
witness tx test. 2016-05-15 20:45:02 -07:00
Christopher Jeffrey
4314d0cd6a
more tx tests. comments. 2016-05-15 20:32:34 -07:00
Christopher Jeffrey
e75e040d2b
remove comments. 2016-05-15 17:43:51 -07:00
Christopher Jeffrey
535b6a823e
utils and tests. 2016-05-15 17:41:45 -07:00
Christopher Jeffrey
4b0519a073
more tests. utils. 2016-05-15 03:33:58 -07:00
Christopher Jeffrey
dd5c9096a7
use js numbers for values. 2016-05-14 20:57:52 -07:00
Christopher Jeffrey
493f0092e4
comments. refactor how module is exposed. 2016-05-14 13:22:43 -07:00
Christopher Jeffrey
6690991acb
more hd improvements. 2016-05-13 19:28:19 -07:00
Christopher Jeffrey
86bc2227a4
get address working. 2016-05-13 13:38:18 -07:00
Christopher Jeffrey
897e4ae662
hd refactor. 2016-05-13 13:04:55 -07:00
Christopher Jeffrey
fc22de77bf
tests passing. 2016-05-13 10:04:56 -07:00
Christopher Jeffrey
45e84ff168
Revert "more accurate FindAndDelete."
This reverts commit 4b2219c71f.
2016-05-09 15:13:12 -07:00
Christopher Jeffrey
4b2219c71f
more accurate FindAndDelete. 2016-05-09 15:13:07 -07:00
Christopher Jeffrey
6fb0689ce4
worker debug. 2016-05-06 23:56:08 -07:00
Christopher Jeffrey
3ee5137851
rename method. 2016-05-01 21:47:08 -07:00
Christopher Jeffrey
bba94d4aaa
env variables. 2016-05-01 21:19:25 -07:00
Christopher Jeffrey
703c9aec3c
refactor database layout. 2016-05-01 20:45:36 -07:00
Christopher Jeffrey
22680ff235
aes for browser and potentially bip38. 2016-04-30 17:21:18 -07:00
Christopher Jeffrey
afee09a935
utils refactor. 2016-04-30 16:20:40 -07:00
Christopher Jeffrey
96139ad31c
faster mnemonic creation. 2016-04-30 02:04:49 -07:00
Christopher Jeffrey
27d5f2370b
fix unicode mnemonics. 2016-04-30 00:54:39 -07:00
Christopher Jeffrey
bc59106f45
mnemonic test. 2016-04-30 00:45:47 -07:00
Christopher Jeffrey
d89bd13f09
move errors around. assert. 2016-04-29 18:17:48 -07:00
Christopher Jeffrey
5ef65a4129
mnemonic. undo coins. 2016-04-29 16:49:47 -07:00
Christopher Jeffrey
9814dc32f7
mnemonic refactor. 2016-04-29 06:02:31 -07:00
Christopher Jeffrey
1d8c9e7c99
mnemonic improvements. 2016-04-29 05:49:10 -07:00
Christopher Jeffrey
fbeefe03c7
more accurate sighashing. 2016-04-28 15:01:53 -07:00
Christopher Jeffrey
64b92ab073
better script inspection. 2016-04-20 14:12:54 -07:00
Christopher Jeffrey
c1fd8bb285
test. fix sigops counting. 2016-04-20 13:46:56 -07:00
Christopher Jeffrey
cbe2e2f28d
add bad size push test. 2016-04-20 12:54:32 -07:00
Christopher Jeffrey
14fa62f16f
move wtx.hex. 2016-04-20 03:02:03 -07:00
Christopher Jeffrey
9cd2e5438b
add alert tests. 2016-04-20 03:01:05 -07:00
Christopher Jeffrey
1e0394cc0b
another tx test. minor. 2016-04-20 01:08:13 -07:00
Christopher Jeffrey
50ab39aafb
more errors for scripting system. 2016-04-19 22:57:25 -07:00
Christopher Jeffrey
6d7e81080e
refactor tests. 2016-04-19 12:00:27 -07:00
Christopher Jeffrey
4b2a2371ab
refactor hd tests. 2016-04-19 10:51:24 -07:00
Christopher Jeffrey
77f203f7cb
more hd tests. 2016-04-19 09:28:56 -07:00
Christopher Jeffrey
90fb650d12
minor tx test change. 2016-04-19 07:46:57 -07:00
Christopher Jeffrey
1e7e9a2aa7
handle negative outputs. serialize int64 correctly. 2016-04-19 07:36:05 -07:00
Christopher Jeffrey
716d94ec9b
check reserialized tx hashes in tx tests. 2016-04-19 07:08:00 -07:00
Christopher Jeffrey
80e6126f0c
tests with and without caching. 2016-04-19 06:45:10 -07:00
Christopher Jeffrey
a871054387
handle coinbase tests. 2016-04-19 04:44:20 -07:00
Christopher Jeffrey
b3c1a2a81b
over 1800 tests. 2016-04-19 04:25:28 -07:00
Christopher Jeffrey
67f03b5004
more tests. 2016-04-19 04:20:38 -07:00
Christopher Jeffrey
8c7a367c8e
sighash tests. 2016-04-19 03:50:10 -07:00
Christopher Jeffrey
81d2e1b700
passing bitcoind tx tests. 2016-04-19 03:05:35 -07:00
Christopher Jeffrey
59704b63c7
get bitcoind script tests passing. 2016-04-19 01:30:16 -07:00
Christopher Jeffrey
f8d49f0653
more utils cleanup. 2016-04-18 01:11:02 -07:00
Christopher Jeffrey
69ddca52a8
clean up utils. 2016-04-18 00:36:03 -07:00
Christopher Jeffrey
0a621238ba
refactor: rename constants. 2016-04-17 08:45:22 -07:00
Christopher Jeffrey
a06eec2986
do not dump walletdb. 2016-04-16 20:59:57 -07:00
Christopher Jeffrey
3f56375ad7
rename some files. 2016-04-16 20:59:32 -07:00
Christopher Jeffrey
71373975b3
mempool test. 2016-04-16 20:58:45 -07:00
Christopher Jeffrey
0f6c19bcd5
major refactor. 2016-04-16 20:03:00 -07:00
Christopher Jeffrey
0d75c8a621
validate sidechain's inputs after a reorg instead of before. 2016-04-16 01:38:07 -07:00
Christopher Jeffrey
044d54e12e
add total balance. 2016-04-08 18:15:50 -07:00
Christopher Jeffrey
61ea825ffe
move lowlevelup.js. 2016-04-07 22:00:59 -07:00
Christopher Jeffrey
1898b38c49
db option. 2016-04-07 03:03:28 -07:00
Christopher Jeffrey
0a7f118528
add environment. 2016-04-06 18:55:55 -07:00
Christopher Jeffrey
9356a40e62 refactor. 2016-04-05 16:23:57 -07:00
Christopher Jeffrey
d87e301986 mempool. 2016-04-03 00:15:02 -07:00
Christopher Jeffrey
c9bdad9bdf hd rewrite. 2016-04-01 21:19:46 -07:00
Christopher Jeffrey
8346cccbcb balance. http. 2016-03-31 16:17:10 -07:00
Christopher Jeffrey
b0e6826232 txdb. 2016-03-31 14:36:39 -07:00
Christopher Jeffrey
4d2d9b328c verify error refactor. 2016-03-30 16:21:56 -07:00
Christopher Jeffrey
126fb72644 fixes. refactor. 2016-03-29 18:08:33 -07:00
Christopher Jeffrey
caf52c0579 refactor. close methods. 2016-03-29 13:25:03 -07:00
Christopher Jeffrey
ea4d0dee03 opcodes. 2016-03-28 19:45:22 -07:00
Christopher Jeffrey
a598a4850c no strings in scripting. 2016-03-28 16:50:59 -07:00
Christopher Jeffrey
af6ac736bf consistent naming. 2016-03-28 13:22:31 -07:00
Christopher Jeffrey
37c488c802 txdb and mempool work. 2016-03-26 01:29:04 -07:00
Christopher Jeffrey
1db0954c83 misc. 2016-03-24 03:45:00 -07:00
Christopher Jeffrey
3efdc904e7 refactor. tests. 2016-03-22 19:52:33 -07:00
Christopher Jeffrey
17df9b41ce more mempool stuff. 2016-03-22 17:36:58 -07:00
Christopher Jeffrey
93efe376a6 refactor. isSigned. 2016-03-21 02:16:56 -07:00
Christopher Jeffrey
5153e0e1f0 cleanup. 2016-03-19 10:03:55 -07:00
Christopher Jeffrey
5fb16d29e6 refactor. 2016-03-15 13:31:54 -07:00
Christopher Jeffrey
94b20355ea more framing and parsing. 2016-03-15 02:36:55 -07:00
Christopher Jeffrey
0f296394a5 add witness object. 2016-03-14 20:33:15 -07:00
Christopher Jeffrey
b528965912 new scripting system. 2016-03-14 19:45:11 -07:00
Christopher Jeffrey
adeee1eb67 checksequenceverify. scripting improvements. 2016-03-07 23:08:47 -08:00
Christopher Jeffrey
51b2e1f9a9 improve sync. misc fixes. 2016-03-06 01:41:07 -08:00
Christopher Jeffrey
4df5b305ea walletdb and txpool. 2016-03-03 18:57:02 -08:00
Christopher Jeffrey
e31e485553 walletdb. tests. refactor. 2016-03-02 02:36:14 -08:00
Christopher Jeffrey
8f77cf7173 all tests passing. 2016-03-01 20:15:57 -08:00
Christopher Jeffrey
b1232593d8 txdb. 2016-03-01 19:40:18 -08:00
Christopher Jeffrey
2677b0eecd wallet refactoring. 2016-02-28 22:44:02 -08:00
Christopher Jeffrey
3fcc7d5b07 segwit wallet support. segwit chain improvements. 2016-02-28 04:12:51 -08:00
Christopher Jeffrey
8467f339c1 segwit. misc. 2016-02-26 18:06:08 -08:00
Christopher Jeffrey
4c653683b7 segregated - goddamn - witness... and docs update. 2016-02-26 03:54:26 -08:00
Christopher Jeffrey
afd6ee15c9 getblocks. parser/framer fixes. add profiler. 2016-02-24 23:45:45 -08:00
Christopher Jeffrey
c5786e4932 add new block objects. 2016-02-24 06:45:47 -08:00
Christopher Jeffrey
69038ac55e add mutable tx. 2016-02-24 05:48:52 -08:00
Christopher Jeffrey
27f6e6e678 refactor coin selection. 2016-02-24 04:05:16 -08:00
Christopher Jeffrey
6ad3540664 refactor addInput. 2016-02-24 03:41:06 -08:00
Christopher Jeffrey
30db808930 refactor keypair and hd. 2016-02-23 19:08:42 -08:00
Christopher Jeffrey
5773130b67 fix some tests. 2016-02-23 05:01:58 -08:00
Christopher Jeffrey
e5de8db660 more json improvements. 2016-02-23 02:27:10 -08:00
Christopher Jeffrey
b473ca7d18 coin method for framer and parser. 2016-02-23 00:14:09 -08:00
Christopher Jeffrey
4cc5d73959 use zero for op_0. fix signed ints. 2016-02-22 21:59:52 -08:00
Christopher Jeffrey
78e9be11c3 switch to buffers. 2016-02-22 20:37:15 -08:00
Christopher Jeffrey
23d3343994 fix test. 2016-02-15 15:41:35 -08:00
Christopher Jeffrey
9d727cebae wallet tests. fixes. 2016-02-12 22:32:54 -08:00
Christopher Jeffrey
88c131c7b3 fix pool. hd improvements. 2016-02-12 17:57:21 -08:00
Christopher Jeffrey
bfd570e204 coin selection. misc. 2016-02-12 04:24:35 -08:00
Christopher Jeffrey
158a35881c add address.getType. 2016-02-11 02:00:54 -08:00
Christopher Jeffrey
4a6c73fc8e refactor signing. 2016-02-11 01:29:35 -08:00
Christopher Jeffrey
501abbab45 another wallet rewrite. 2016-02-10 21:06:25 -08:00
Christopher Jeffrey
6cc4c866dc wallet refactor. fixes. 2016-02-10 16:42:02 -08:00
Christopher Jeffrey
84551e17e2 paths. scanning. unspents. 2016-02-05 03:44:42 -08:00
Christopher Jeffrey
b835fff86c hd keys. address pruning. txpool balance. 2016-02-04 18:58:56 -08:00
Christopher Jeffrey
eacd1e2ece bip45 wallet 2016-02-03 19:46:02 -08:00
Christopher Jeffrey
2deccde29e wallet work. consistency. 2016-02-02 16:09:48 -08:00
Christopher Jeffrey
156601e40a createTX. hd fixes. 2016-02-02 02:50:36 -08:00
Christopher Jeffrey
999cfefe54 more pool work. wallet.fill(). 2016-02-01 10:54:52 -08:00
Christopher Jeffrey
9011fcc25e stricter script standards. work on tx. 2016-01-18 01:52:18 -08:00
Christopher Jeffrey
3745577837 standard opcodes. remove tx methods. 2016-01-17 15:52:09 -08:00
Christopher Jeffrey
4f8d24ba36 more int and packet work. 2016-01-13 18:31:07 -08:00
Christopher Jeffrey
e95c1426d3 tests 2016-01-13 04:23:10 -08:00
Christopher Jeffrey
442c984c12 improve p2sh building. change wallet key/redeem methods. 2016-01-10 21:43:52 -08:00
Christopher Jeffrey
9459e278ca fix protocol test. 2016-01-10 04:59:26 -08:00
Christopher Jeffrey
eb1a3ea6d2 transaction improvements. 2016-01-10 04:58:03 -08:00
Christopher Jeffrey
6da3fbac3a add utils.hash test. 2016-01-04 16:03:04 -08:00
Christopher Jeffrey
d32a951f37 fix isMultisig: compare to n value. 2015-12-23 11:45:43 -08:00
Christopher Jeffrey
916d71481b test: check for fee. 2015-12-23 02:40:56 -08:00
Christopher Jeffrey
33a60e59f2 fix test involving fee and dust. 2015-12-23 02:37:05 -08:00
Christopher Jeffrey
a7ea69f48a improve utils: primarily toBTC and fromBTC. 2015-12-21 15:20:01 -08:00
Christopher Jeffrey
0c8168c697 rename colored coin check. all input script tests. 2015-12-17 16:06:08 -08:00
Christopher Jeffrey
3e608c2cc6 script and standard transaction types. prefixes. 2015-12-17 16:06:08 -08:00
Christopher Jeffrey
d7eea0941e add less-than-dust to fee. recalculate fee after input scripts are templated. 2015-12-10 13:52:34 -08:00
Christopher Jeffrey
3dec18c2c7 wallet/tx/script: n limit. refactor multisig options. 2015-12-10 02:25:44 -08:00
Christopher Jeffrey
72d9a93773 fix and test if statements. fix comparisons. 2015-12-09 14:35:23 -08:00
Christopher Jeffrey
22e092d6b8 fix and test hd keys. 2015-12-08 16:36:47 -08:00
Christopher Jeffrey
e4cfa878f1 multisig options. 2015-12-08 15:02:32 -08:00
Christopher Jeffrey
5f8ad78e4d have tx.verify handle p2sh correctly. 2015-12-08 14:54:21 -08:00
Christopher Jeffrey
fd7d20be9c enforce strict ordering with checkmultisig. 2015-12-08 11:46:14 -08:00
Christopher Jeffrey
a770e2bd7b add p2sh multisig test. 2015-12-07 19:18:52 -08:00
Christopher Jeffrey
7016991366 order keys and signatures for multisig correctly. 2015-12-07 19:18:37 -08:00
Christopher Jeffrey
58d8881e46 add hd tests. 2015-12-07 16:17:09 -08:00
Christopher Jeffrey
1804acc77c tests passing. 2015-12-07 14:02:25 -08:00
Stanislas Marion
b76f33047e script: .isScripthash(s)/.isNullData(s) 2014-12-19 08:04:07 +07:00
Stanislas Marion
70608ae2a3 parser: put the exact raw data in tx._raw 2014-11-25 18:44:45 +03:00
Stanislas Marion
7655ad12c7 script: encode/decode op1-16 as single numbers
fix #33
2014-11-17 15:06:37 +03:00
Christopher Jeffrey
005c11e967 parser: fix version parsing. check user agent in tests. 2014-06-06 15:47:29 -05:00
Christopher Jeffrey
3d3e61dc6e test: add test for signing multiple inputs with different keys. 2014-06-06 15:29:34 -05:00
Christopher Jeffrey
9dc0063ea9 test/parser: add version test for height and relay / fix typo. 2014-05-24 02:16:59 -05:00
Christopher Jeffrey
44fab2b58a peer: handle address timestamp better.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:20 +04:00
Christopher Jeffrey
a0c2f66169 peer: fix handleGetAddr. fix addr test.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:20 +04:00
Christopher Jeffrey
2aabef9a6d getaddr: fix framer. add addr to protocol-test.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:19 +04:00
Christopher Jeffrey
db69c882f2 block: add block tests. frame correct version for blocks.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-19 00:21:41 +04:00
Christopher Jeffrey
e04931026c block: add block subtype - block or merkleblock.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-18 21:00:56 +04:00
Fedor Indutny
7e72a4d79d utils: toBTC() 2014-05-15 02:59:07 +04:00
Fedor Indutny
ee9b9cf0e2 wallet: asyncify .fill() 2014-05-11 11:47:00 +04:00
Fedor Indutny
3ef7008a32 wallet: make .fill() throw 2014-05-11 02:41:00 +04:00
Fedor Indutny
89877db9ba test: improve wallet test 2014-05-11 01:51:20 +04:00
Fedor Indutny
2c36c8692a wallet: .fill() 2014-05-11 01:43:20 +04:00
Fedor Indutny
d49b04158f block: validate partial merkle tree 2014-05-10 19:45:03 +04:00
Fedor Indutny
50ed590c30 tx: .inputAddrs() 2014-05-10 13:04:22 +04:00
Fedor Indutny
2e3fb9a7a3 tx-pool: verify all signatures 2014-05-10 12:28:49 +04:00
Fedor Indutny
86088f8ae9 tx-pool: ignore invalid orphans 2014-05-10 11:41:27 +04:00
Fedor Indutny
2ee4c7cd3a tx-pool: save spending TXs 2014-05-09 21:30:55 +04:00
Fedor Indutny
cf2e0042ff tx: .maxSize() method 2014-05-09 15:51:58 +04:00
Fedor Indutny
26516085f2 lib: update bn.js and elliptic 2014-05-09 03:53:57 +04:00
Fedor Indutny
688b16eb98 wallet: preliminary storage support 2014-05-08 14:09:11 +04:00
Fedor Indutny
a6be7bf5f7 lib: JSON serialization for everyone 2014-05-06 21:33:05 +04:00
Fedor Indutny
69f3e85e37 tx-pool: initial 2014-05-06 16:25:46 +04:00
Fedor Indutny
cdd3dbefb1 lib: use TX instead of Tx everywhere 2014-05-06 15:02:09 +04:00
Fedor Indutny
f139ce2d91 wallet: multisig signing 2014-05-06 14:58:51 +04:00
Fedor Indutny
fa48b02d96 tx: remove .inputTx() method 2014-05-06 14:06:17 +04:00
Fedor Indutny
7f0ea92a43 peer: improvements 2014-05-06 00:55:24 +04:00
Fedor Indutny
4328d7c3ec wip 2014-05-05 13:46:29 +04:00
Fedor Indutny
c5d7d7f5f2 tx: test verification 2014-05-05 04:42:12 +04:00
Fedor Indutny
9fd54758a2 tx: wip sign/verify 2014-05-05 03:14:31 +04:00
Fedor Indutny
458e606359 wip 2014-05-04 23:24:32 +04:00
Fedor Indutny
cd3f04268a block: verify 2014-05-03 16:51:16 +04:00
Fedor Indutny
a20cb1688f wip 2014-04-30 12:44:59 +04:00
Fedor Indutny
b6a572f0c0 lib: protocol initial 2014-04-28 17:43:13 +04:00
Fedor Indutny
8a3c9d2dcd initial 2014-04-28 17:12:26 +04:00