Christopher Jeffrey
634e1603a4
rpcclient: fix error messages.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
a278146a33
txdb: lint.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
727380a69a
txdb: refactor layout.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
53f209dda5
mempool: clean up comments. misc.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
31d2f36c42
rpc: mempool.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
af585e2bbd
mempool: more refactoring.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
b0caa3f03a
mempool: keep everything on the js heap.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
c8bc9fb8b6
mempool: rewrite.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
c794c17077
walletdb: lint.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
0f3f9c984b
txdb: refactor.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
80103454c0
walletdb: refactor.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
fbce69dbad
fuck slashes.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
b77c0995ba
walletdb: use buffer keys.
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
989aa15a4c
keyring: do not listen for all types of addrs.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
7f936ade4d
wallet: rename some methods. cleanup.
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
17b176141e
lowlevelup: each.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
e503b7ecad
walletdb: fixes and lint.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
5519ecdfec
request: add timeout.
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
c147e5bdf3
walletdb: better block management.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
e7329b2d1a
chaindb: refactor scanning.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
7259ffa91e
lint.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
7e3575129a
rpc: add custom getmemory call.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
e324e08bef
walletdb: better pathinfo and details handling.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
0a5fcad5e8
keyring: add derive method.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
1e98ce25d9
walletdb: remove global methods. in-memory balance.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
9a1ba962fd
walletdb: minor.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
6e770279db
wallet: use private key for token hash.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
487efb6639
http: add chain watching and scanning.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
59d4fa22ce
http: more validation.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
f42d60769b
http: cli and client refactoring.
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
4b9753d3c3
txdb: balance object.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
c4f16f8d72
wallet: refactor.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
8ef70978d0
wallet: events.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
45867fffb6
wallet: move handleTX.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
09d8ee224c
txdb: give txdb a reference to wallet.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
827f72ebc0
txdb: refactor.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
5b1a7a89ac
txdb-wallet.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
edb8a50c63
txdb: lint.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
e50cbc911c
txdb: remove updated event.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
63c9c81831
txdb: refactor. clean up.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
c582a0fad8
fullnode: add noScan option.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
870f6e65b4
chaindb: scan logs.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
817a6c3031
txdb: optimize.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
9c94fae2a8
txdb: refactor batches.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
400680e208
work
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
092a0968ad
txdb: minor.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
26845593b9
txdb: drop old details methods.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
e098fdeca4
rpc: refactor listunspent.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
e910147544
rpc: fix listunspent.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
3265e80c8e
rpc: tx json yet again.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
24ca0d9fc2
rpc: tx json again...
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
532e46b2d1
rpc: tx json again.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
6b639017d4
rpc: fix tx json.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
de55c82227
txdb: fix getMember.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
e8cb71447c
txdb: fix rpc categorization.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
abd267b7d2
wallet: drop wallet map in favor of path info and tx details.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
914bc8435d
txdb: details and pathinfo.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
759365ca25
wallet: stricter key checks.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
0eaa42bb42
rpc: explicitly pass in height and network.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
e872f5985c
rpc: getreceivedbyaccount.
2016-08-18 02:09:30 -07:00
Christopher Jeffrey
780601b3b7
rpc: abandontransaction.
2016-08-18 02:09:30 -07:00
Chris Kleeschulte
13cfd8aa43
Calling process.hrtime is predicated on being called with
...
an Array type with two elements or with no explicit parameters.
Node 4 (LTS) seems to be persnickety regarding matching undefined as a
actual parameter in process.hrtime (and possibly all functions).
2016-08-11 22:07:13 -04:00
Christopher Jeffrey
e59fe9bf6d
rpc: prioritisetransaction.
2016-08-10 19:47:52 -07:00
Christopher Jeffrey
a0d109f52d
rpc: gettxoutproof and verifytxoutproof.
2016-08-10 19:35:01 -07:00
Christopher Jeffrey
b50f8cc2bb
rpc: getaddednodeinfo.
2016-08-10 18:58:40 -07:00
Christopher Jeffrey
f0c9f1ba81
rpc: fundrawtransaction.
2016-08-10 18:50:32 -07:00
Christopher Jeffrey
1fca8fe645
rpc: add listunspent.
2016-08-10 18:41:36 -07:00
Christopher Jeffrey
295e0d74bd
rpc: s/cost/weight/
2016-08-10 17:30:45 -07:00
Christopher Jeffrey
1b3233e948
rpc: minor style.
2016-08-10 17:25:58 -07:00
Christopher Jeffrey
c7b725450a
rpc: implement getblocktemplate versionbits and polling.
2016-08-10 17:21:58 -07:00
Christopher Jeffrey
a653707a17
walletdb: serious change.
2016-08-10 14:02:50 -07:00
Christopher Jeffrey
cadd3f31ea
rpc: minor.
2016-08-09 21:25:11 -07:00
Christopher Jeffrey
cfee08d58e
rpc: fix findFork.
2016-08-09 21:14:30 -07:00
Christopher Jeffrey
242fbd0a59
rpc: optimize getchaintips.
2016-08-09 21:12:53 -07:00
Christopher Jeffrey
20a8d23c76
rpc: softforks and chain tips.
2016-08-09 19:16:52 -07:00
Christopher Jeffrey
7490ea2b87
rpc: error handling.
2016-08-09 13:07:03 -07:00
Christopher Jeffrey
719222b61d
miner: fix miner.stop().
2016-08-09 12:34:15 -07:00
Christopher Jeffrey
6ee7ac8a51
rpc: fix getrawmempool.
2016-08-09 12:22:07 -07:00
Christopher Jeffrey
d26787b389
txdb: make ps constant.
2016-08-08 18:10:37 -07:00
Christopher Jeffrey
4893c7dba5
rpc: misc fixes.
2016-08-08 15:55:00 -07:00
Christopher Jeffrey
62f687917f
mtx: fix subtractFee.
2016-08-08 14:54:56 -07:00
Christopher Jeffrey
45d424470d
rpc: fix tx details.
2016-08-08 13:19:38 -07:00
Christopher Jeffrey
7d4a683eaa
miner: fix status on workers.
2016-08-08 12:26:13 -07:00
Christopher Jeffrey
b6417cf337
misc: fixes.
2016-08-07 16:32:14 -07:00
Christopher Jeffrey
4a398517d9
rpc: add RPCError.
2016-08-05 15:07:04 -07:00
Christopher Jeffrey
3406a09cd5
rpc: listsinceblock.
2016-08-05 14:49:59 -07:00
Christopher Jeffrey
d32df008df
rpc: add listsinceblock.
2016-08-05 14:44:48 -07:00
Christopher Jeffrey
42e03c227a
rpc: fixes for net and mining.
2016-08-05 14:32:29 -07:00
Christopher Jeffrey
6299b99614
rpc: implement getmininginfo.
2016-08-05 14:27:10 -07:00
Christopher Jeffrey
ac774fbe3a
server: fix rpc auth.
2016-08-05 14:10:32 -07:00
Christopher Jeffrey
0a217e7be2
rpc: add wallet txs.
2016-08-05 14:02:10 -07:00
Christopher Jeffrey
ce7f300260
wallet: add wallet.send.
2016-08-05 13:38:27 -07:00
Christopher Jeffrey
8fe79fc7e7
chain: fix witness check.
2016-08-04 15:46:33 -07:00
Christopher Jeffrey
3cbc5e2726
config: expose index-tx and index-address.
2016-08-04 13:44:45 -07:00
Christopher Jeffrey
2ada7b9e90
wallet: optimize syncOutputDepth.
2016-08-03 17:00:42 -07:00
Christopher Jeffrey
edb9c5afc6
peer: check broadcast list for getblocktxn.
2016-08-02 13:47:29 -07:00
Christopher Jeffrey
765c3d2b77
protobuf: fix safe int check.
2016-08-02 11:23:41 -07:00
Christopher Jeffrey
0b24daba31
chaindb: optimize coin size checking.
2016-08-01 23:42:16 -07:00
Christopher Jeffrey
d86c439017
chachapoly: optimize for little-endian.
2016-08-01 01:19:09 -07:00
Christopher Jeffrey
ac42de6cfb
fullnode: remove bullshit scanning algorithm.
2016-07-31 22:10:37 -07:00
Christopher Jeffrey
1d971b0de0
crypto: improve ccmp.
2016-07-31 20:18:29 -07:00
Christopher Jeffrey
104458a483
rpc: implement more methods.
2016-07-31 20:11:22 -07:00
Christopher Jeffrey
666ff94ddf
ec: recover.
2016-07-31 11:03:23 -07:00
Christopher Jeffrey
bf63691fd2
http: have json rpc use server api key.
2016-07-30 20:39:13 -07:00
Christopher Jeffrey
b1dc35743b
utils: toFastProperties.
2016-07-30 19:47:41 -07:00
Christopher Jeffrey
89d6d73257
bip152: fix passing of _valid.
2016-07-30 18:41:39 -07:00
Christopher Jeffrey
f8c3f37f0c
keypair: minor.
2016-07-30 18:24:45 -07:00
Christopher Jeffrey
7ec21588ac
config: parsing.
2016-07-30 14:11:53 -07:00
Christopher Jeffrey
ec41bf2be5
config: fix arg aliasing.
2016-07-30 13:53:43 -07:00
Christopher Jeffrey
0343140f0a
memblock: optimizations.
2016-07-30 13:44:18 -07:00
Christopher Jeffrey
a03465632a
browser: ldb.
2016-07-30 11:49:01 -07:00
Christopher Jeffrey
90c4f3dcf6
browser: update index.html. misc fixes.
2016-07-29 18:49:41 -07:00
Christopher Jeffrey
0067ddfac1
pool: minor.
2016-07-29 16:19:13 -07:00
Christopher Jeffrey
dfaadd41c6
config: add configuration parser.
2016-07-29 15:40:39 -07:00
Christopher Jeffrey
5364a92308
bip70: whitespace.
2016-07-29 13:25:01 -07:00
Christopher Jeffrey
7d8da2d377
bip70: throw on bad curve.
2016-07-29 13:24:02 -07:00
Christopher Jeffrey
41cc642a32
bip70: javascript rsa implementation.
2016-07-29 13:19:17 -07:00
Christopher Jeffrey
a987513ce9
pool: maxPeers option.
2016-07-28 22:33:11 -07:00
Christopher Jeffrey
a0e0ecdd73
workers: payload length.
2016-07-28 11:57:47 -07:00
Christopher Jeffrey
e709cbeae5
bip151: refactor.
2016-07-27 17:23:15 -07:00
Christopher Jeffrey
6448cea1e7
workers: refactor.
2016-07-27 17:17:17 -07:00
Christopher Jeffrey
812b73ffbc
bip151: use reference slices initially for parsing.
2016-07-27 16:26:43 -07:00
Christopher Jeffrey
28c7ee69e4
crypto: optimize hkdf and pbkdf2.
2016-07-27 07:06:28 -07:00
Christopher Jeffrey
4e977810ce
merkleblock/utils: optimize merkle root calculation.
2016-07-27 06:52:16 -07:00
Christopher Jeffrey
868512e054
chain: remove spv preload.
2016-07-27 06:27:27 -07:00
Christopher Jeffrey
d2ec66c4b7
bip151: remove useless slice.
2016-07-27 06:13:01 -07:00
Christopher Jeffrey
432ee64713
workers: optimize protocol more.
2016-07-27 06:07:53 -07:00
Christopher Jeffrey
52dd3c2cdc
peer: error handling.
2016-07-27 05:52:27 -07:00
Christopher Jeffrey
0b620c2e47
workers: refactor worker protocol.
2016-07-27 05:46:15 -07:00
Christopher Jeffrey
cd8adbcc74
protocol: optimize framer.
2016-07-27 05:40:57 -07:00
Christopher Jeffrey
20d69b7cbc
optimize parsers.
2016-07-27 04:56:07 -07:00
Christopher Jeffrey
0fa972dcb3
refactor parsers.
2016-07-27 04:10:08 -07:00
Christopher Jeffrey
6a2615d3cc
bip151: 32 bit sequence and 64 bit iv.
2016-07-27 04:06:05 -07:00
Christopher Jeffrey
db0552874b
bip151: more micro-optimization.
2016-07-27 03:59:24 -07:00
Christopher Jeffrey
227e9a18b2
workers: optimize parser.
2016-07-27 02:25:30 -07:00
Christopher Jeffrey
3f6a93e180
bip151: refactor parser.
2016-07-27 02:25:21 -07:00
Christopher Jeffrey
01471d6e63
bip151: add minimum packet size.
2016-07-27 01:42:53 -07:00
Christopher Jeffrey
594bbc8b1d
bip151: micro-optimization.
2016-07-27 01:22:57 -07:00
Christopher Jeffrey
208394596e
bip151: use 64 bit sequence numbers for now.
2016-07-27 01:08:50 -07:00
Christopher Jeffrey
6720ecc2c8
bip151: minor.
2016-07-27 00:50:50 -07:00
Christopher Jeffrey
2bd90910b4
bip151: authenticate payload before decryption.
2016-07-27 00:46:39 -07:00
Christopher Jeffrey
f837317ffd
bip151: fix aead aad etm.
2016-07-26 23:39:21 -07:00
Christopher Jeffrey
08bc5ba0a8
bip151: use plaintext packet size as aad (openssh conformance).
2016-07-26 21:49:57 -07:00
Christopher Jeffrey
b6dbc5f709
node: add rpc user and password env variables.
2016-07-26 18:16:03 -07:00
Christopher Jeffrey
bea7bc4677
http: autogen rpc creds.
2016-07-26 18:14:14 -07:00
Christopher Jeffrey
91a1477aeb
http: add bitcoind-compatible json-rpc server.
2016-07-26 18:10:05 -07:00
Christopher Jeffrey
e303ab4ee1
peer: minor renaming for consistency.
2016-07-26 14:25:15 -07:00
Christopher Jeffrey
1c9d283f26
bip151: docs.
2016-07-26 14:07:06 -07:00
Christopher Jeffrey
c085d446ab
peer: minor.
2016-07-26 12:42:31 -07:00
Christopher Jeffrey
7b9eb8b4f2
peer: make bip151 handling less hacky.
2016-07-26 12:23:40 -07:00
Christopher Jeffrey
bccbef0aaa
chain: minor segnet3 fix.
2016-07-26 12:05:18 -07:00
Christopher Jeffrey
c0ac60e291
chain: minor fix for segnet3.
2016-07-26 02:20:36 -07:00
Christopher Jeffrey
b7c280a84c
bip151: minor refactor.
2016-07-26 02:18:40 -07:00
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
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
d11f4deef1
add id to keyring.
2016-07-15 18:20:55 -07:00
Christopher Jeffrey
64ae8c7767
more wallet address mapping.
2016-07-15 18:20:55 -07:00
Christopher Jeffrey
adb7b28795
bip151: fix encack.
2016-06-27 07:13:38 -07:00
Christopher Jeffrey
b74bda623f
lint.
2016-06-27 07:10:26 -07:00
Christopher Jeffrey
90769d7e1a
more mapping.
2016-06-27 06:14:54 -07:00
Christopher Jeffrey
ae7bbeb065
wallet work.
2016-06-27 03:07:43 -07:00
Christopher Jeffrey
b8997c9212
fix aes tests.
2016-06-27 02:23:06 -07:00
Christopher Jeffrey
70b83f22fa
bip151 & bip152: preliminary implementations.
2016-06-27 02:16:01 -07:00
Christopher Jeffrey
5973cad305
minor. ecdh.
2016-06-27 01:06:58 -07:00
Christopher Jeffrey
78d32ce3a2
block refactor.
2016-06-26 23:12:33 -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
86027e9668
wallet: unlock key last.
2016-06-25 13:24:30 -07:00
Christopher Jeffrey
882b18e188
keypair refactor.
2016-06-25 05:07:09 -07:00
Christopher Jeffrey
9b81126ea4
hd refactor.
2016-06-25 03:40:54 -07:00
Christopher Jeffrey
a1943bcb5e
docs.
2016-06-25 02:53:47 -07:00
Christopher Jeffrey
f784c25d01
make encryption async.
2016-06-25 01:10:10 -07:00
Christopher Jeffrey
4c9dca65bd
more wallet work.
2016-06-24 16:59:38 -07:00
Christopher Jeffrey
f1376e5a99
wallet refactor.
2016-06-24 16:42:26 -07:00
Christopher Jeffrey
2a18a76973
fix coins parsing. address type.
2016-06-24 12:54:49 -07:00
Christopher Jeffrey
5cce4539d1
bip114: mast.
2016-06-24 10:23:36 -07:00
Christopher Jeffrey
a70482c0c5
drop changeIndex from tx.
2016-06-23 12:19:25 -07:00
Christopher Jeffrey
d7db03daa3
fix wallet hashes. do not request mempool on main.
2016-06-23 12:06:54 -07:00
Christopher Jeffrey
48855ae56f
fix tests. non-rolling bloom filter for txdb.
2016-06-22 17:51:49 -07:00
Christopher Jeffrey
aec1ebbdd3
fix notfound bug. ensure fast properties for network object.
2016-06-22 16:45:36 -07:00
Christopher Jeffrey
5773d5b445
add packet objects.
2016-06-22 15:12:49 -07:00
Christopher Jeffrey
09e5d93a15
bst: batch op.
2016-06-22 04:35:56 -07:00
Christopher Jeffrey
135fca806c
bst refactor. comments.
2016-06-22 04:32:23 -07:00
Christopher Jeffrey
4d823742c3
improve getutxos.
2016-06-22 03:34:53 -07:00
Christopher Jeffrey
167e187fe0
fix framer bug. witness format.
2016-06-22 03:28:00 -07:00
Christopher Jeffrey
4b1915ca49
funding error.
2016-06-21 16:54:49 -07:00
Christopher Jeffrey
c03f704018
fix http api.
2016-06-21 14:39:56 -07:00
Christopher Jeffrey
61782a70ba
fix input and output json.
2016-06-21 14:17:28 -07:00
Christopher Jeffrey
a8cf57ab7d
minor.
2016-06-21 13:59:05 -07:00
Christopher Jeffrey
bb63c5d164
use estimateFee for createTX.
2016-06-20 17:42:26 -07:00
Christopher Jeffrey
8b262a7ff9
tests. asserts. subtractFee.
2016-06-20 16:56:23 -07:00
Christopher Jeffrey
8a16cefe30
framer.
2016-06-20 04:01:30 -07:00
Christopher Jeffrey
ea512ab9aa
do not and locktimes.
2016-06-20 03:21:53 -07:00
Christopher Jeffrey
8f3f174b25
script parsing.
2016-06-20 03:16:50 -07:00
Christopher Jeffrey
5e330c513e
dust threshold. misc.
2016-06-20 03:16:23 -07:00
Christopher Jeffrey
cc22e97dae
comments. asserts. refactor.
2016-06-20 01:56:47 -07:00
Christopher Jeffrey
b473c0a31f
coin json
2016-06-18 22:32:35 -07:00
Christopher Jeffrey
3a99b23cb3
hd refactor.
2016-06-18 22:10:07 -07:00
Christopher Jeffrey
a1e31f02ae
refactor address.
2016-06-18 21:59:00 -07:00
Christopher Jeffrey
7422b46e75
refactor.
2016-06-18 20:59:34 -07:00
Christopher Jeffrey
3fd3d9bcff
prevout.isNull().
2016-06-18 18:22:26 -07:00
Christopher Jeffrey
821f1175cc
minor.
2016-06-18 17:42:49 -07:00
Christopher Jeffrey
75aad4e771
chachapoly refactor.
2016-06-18 17:42:35 -07:00
Christopher Jeffrey
c02b93adae
lint.
2016-06-17 21:23:05 -07:00
Christopher Jeffrey
da3ce0b4a7
filterload.
2016-06-17 20:41:45 -07:00
Christopher Jeffrey
48b3b0b506
misc.
2016-06-17 20:10:35 -07:00
Christopher Jeffrey
d5529996ef
tests.
2016-06-17 17:54:23 -07:00
Christopher Jeffrey
c3774261b4
minor optimizations.
2016-06-17 16:25:27 -07:00
Christopher Jeffrey
7862418ccc
program. addresses.
2016-06-17 06:34:48 -07:00
Christopher Jeffrey
32e26446b1
sighashing.
2016-06-17 04:30:33 -07:00
Christopher Jeffrey
54d3b350e9
rename. fix testing functions.
2016-06-17 04:10:32 -07:00
Christopher Jeffrey
2d70636fb0
micro optimize.
2016-06-17 03:47:54 -07:00
Christopher Jeffrey
799c40136a
refactor.
2016-06-17 03:41:15 -07:00
Christopher Jeffrey
6216bcbd97
witsize. json.
2016-06-17 03:31:01 -07:00
Christopher Jeffrey
4b5697a615
more serialization work.
2016-06-17 02:26:48 -07:00
Christopher Jeffrey
16404a03ba
serialization... again.
2016-06-17 01:34:59 -07:00
Christopher Jeffrey
f494762a67
api: create address.
2016-06-16 15:37:22 -07:00
Christopher Jeffrey
edbd42b2c2
api fixes.
2016-06-16 15:26:32 -07:00
Christopher Jeffrey
1283e8bd2a
estimator serialization.
2016-06-16 03:41:31 -07:00
Christopher Jeffrey
79bc477476
more refactoring.
2016-06-16 02:51:50 -07:00
Christopher Jeffrey
8cfa46f943
minor.
2016-06-16 02:38:27 -07:00
Christopher Jeffrey
5008a5880c
more refactoring.
2016-06-16 02:27:35 -07:00
Christopher Jeffrey
36fc40ee7c
branch state.
2016-06-16 02:25:42 -07:00
Christopher Jeffrey
51f3d7120b
disabled ops.
2016-06-16 02:23:36 -07:00
Christopher Jeffrey
fca282acdb
script.fromString.
2016-06-16 02:16:29 -07:00
Christopher Jeffrey
9965f258e8
script fixes.
2016-06-16 01:13:06 -07:00
Christopher Jeffrey
b74b6e8b83
handle remove for block better.
2016-06-16 00:18:36 -07:00
Christopher Jeffrey
9d771fe0b6
fix leech peers.
2016-06-15 20:33:17 -07:00
Christopher Jeffrey
d38de71468
logs.
2016-06-15 20:08:44 -07:00
Christopher Jeffrey
6a4fce383e
floor rates and priority.
2016-06-15 18:03:42 -07:00
Christopher Jeffrey
aba92e4a7f
mempool. static int.
2016-06-15 17:50:49 -07:00
Christopher Jeffrey
7e2185dfd6
serialize mempool entries properly.
2016-06-15 17:44:07 -07:00
Christopher Jeffrey
6303530c4f
fees. mempool. createTX.
2016-06-15 17:04:04 -07:00
Christopher Jeffrey
7383971a75
signing checks.
2016-06-15 14:42:27 -07:00
Christopher Jeffrey
ac8a09a55c
allow sloppy scripts.
2016-06-14 19:32:01 -07:00
Christopher Jeffrey
f1e1873514
fix getCoinbaseHeight.
2016-06-14 19:06:17 -07:00
Christopher Jeffrey
3a18052f87
script work.
2016-06-14 18:13:51 -07:00
Christopher Jeffrey
27b18c0fd2
work. mutable scripts.
2016-06-14 16:26:26 -07:00
Christopher Jeffrey
5ae6a4e02c
always compile scripts.
2016-06-13 22:54:57 -07:00
Christopher Jeffrey
3f62a8ae42
scripting system.
2016-06-13 21:25:42 -07:00
Christopher Jeffrey
b088d3fb44
mempool.
2016-06-13 08:29:03 -07:00
Christopher Jeffrey
fc6feb2125
comment.
2016-06-13 08:04:26 -07:00
Christopher Jeffrey
0080c3e519
handle arguments better.
2016-06-13 03:17:28 -07:00
Christopher Jeffrey
87ce4e5583
remove delete calls.
2016-06-13 02:43:19 -07:00
Christopher Jeffrey
9a5f1c556d
strict mode.
2016-06-13 01:06:01 -07:00
Christopher Jeffrey
ce9fe104b3
add connect timeout.
2016-06-13 00:04:34 -07:00
Christopher Jeffrey
e8ee4d3c18
minor.
2016-06-12 23:53:36 -07:00
Christopher Jeffrey
b301fe5def
refactor.
2016-06-12 23:50:18 -07:00
Christopher Jeffrey
e51464f29b
refactor tx.verify.
2016-06-12 23:16:00 -07:00
Christopher Jeffrey
af8e3945b7
refactor.
2016-06-12 22:41:55 -07:00
Christopher Jeffrey
ebe3b3ed54
minor.
2016-06-12 22:34:58 -07:00
Christopher Jeffrey
896f1f989c
clean up script.js.
2016-06-12 14:27:29 -07:00
Christopher Jeffrey
dd57bba151
typos.
2016-06-12 14:14:21 -07:00
Christopher Jeffrey
c056b0d8ab
refactor.
2016-06-12 13:48:02 -07:00
Christopher Jeffrey
2549ffc4a8
fix horrible typo.
2016-06-12 13:17:05 -07:00
Christopher Jeffrey
07261da2e2
refactor.
2016-06-12 12:46:50 -07:00
Christopher Jeffrey
7e5b6a2ff7
minor optimization.
2016-06-12 12:09:23 -07:00
Christopher Jeffrey
408102949c
getHash enc.
2016-06-12 12:01:06 -07:00
Christopher Jeffrey
46fbaf9514
optimize keys.
2016-06-12 11:32:21 -07:00
Christopher Jeffrey
6053497c0c
fix mempool.
2016-06-12 10:26:18 -07:00
Christopher Jeffrey
becbba4aba
lint. optimize.
2016-06-12 10:17:29 -07:00
Christopher Jeffrey
e8130bd04c
refactor.
2016-06-12 10:07:00 -07:00
Christopher Jeffrey
f95f3e929b
optimize more.
2016-06-12 10:01:19 -07:00
Christopher Jeffrey
3e7f1cea42
refactor.
2016-06-12 09:51:34 -07:00
Christopher Jeffrey
9d19388162
minor perf.
2016-06-12 09:36:43 -07:00
Christopher Jeffrey
1e962a5594
optimize.
2016-06-12 09:30:06 -07:00
Christopher Jeffrey
6081998516
Revert "store undo coins in coinviews."
...
This reverts commit f2465c2caf .
2016-06-12 09:11:43 -07:00
Christopher Jeffrey
f2465c2caf
store undo coins in coinviews.
2016-06-12 09:11:40 -07:00
Christopher Jeffrey
247067291c
fixes.
2016-06-12 09:11:25 -07:00
Christopher Jeffrey
68d8a6f2d3
binary keys work.
2016-06-12 08:07:21 -07:00
Christopher Jeffrey
fd7a42a240
binary keys.
2016-06-12 08:07:21 -07:00
Christopher Jeffrey
0abf791bb7
deferred.
2016-06-12 08:07:21 -07:00
Christopher Jeffrey
95b62b4b65
deferred coin.
2016-06-12 08:07:21 -07:00
Christopher Jeffrey
e9c0dc7037
simple coin views.
2016-06-12 08:07:21 -07:00
Christopher Jeffrey
774fc92f99
minor.
2016-06-12 08:07:11 -07:00
Christopher Jeffrey
25db4cfe45
minor.
2016-06-12 08:06:15 -07:00
Christopher Jeffrey
18ff108a77
mempool address methods.
2016-06-12 07:48:08 -07:00
Christopher Jeffrey
f313b43414
alert handling.
2016-06-12 02:25:58 -07:00
Christopher Jeffrey
08f5865e78
set misbehavior for inv and headers.
2016-06-12 01:50:24 -07:00
Christopher Jeffrey
9ccac80ad6
ec: refactor.
2016-06-12 00:41:56 -07:00
Christopher Jeffrey
8471ce165d
filter header sending.
2016-06-11 23:23:53 -07:00
Christopher Jeffrey
84a04b33e5
fees refactor.
2016-06-11 23:20:57 -07:00
Christopher Jeffrey
927fb9c555
refactor block sync. fix fees.
2016-06-11 23:06:37 -07:00
Christopher Jeffrey
59f06bb06c
start estimating fees.
2016-06-11 15:45:26 -07:00
Christopher Jeffrey
84c1ec45c9
whitespace
2016-06-10 23:48:11 -07:00
Christopher Jeffrey
d4571b56bd
reenable hash limit.
2016-06-10 19:06:14 -07:00
Christopher Jeffrey
f120d4d68a
check for negatives and zero in testTarget.
2016-06-10 18:26:18 -07:00
Christopher Jeffrey
aa355feb25
pool fix.
2016-06-10 16:59:47 -07:00
Christopher Jeffrey
68159daf46
add fee estimator.
2016-06-09 17:10:49 -07:00
Christopher Jeffrey
e12a8bb21c
lint.
2016-06-09 16:26:18 -07:00
Christopher Jeffrey
ca3dade3b1
update links.
2016-06-09 16:19:14 -07:00
Christopher Jeffrey
c84175dee1
refactor aes.
2016-06-09 16:16:49 -07:00
Christopher Jeffrey
610ecde401
mempool: tx deps.
2016-06-09 05:43:23 -07:00
Christopher Jeffrey
9ff5ee82e7
consensus change for segwit.
...
See https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2016-June/012747.html
2016-06-09 03:21:31 -07:00
Christopher Jeffrey
1984bc178c
bip151: add chacha20 and poly1305.
2016-06-09 02:18:37 -07:00
Christopher Jeffrey
2cbe8ff411
coins and input.
2016-06-08 16:02:44 -07:00
Christopher Jeffrey
4cd018c31a
fix sync.
2016-06-08 16:02:39 -07:00
Christopher Jeffrey
3289a9388d
minor.
2016-06-08 13:31:15 -07:00
Christopher Jeffrey
4b1f2e1db0
siphash: minor.
2016-06-08 13:20:23 -07:00
Christopher Jeffrey
ab94bf07b3
pool: minor.
2016-06-08 12:21:31 -07:00
Christopher Jeffrey
7791f7b21d
refactor pool.
2016-06-08 03:41:15 -07:00
Christopher Jeffrey
287d718d51
comment.
2016-06-07 18:04:11 -07:00
Christopher Jeffrey
a5fc00d4a6
add siphash.
2016-06-07 17:57:09 -07:00
Christopher Jeffrey
5357fd8567
rename compactblock to avoid confusion.
2016-06-07 11:32:52 -07:00
Christopher Jeffrey
f2bc10726b
relay alerts.
2016-06-07 10:33:07 -07:00
Christopher Jeffrey
fd01c23f4c
move setimmediate.
2016-06-06 23:16:27 -07:00
Christopher Jeffrey
4f98ccfbfb
prune keys.
2016-06-06 23:16:00 -07:00
Christopher Jeffrey
ea4e4b888d
fix state cache optimization.
2016-06-06 16:56:28 -07:00
Christopher Jeffrey
f59ecaeb7f
browser index.html.
2016-06-06 14:06:18 -07:00
Christopher Jeffrey
6ac90a929e
consistency.
2016-06-06 03:32:39 -07:00
Christopher Jeffrey
6a4beafa87
asyncify calls.
2016-06-05 17:48:39 -07:00
Christopher Jeffrey
d1695bf014
options.
2016-06-05 17:31:07 -07:00
Christopher Jeffrey
f71aa44acc
spruce things up for the browser.
2016-06-05 08:20:27 -07:00
Christopher Jeffrey
10efd549ce
consistency.
2016-06-04 19:37:15 -07:00
Christopher Jeffrey
af33e61031
txdb: fix double-spend handling.
2016-06-04 19:34:37 -07:00
Christopher Jeffrey
a6ca11611f
we now support all services.
2016-06-04 09:51:34 -07:00
Christopher Jeffrey
055e5665e3
minor fixes.
2016-06-03 15:22:28 -07:00
Christopher Jeffrey
a5945c1d98
lint.
2016-06-03 12:18:03 -07:00
Christopher Jeffrey
bbec33591d
comments.
2016-06-03 12:15:17 -07:00
Christopher Jeffrey
496b922f18
fix findLocator.
2016-06-03 12:02:07 -07:00
Christopher Jeffrey
c3822dbf70
improve mm3 perf slightly.
2016-06-03 11:29:11 -07:00
Christopher Jeffrey
819795b1ae
chainentry json.
2016-06-02 18:52:23 -07:00
Christopher Jeffrey
33f7b38433
minor improvements.
2016-06-02 17:28:42 -07:00
Christopher Jeffrey
2037060c35
reset chain after spv preload.
2016-06-02 16:45:05 -07:00
Christopher Jeffrey
648e46a252
remove old spv code.
2016-06-02 16:30:33 -07:00
Christopher Jeffrey
47f75c9957
add all addresses to bloom filter.
2016-06-02 16:26:25 -07:00
Christopher Jeffrey
6176b0d228
more pool and spv stuff.
2016-06-02 16:14:04 -07:00
Christopher Jeffrey
6872a18538
optimize target checking.
2016-06-02 14:47:24 -07:00
Christopher Jeffrey
283bf3e561
fix spv. clean up pool.
2016-06-02 12:39:46 -07:00
Christopher Jeffrey
e330317b5c
more http api.
2016-06-02 11:53:55 -07:00
Christopher Jeffrey
dd9fb535fa
fill coins before signing.
2016-06-02 11:38:29 -07:00
Christopher Jeffrey
29d79e57ad
sign created tx.
2016-06-02 11:28:52 -07:00
Christopher Jeffrey
1839bb5725
fix reorganize.
2016-06-02 08:37:45 -07:00
Christopher Jeffrey
5b1ce02324
events. http wallet.
2016-06-02 07:19:30 -07:00
Christopher Jeffrey
2f492dfc89
http wallet.
2016-06-02 05:25:14 -07:00
Christopher Jeffrey
aa163bce33
more refactoring.
2016-06-02 03:47:30 -07:00
Christopher Jeffrey
cde8fdafa6
refactor wallet and walletdb.
2016-06-02 03:34:13 -07:00
Christopher Jeffrey
ac21ebd151
socket.io fixes.
2016-06-02 02:46:39 -07:00
Christopher Jeffrey
a1cabfb8bd
miner. improve workers.
2016-06-02 01:47:11 -07:00
Christopher Jeffrey
71934a22f1
more accurate ComputeBlockVersion.
2016-06-01 23:34:42 -07:00
Christopher Jeffrey
a09c7365aa
fix commit hash caching. fix miner race conditon.
2016-06-01 23:21:55 -07:00
Christopher Jeffrey
b0c36d51dc
lint.
2016-06-01 22:45:40 -07:00
Christopher Jeffrey
712d7801b3
add scrypt to workers.
2016-06-01 22:28:28 -07:00
Christopher Jeffrey
1cc6727de5
fix removeKey.
2016-06-01 22:22:12 -07:00
Christopher Jeffrey
55369ca463
add async scrypt.
2016-06-01 21:20:12 -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
c3ba9808b1
refactor account.
2016-06-01 10:44:22 -07:00
Christopher Jeffrey
4bdaf0ec74
minor.
2016-05-31 23:20:14 -07:00
Christopher Jeffrey
6d7602ddfa
optimize scrypt more.
2016-05-31 22:58:32 -07:00
Christopher Jeffrey
3a2d800ec1
faster scrypt.
2016-05-31 22:52:12 -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
e08b4cf563
balance. walletdb.
2016-05-31 18:25:39 -07:00
Christopher Jeffrey
5b3cc7c0d3
misc. error handling.
2016-05-31 15:39:30 -07:00
Christopher Jeffrey
f4b0d029df
docs.
2016-05-31 13:30:44 -07:00
Christopher Jeffrey
a567a61b41
rename.
2016-05-31 06:47:48 -07:00
Christopher Jeffrey
d4b840065f
return error on bad passphrase.
2016-05-31 06:47:05 -07:00
Christopher Jeffrey
59755841f9
improve path getting.
2016-05-31 06:45:32 -07:00
Christopher Jeffrey
2e5df5514a
change passphrase.
2016-05-31 06:42:12 -07:00
Christopher Jeffrey
4058bba907
coin filling.
2016-05-31 06:10:42 -07:00
Christopher Jeffrey
512f3de412
scanning. local. etc.
2016-05-31 05:59:19 -07:00
Christopher Jeffrey
b16a8ed1c4
lint.
2016-05-31 04:43:44 -07:00
Christopher Jeffrey
60d33ce9db
txdb and walletdb work. scanning.
2016-05-31 04:37:46 -07:00
Christopher Jeffrey
74f5a8916f
more wallet work.
2016-05-31 03:01:56 -07:00
Christopher Jeffrey
976fd46da5
accounts.
2016-05-31 00:46:01 -07:00
Christopher Jeffrey
79d2471a33
mapping.
2016-05-30 19:09:05 -07:00
Christopher Jeffrey
cbd7f06aba
stop using paths.
2016-05-29 12:12:22 -07:00
Christopher Jeffrey
390af13b14
wallets, now with reference counting.
2016-05-29 07:00:36 -07:00
Christopher Jeffrey
ab9301ce7e
serialization. refactor.
2016-05-29 03:04:28 -07:00
Christopher Jeffrey
663e62639d
ser
2016-05-28 21:31:47 -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
7bb67aa449
more wallet work.
2016-05-27 16:20:11 -07:00
Christopher Jeffrey
3480b8c679
more wallet work.
2016-05-27 14:26:40 -07:00
Christopher Jeffrey
9c747cde42
drop provider from wallet.
2016-05-27 05:04:00 -07:00
Christopher Jeffrey
b7bc1cfe77
more socket.io things.
2016-05-27 01:07:43 -07:00
Christopher Jeffrey
0e31719d13
Revert "simple coin views."
...
This reverts commit 5074e3100d .
2016-05-27 00:27:09 -07:00
Christopher Jeffrey
5074e3100d
simple coin views.
2016-05-26 23:47:54 -07:00
Christopher Jeffrey
2884a794c3
coins
2016-05-26 23:47:41 -07:00
Christopher Jeffrey
d89b545604
fix misbehaving check.
2016-05-26 17:36:24 -07:00
Christopher Jeffrey
e59cf312c6
prefix. profiler.
2016-05-26 17:10:21 -07:00
Christopher Jeffrey
2612d2cc5c
fill block coins.
2016-05-26 15:05:25 -07:00
Christopher Jeffrey
1ef834ca3e
fixes for perf.
2016-05-26 04:40:52 -07:00
Christopher Jeffrey
e2817436de
improve address management.
2016-05-25 17:38:42 -07:00
Christopher Jeffrey
5ae0c441c1
move ip utils.
2016-05-25 14:39:54 -07:00
Christopher Jeffrey
e59feaf695
minor.
2016-05-25 14:20:07 -07:00
Christopher Jeffrey
284bba746a
use node-ip.
2016-05-25 13:23:27 -07:00
Christopher Jeffrey
6ab0b2636c
fix remoteAddress == undefined problem.
2016-05-25 11:46:39 -07:00
Christopher Jeffrey
4aca23e7e8
minor.
2016-05-25 05:16:25 -07:00
Christopher Jeffrey
f065179d69
fix banning in certain cases.
2016-05-25 03:15:00 -07:00
Christopher Jeffrey
77d7916f1e
support hybrid keys. see indutny/elliptic#91 .
2016-05-25 02:48:41 -07:00
Christopher Jeffrey
2738a4ed5d
merkle refactor. misc.
2016-05-25 02:01:16 -07:00
Christopher Jeffrey
afeb1d1d34
lint.
2016-05-25 01:39:08 -07:00
Christopher Jeffrey
dccfc91974
block tests.
2016-05-24 23:48:52 -07:00
Christopher Jeffrey
1de2df0c3a
ignore misbehaving leeches.
2016-05-24 16:24:03 -07:00
Christopher Jeffrey
c5fc69ee93
handle mempool.
2016-05-24 11:43:14 -07:00
Christopher Jeffrey
ee09a6d2d0
typo.
2016-05-24 11:41:21 -07:00
Christopher Jeffrey
7756fc2c73
ensure packets are served in order.
2016-05-24 11:39:48 -07:00
Christopher Jeffrey
e2626c32f0
mkdirp.
2016-05-24 01:18:56 -07:00
Christopher Jeffrey
da701cbef4
refactor merkleblock.
2016-05-24 00:56:31 -07:00
Christopher Jeffrey
9afb141dce
minor.
2016-05-23 22:18:26 -07:00
Christopher Jeffrey
1011d1f824
directory structure.
2016-05-23 20:30:09 -07:00
Christopher Jeffrey
1c2e1b8000
minor.
2016-05-23 19:55:53 -07:00
Christopher Jeffrey
9c89630490
block tests. fix spv and bloom filters.
2016-05-23 19:38:06 -07:00
Christopher Jeffrey
499d0c6a7e
minor.
2016-05-23 06:01:52 -07:00
Christopher Jeffrey
e8cf4ea8be
ip and version.
2016-05-23 05:33:27 -07:00
Christopher Jeffrey
ae41e11ff3
do not ignore old orphans.
2016-05-23 03:54:15 -07:00
Christopher Jeffrey
e968e1701e
stop requesting every tx in existence.
2016-05-23 03:51:35 -07:00
Christopher Jeffrey
65278a3296
separate debug files.
2016-05-23 03:33:36 -07:00
Christopher Jeffrey
77e28d28f4
minor.
2016-05-23 03:28:16 -07:00
Christopher Jeffrey
7cf1f8802f
add orphan events to mempool.
2016-05-23 03:24:25 -07:00
Christopher Jeffrey
ed08f36e07
fix block sync. improve announce vs. sendInv.
2016-05-23 03:11:31 -07:00
Christopher Jeffrey
cd4f6a71ae
ec.rand, again.
2016-05-23 02:23:34 -07:00
Christopher Jeffrey
62f5d6f803
fix ec.rand().
2016-05-23 02:21:31 -07:00
Christopher Jeffrey
8cf9b8c480
less special treatment for loader peer.
2016-05-23 02:04:27 -07:00
Christopher Jeffrey
2b2a747eab
network for miner blocks.
2016-05-23 01:31:24 -07:00
Christopher Jeffrey
3f4e0f5040
refactor miner.
2016-05-23 01:04:55 -07:00
Christopher Jeffrey
8c8b62a57f
headers sync.
2016-05-23 00:49:52 -07:00
Christopher Jeffrey
373e474f59
remove service properties.
2016-05-22 23:49:34 -07:00
Christopher Jeffrey
013b59a9cc
fix typos.
2016-05-22 23:16:08 -07:00
Christopher Jeffrey
d85956b63f
parallelize mining. listen for worker pipe errors.
2016-05-22 21:21:18 -07:00
Christopher Jeffrey
53dbac9c87
more relay fixes.
2016-05-22 19:14:20 -07:00
Christopher Jeffrey
e8f5be9830
workers. fix inv relaying.
2016-05-22 18:13:54 -07:00
Christopher Jeffrey
c71e7646d3
fix readvarint2. fix memUsage.
2016-05-22 17:57:06 -07:00
Christopher Jeffrey
26d3003a9d
parse errors.
2016-05-22 16:45:38 -07:00
Christopher Jeffrey
d605af7ed8
fix race condition.
2016-05-22 07:23:37 -07:00
Christopher Jeffrey
92e8a9c4bc
new varint2.
2016-05-22 06:54:36 -07:00
Christopher Jeffrey
5537eb1995
optimize parsing and serialization. strict parsing.
2016-05-22 06:31:35 -07:00
Christopher Jeffrey
5fb8727a80
fix lowlevelup and walletdb.
2016-05-21 23:01:53 -07:00
Christopher Jeffrey
cf041e1fad
Revert "hash bloom"
...
This reverts commit f7dd8a6e8a .
2016-05-21 17:38:06 -07:00
Christopher Jeffrey
2c809e28fd
segwit activation for testnet. work around leveldown bug.
2016-05-21 16:41:30 -07:00
Christopher Jeffrey
f7dd8a6e8a
hash bloom
2016-05-21 16:37:48 -07:00
Christopher Jeffrey
c398564036
refactor peer and pool.
2016-05-21 09:51:33 -07:00
Christopher Jeffrey
3e2f43e178
use bloom filter for addresses in wallet db.
2016-05-20 17:12:00 -07:00
Christopher Jeffrey
292e077550
optimization for rolling filter.
2016-05-20 16:42:34 -07:00
Christopher Jeffrey
14b2b528f3
switch back to rolling filters.
2016-05-20 16:11:17 -07:00
Christopher Jeffrey
d8800632ea
optimize new generations with rolling filter.
2016-05-20 16:05:03 -07:00
Christopher Jeffrey
381c1ca1f1
rolling bloom filter.
2016-05-20 14:40:36 -07:00
Christopher Jeffrey
8e5cdbdfcd
add rejects filter.
2016-05-20 07:09:24 -07:00
Christopher Jeffrey
d9d18f2be7
use bloom filters to avoid double sending to peers.
2016-05-20 06:11:28 -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
72e5d5fbc7
better orphan handling.
2016-05-20 04:16:15 -07:00
Christopher Jeffrey
e97f1d0477
better ping system.
2016-05-19 22:34:27 -07:00
Christopher Jeffrey
bd3d17ef53
refactor.
2016-05-19 21:35:02 -07:00
Christopher Jeffrey
b4bfe53bfe
refactor utils.
2016-05-19 21:31:39 -07:00
Christopher Jeffrey
39a8ecc398
remove asserts.
2016-05-19 21:11:02 -07:00
Christopher Jeffrey
cd94217abd
pool: minor.
2016-05-19 21:09:11 -07:00
Christopher Jeffrey
712a445b99
utils and createServer callback.
2016-05-19 21:05:26 -07:00
Christopher Jeffrey
435f631f05
stop using hostname getter.
2016-05-19 20:34:34 -07:00
Christopher Jeffrey
29cac3515a
refactor binary search.
2016-05-19 19:37:11 -07:00
Christopher Jeffrey
a94a2a101d
fix big endian 64 bit ints.
2016-05-19 19:32:08 -07:00
Christopher Jeffrey
29c5203090
docs.
2016-05-19 18:43:31 -07:00
Christopher Jeffrey
8d5d6dbd88
update docs pertaining to address maps.
2016-05-19 18:27:27 -07:00
Christopher Jeffrey
1bc60a3e0e
docs
2016-05-19 18:20:30 -07:00
Christopher Jeffrey
e65da93ce1
more refactoring.
2016-05-19 18:07:37 -07:00
Christopher Jeffrey
9966718e9c
refactor loadrequest.
2016-05-19 16:53:17 -07:00
Christopher Jeffrey
64830059d7
rename utils.slice.
2016-05-19 16:47:41 -07:00
Christopher Jeffrey
5d1c39bf41
remove debug code.
2016-05-19 16:30:46 -07:00
Christopher Jeffrey
3be5655539
get bcoin working on windows.
2016-05-19 16:09:21 -07:00
Christopher Jeffrey
cef88c6e4e
more pool work.
2016-05-19 16:08:56 -07:00
Christopher Jeffrey
65125f7b4f
minor.
2016-05-19 12:04:11 -07:00
Christopher Jeffrey
ed1a8ef718
pool.listen.
2016-05-19 11:56:11 -07:00
Christopher Jeffrey
b83a4a6a2c
fix parseHost.
2016-05-19 01:39:28 -07:00
Christopher Jeffrey
3979e57acc
fix options for http.
2016-05-19 01:33:32 -07:00
Christopher Jeffrey
3e2d4aa717
remove old getSeed code.
2016-05-19 00:44:06 -07:00
Christopher Jeffrey
ae230cf294
refactor tx.
2016-05-19 00:17:01 -07:00
Christopher Jeffrey
f714bbf2c0
minor. remove sendBlock/sendTX.
2016-05-18 23:58:12 -07:00
Christopher Jeffrey
5f6aa10cbc
refactor aes.
2016-05-18 22:15:00 -07:00
Christopher Jeffrey
dd8c92d5fd
handle errors better in parser.
2016-05-18 18:56:35 -07:00
Christopher Jeffrey
17d9db5926
remove asserts.
2016-05-18 18:49:31 -07:00
Christopher Jeffrey
3c4d4c2724
remove old pool methods. readme.
2016-05-18 18:33:11 -07:00
Christopher Jeffrey
3154a1c914
add feefilter packet. misc.
2016-05-18 17:58:29 -07:00
Christopher Jeffrey
07517ecd04
rewrite broadcast system.
2016-05-18 15:01:19 -07:00
Christopher Jeffrey
ee3d3eaea1
drop utils.read/write.
2016-05-18 08:52:08 -07:00
Christopher Jeffrey
b9c7afa0ea
coin.fromTX.
2016-05-18 05:12:28 -07:00
Christopher Jeffrey
c6e36353fa
block.addTX.
2016-05-18 05:02:03 -07:00
Christopher Jeffrey
070af4643f
remove old mutable check from block.getSizes.
2016-05-18 04:42:38 -07:00
Christopher Jeffrey
b04d4e3be1
render block when getting size (optimization).
2016-05-18 04:32:20 -07:00
Christopher Jeffrey
6005f0f750
whole bunch of refactoring.
2016-05-18 04:23:05 -07:00
Christopher Jeffrey
a2ddb960f5
drop script.fromSymbolic.
2016-05-18 02:09:55 -07:00
Christopher Jeffrey
370b5aeb24
hd.
2016-05-17 15:25:39 -07:00
Christopher Jeffrey
559cb62889
varint. misc.
2016-05-17 15:17:39 -07:00
Christopher Jeffrey
ec21986062
optimize getProof. misc.
2016-05-17 14:50:09 -07:00
Christopher Jeffrey
a6727fd84e
add scrypt if we want to support bip38.
2016-05-16 21:31:29 -07:00
Christopher Jeffrey
6afee3cccb
speed up mempoolentry.toRaw.
2016-05-16 18:49:23 -07:00
Christopher Jeffrey
43f0ee2207
minor.
2016-05-16 18:39:57 -07:00
Christopher Jeffrey
eab9834103
utils.ip2array
2016-05-16 18:37:14 -07:00
Christopher Jeffrey
599bbffe1e
optimize getBalance.
2016-05-16 17:56:35 -07:00
Christopher Jeffrey
66569df692
fix writer.fill.
2016-05-16 17:32:15 -07:00
Christopher Jeffrey
92c5dd0832
Revert "refactor."
...
This reverts commit f0cc2f8c6c .
2016-05-16 17:14:12 -07:00
Christopher Jeffrey
e354dea283
varint assert.
2016-05-16 17:05:55 -07:00
Christopher Jeffrey
f0cc2f8c6c
refactor.
2016-05-16 16:02:28 -07:00
Christopher Jeffrey
3bb03c63fa
move sizePush.
2016-05-16 15:58:07 -07:00
Christopher Jeffrey
aa24f6facf
optimize writer.
2016-05-16 15:52:14 -07:00
Christopher Jeffrey
f0c73f41a6
refactor reader and writer.
2016-05-16 15:32:20 -07:00
Christopher Jeffrey
7e4ac9b0ed
fill and seek.
2016-05-16 15:27:33 -07:00
Christopher Jeffrey
6e97a7d431
add floats to reader and writer.
2016-05-16 15:17:51 -07:00
Christopher Jeffrey
052c18e091
Network.isNetwork.
2016-05-16 13:20:36 -07:00
Christopher Jeffrey
48f8edbe80
hd testing methods.
2016-05-16 13:17:04 -07:00
Christopher Jeffrey
9ac406aa2d
move checkInputs for accuracy.
2016-05-16 05:05:33 -07:00
Christopher Jeffrey
f48fa2b994
safe priority serialization.
2016-05-16 04:57:31 -07:00
Christopher Jeffrey
533e644284
priority calculation.
2016-05-16 04:55:39 -07:00
Christopher Jeffrey
8f3fae329d
refactor mempool.
2016-05-16 04:49:14 -07:00
Christopher Jeffrey
88a5b8a784
refactor mempool orphans.
2016-05-16 04:36:19 -07:00
Christopher Jeffrey
c37a069978
fix limitOrphans.
2016-05-16 04:07:18 -07:00
Christopher Jeffrey
0b6f86c9d5
refactor testTarget.
2016-05-16 03:59:42 -07:00
Christopher Jeffrey
9a962bb73a
fix force53 handling in read64n.
2016-05-16 03:53:25 -07:00
Christopher Jeffrey
58259b6bb6
Revert "use buffers for nonces."
...
This reverts commit 404bdcd109 .
2016-05-16 03:47:55 -07:00
Christopher Jeffrey
404bdcd109
use buffers for nonces.
2016-05-16 03:47:49 -07:00
Christopher Jeffrey
e74b163b9e
utils.nonce.
2016-05-16 03:41:50 -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
c598937e4c
minor.
2016-05-16 01:37:09 -07:00
Christopher Jeffrey
278ff82658
FindAndDelete again.
2016-05-15 23:51:18 -07:00
Christopher Jeffrey
6c997e20b5
remove alternative script num methods.
2016-05-15 22:33:20 -07:00
Christopher Jeffrey
c6ccb0fccf
faster negative script nums.
2016-05-15 22:18:33 -07:00
Christopher Jeffrey
ab68e23238
fix disabled opcodes comparison.
2016-05-15 21:58:54 -07:00
Christopher Jeffrey
1513f06bce
expose opcodes from script module.
2016-05-15 21:55:17 -07:00
Christopher Jeffrey
52541fe123
tests. block reward.
2016-05-15 21:47:39 -07:00
Christopher Jeffrey
39db4e065b
ldb: minor.
2016-05-15 21:29:15 -07:00
Christopher Jeffrey
4314d0cd6a
more tx tests. comments.
2016-05-15 20:32:34 -07:00
Christopher Jeffrey
be3b578267
ldb refactor.
2016-05-15 20:11:23 -07:00
Christopher Jeffrey
a5b8da17fc
services.
2016-05-15 18:33:54 -07:00
Christopher Jeffrey
5ac4621b0e
comments. docs.
2016-05-15 18:22:28 -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
6776c701e3
minor.
2016-05-15 16:18:13 -07:00
Christopher Jeffrey
d91a8b1086
add supersha.
2016-05-15 04:15:24 -07:00
Christopher Jeffrey
4b0519a073
more tests. utils.
2016-05-15 03:33:58 -07:00
Christopher Jeffrey
022de4a91d
cache values.
2016-05-15 00:59:29 -07:00
Christopher Jeffrey
a7f3d2aa8f
ints.
2016-05-15 00:40:21 -07:00
Christopher Jeffrey
dd5c9096a7
use js numbers for values.
2016-05-14 20:57:52 -07:00
Christopher Jeffrey
f38350ec14
fix address.toScript.
2016-05-14 16:10:41 -07:00
Christopher Jeffrey
a1c200356e
mempool: minor.
2016-05-14 14:57:32 -07:00
Christopher Jeffrey
d68509da1d
comments. refactor.
2016-05-14 14:53:40 -07:00
Christopher Jeffrey
31c4b4622a
workers: minor.
2016-05-14 14:44:06 -07:00
Christopher Jeffrey
3a9a0d9840
fix worker mining.
2016-05-14 14:30:59 -07:00
Christopher Jeffrey
7e8ac5e159
comments.
2016-05-14 14:13:19 -07:00
Christopher Jeffrey
493f0092e4
comments. refactor how module is exposed.
2016-05-14 13:22:43 -07:00
Christopher Jeffrey
86fbd64598
add network to new wallets.
2016-05-14 11:31:07 -07:00
Christopher Jeffrey
3cea8323b0
hd and ec refactor.
2016-05-14 10:54:00 -07:00
Christopher Jeffrey
6690991acb
more hd improvements.
2016-05-13 19:28:19 -07:00
Christopher Jeffrey
b164984307
hd refactor.
2016-05-13 18:38:36 -07:00
Christopher Jeffrey
6d55077818
fee work.
2016-05-13 17:21:13 -07:00
Christopher Jeffrey
6a45d693ee
rename chainblock for consistency.
2016-05-13 15:33:25 -07:00
Christopher Jeffrey
6c370e908f
fixes.
2016-05-13 15:32:04 -07:00
Christopher Jeffrey
86bc2227a4
get address working.
2016-05-13 13:38:18 -07:00
Christopher Jeffrey
6bf5554325
rename address.
2016-05-13 13:15:38 -07:00
Christopher Jeffrey
897e4ae662
hd refactor.
2016-05-13 13:04:55 -07:00
Christopher Jeffrey
8db6e1c9a6
store by hash.
2016-05-13 12:01:06 -07:00
Christopher Jeffrey
e51ae84f37
address object.
2016-05-13 11:07:24 -07:00
Christopher Jeffrey
fc22de77bf
tests passing.
2016-05-13 10:04:56 -07:00
Christopher Jeffrey
020d09a6fe
expose function.
2016-05-13 09:34:09 -07:00
Christopher Jeffrey
5eb3946e38
major refactor.
2016-05-13 09:24:04 -07:00
Christopher Jeffrey
5193e3533a
halflife.
2016-05-13 05:53:51 -07:00
Christopher Jeffrey
361134029f
move some chaindb stuff around.
2016-05-13 04:52:35 -07:00
Christopher Jeffrey
f4be7651cd
refactor txdb and chaindb db usage.
2016-05-13 04:49:21 -07:00
Christopher Jeffrey
5a2834dcec
more mempool work.
2016-05-13 04:48:46 -07:00
Christopher Jeffrey
ced84ca25b
db. mempool.
2016-05-13 02:53:55 -07:00
Christopher Jeffrey
679d4194b1
random.
2016-05-12 17:25:56 -07:00
Christopher Jeffrey
72c2d25efc
entries.
2016-05-12 15:59:05 -07:00
Christopher Jeffrey
4ce1ed3046
Revert "require height."
...
This reverts commit c334d1f9d8 .
2016-05-12 14:17:35 -07:00
Christopher Jeffrey
c334d1f9d8
require height.
2016-05-12 14:17:32 -07:00
Christopher Jeffrey
a5d72188c0
remove random orphans.
2016-05-12 13:18:47 -07:00
Christopher Jeffrey
9a42f86c2e
more mempool work.
2016-05-12 03:05:34 -07:00
Christopher Jeffrey
f4f4658390
mempool. remove spenders.
2016-05-11 23:25:23 -07:00
Christopher Jeffrey
67dc96ff5d
remove seenTX.
2016-05-11 19:26:34 -07:00
Christopher Jeffrey
299a49e76b
store mempool orphans in memory always.
2016-05-11 19:23:38 -07:00
Christopher Jeffrey
a940ea5158
mempool size.
2016-05-11 19:09:48 -07:00
Christopher Jeffrey
d3383499c0
mempool. fees.
2016-05-11 17:08:53 -07:00
Christopher Jeffrey
62bc8b077d
miner, chainblock, workers.
2016-05-10 12:18:36 -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
15045bfb0b
fix notfound handler.
2016-05-09 09:49:28 -07:00
Christopher Jeffrey
2189d79c47
optimization for checkFinal.
2016-05-09 09:35:41 -07:00
Christopher Jeffrey
d5c9c31534
fix spv again.
2016-05-09 09:29:50 -07:00
Christopher Jeffrey
4700990bcd
mempool locker hasPending.
2016-05-09 00:56:44 -07:00
Christopher Jeffrey
5c61760fef
minor.
2016-05-09 00:51:12 -07:00
Christopher Jeffrey
24ff3fe6d4
profiler.
2016-05-08 12:12:55 -07:00
Christopher Jeffrey
cb6b43f0b6
check for indextx.
2016-05-07 17:03:19 -07:00
Christopher Jeffrey
db1f34c00d
sigops. redeem testing. input type testing.
2016-05-07 07:34:48 -07:00
Christopher Jeffrey
692f2c7cf0
catch all parse errors.
2016-05-07 04:47:44 -07:00
Christopher Jeffrey
9bf1c6de13
comment
2016-05-07 04:32:33 -07:00
Christopher Jeffrey
0e91da7a33
comment
2016-05-07 03:44:06 -07:00
Christopher Jeffrey
f171bb0668
fix spv option check.
2016-05-07 03:38:13 -07:00
Christopher Jeffrey
8860eb5894
refactor chain args.
2016-05-07 03:35:52 -07:00
Christopher Jeffrey
d1aaaefda1
fix spv.
2016-05-07 03:21:03 -07:00
Christopher Jeffrey
b85a98b4ca
broadcast option.
2016-05-07 00:52:55 -07:00
Christopher Jeffrey
41a864d130
block sync.
2016-05-07 00:27:46 -07:00
Christopher Jeffrey
6fb0689ce4
worker debug.
2016-05-06 23:56:08 -07:00
Christopher Jeffrey
9b2d80098a
orphan fork and notfound.
2016-05-06 23:10:31 -07:00
Christopher Jeffrey
f11f4091f5
ignore orphans.
2016-05-06 22:54:32 -07:00
Christopher Jeffrey
080dfb3a9f
minor.
2016-05-06 22:48:51 -07:00
Christopher Jeffrey
7e3635bce6
minor.
2016-05-06 20:11:57 -07:00
Christopher Jeffrey
81c8eb5f5b
fix witness error type.
2016-05-06 16:42:33 -07:00
Christopher Jeffrey
6a482af6d0
coinbase flags.
2016-05-06 15:34:36 -07:00
Christopher Jeffrey
1bf606a22d
check orphan txs before requesting.
2016-05-06 14:10:01 -07:00
Christopher Jeffrey
3326078694
check mempool before requesting tx.
2016-05-06 14:03:50 -07:00
Christopher Jeffrey
5d1e3e1034
add txs to mempool before removing.
2016-05-06 13:56:40 -07:00
Christopher Jeffrey
2b2598a892
remove getHashRange.
2016-05-06 13:08:21 -07:00
Christopher Jeffrey
9301cf89a2
getLocator again.
2016-05-06 13:07:58 -07:00
Christopher Jeffrey
c5181c272b
getLocator. optimize height lookup.
2016-05-06 04:10:27 -07:00
Christopher Jeffrey
198aee6560
fixes.
2016-05-06 02:00:26 -07:00
Christopher Jeffrey
4d937e642a
drop old caching mechanism.
2016-05-05 19:48:59 -07:00
Christopher Jeffrey
5fd44dbed8
check sequence locks.
2016-05-05 19:41:14 -07:00
Christopher Jeffrey
e2bcbcaba5
cache, again.
2016-05-05 18:57:34 -07:00
Christopher Jeffrey
625fb729f5
state caching.
2016-05-05 18:54:18 -07:00
Christopher Jeffrey
4af0372ca8
fix timedata.
2016-05-05 17:47:29 -07:00
Christopher Jeffrey
efe04e528a
refactor.
2016-05-05 17:09:34 -07:00
Christopher Jeffrey
8e65b43d40
assert.
2016-05-05 06:25:10 -07:00
Christopher Jeffrey
98774d0c0b
make witness scripts abide by max_element_size again.
2016-05-05 06:24:09 -07:00
Christopher Jeffrey
f5b4bb2bf6
move extended tx serialization.
2016-05-05 05:25:40 -07:00
Christopher Jeffrey
fe18352a4c
no default timeout.
2016-05-05 04:56:57 -07:00
Christopher Jeffrey
cb29feada8
worker timeout and listeners.
2016-05-05 04:52:37 -07:00
Christopher Jeffrey
3ae754722d
chain. verify async.
2016-05-05 04:45:34 -07:00
Christopher Jeffrey
eea25052b6
refactor hash and address handling in wallet.
2016-05-05 04:30:45 -07:00
Christopher Jeffrey
079d82e80c
do not store unspendable coins.
2016-05-05 03:41:22 -07:00
Christopher Jeffrey
2faf8513c4
add adding state to chain.
2016-05-05 03:08:20 -07:00
Christopher Jeffrey
019617162c
do not allow negative compact numbers.
2016-05-05 01:18:08 -07:00
Christopher Jeffrey
4802f409ca
chain logs.
2016-05-04 22:18:31 -07:00
Christopher Jeffrey
df3b246d60
utils.btc
2016-05-04 17:57:16 -07:00
Christopher Jeffrey
477c4f5dbb
set height on genesis block.
2016-05-04 17:21:09 -07:00
Christopher Jeffrey
aefe60b6d4
assert.
2016-05-04 16:42:05 -07:00
Christopher Jeffrey
5eed6081c7
fix handleGetAddr.
2016-05-04 16:38:32 -07:00
Christopher Jeffrey
a4b1bc5a23
add rpc port constants.
2016-05-04 16:08:49 -07:00
Christopher Jeffrey
1b3d2ddaaa
only update network height on orphan.
2016-05-04 04:25:14 -07:00
Christopher Jeffrey
5dc4edbda5
minor.
2016-05-04 03:51:58 -07:00
Christopher Jeffrey
a370bd74ed
remove old FindAndDelete.
2016-05-04 01:07:33 -07:00
Christopher Jeffrey
51ebcf999b
faster FindAndDelete.
2016-05-04 01:06:34 -07:00
Christopher Jeffrey
e67a16c2bd
docs. minor.
2016-05-03 21:16:29 -07:00
Christopher Jeffrey
f69563346d
exit listener for worker.
2016-05-03 19:05:51 -07:00
Christopher Jeffrey
9aa1e9b8f1
minor.
2016-05-03 14:36:25 -07:00
Christopher Jeffrey
aac2f629d0
docs.
2016-05-03 03:56:07 -07:00
Christopher Jeffrey
a5ad8dcbfa
refactor workers. add web workers.
2016-05-03 02:58:55 -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
0f4a591665
script: minor.
2016-04-30 21:08:32 -07:00
Christopher Jeffrey
8d38178b30
more utils refactoring.
2016-04-30 20:06:26 -07:00
Christopher Jeffrey
30abc9bc25
minor.
2016-04-30 19:53:48 -07:00
Christopher Jeffrey
74a5a39bf7
refactor utils.
2016-04-30 19:50:12 -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
aa3579c8cd
aes.
2016-04-30 04:22:11 -07:00
Christopher Jeffrey
839f915fb7
comments.
2016-04-30 02:43:12 -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
65f99b736b
minor refactor
2016-04-29 23:35:48 -07:00
Christopher Jeffrey
57ceeabd95
add script asm.
2016-04-29 21:45:18 -07:00
Christopher Jeffrey
0b8101b756
minor.
2016-04-29 21:04:52 -07:00
Christopher Jeffrey
d89bd13f09
move errors around. assert.
2016-04-29 18:17:48 -07:00
Christopher Jeffrey
06171c5779
cleanup bufferreader.
2016-04-29 17:15:21 -07:00
Christopher Jeffrey
383014e754
faster strings for bufferwriter.
2016-04-29 17:09:13 -07:00
Christopher Jeffrey
5ef65a4129
mnemonic. undo coins.
2016-04-29 16:49:47 -07:00
Christopher Jeffrey
90790ac675
refactor parsing.
2016-04-29 07:23:30 -07:00
Christopher Jeffrey
f6b42ae5f3
do not store lang.
2016-04-29 06:11:54 -07:00
Christopher Jeffrey
9814dc32f7
mnemonic refactor.
2016-04-29 06:02:31 -07:00
Christopher Jeffrey
8e9f0d1bf7
support other languages.
2016-04-29 05:53:40 -07:00
Christopher Jeffrey
1d8c9e7c99
mnemonic improvements.
2016-04-29 05:49:10 -07:00
Christopher Jeffrey
845a987e00
undo coins.
2016-04-29 02:48:12 -07:00
Christopher Jeffrey
8344879a16
docs. coin selection.
2016-04-29 00:21:34 -07:00
Christopher Jeffrey
dcacd5e11b
more accurate fee calculation.
2016-04-28 23:22:19 -07:00
Christopher Jeffrey
9468b00d1c
refactor. cleanup.
2016-04-28 23:01:34 -07:00
Christopher Jeffrey
e4921af906
comments.
2016-04-28 15:01:53 -07:00
Christopher Jeffrey
37218092ab
expose uri.
2016-04-28 15:01:53 -07:00
Christopher Jeffrey
270feadf74
move jsdoc types.
2016-04-28 15:01:53 -07:00
Christopher Jeffrey
214a78acbf
do not connect the genesis block.
2016-04-28 15:01:53 -07:00
Christopher Jeffrey
f2a35c46c2
fix findanddelete.
2016-04-28 15:01:53 -07:00
Christopher Jeffrey
62bab2bf32
O(n) sighashing.
2016-04-28 15:01:53 -07:00
Christopher Jeffrey
fbeefe03c7
more accurate sighashing.
2016-04-28 15:01:53 -07:00
Christopher Jeffrey
e258755671
stop using vsize. switch to cost.
2016-04-28 15:01:53 -07:00
Christopher Jeffrey
c312550429
add uri parsing.
2016-04-28 15:01:53 -07:00
Christopher Jeffrey
f27cde4159
sigop counting. consensus stuff.
2016-04-28 15:01:53 -07:00
Christopher Jeffrey
6e2b58c16d
script and reader.
2016-04-28 15:01:53 -07:00
Christopher Jeffrey
381e2c52b9
lru.
2016-04-28 15:01:53 -07:00
Mark Vayngrib
fb0e962f30
fix args normalization in getHeightRangeHashes
2016-04-25 17:02:47 -04:00
Christopher Jeffrey
51a39c3a52
cache window.
2016-04-21 14:28:46 -07:00
Christopher Jeffrey
dbf21b2538
pending limit.
2016-04-21 14:14:33 -07:00
Christopher Jeffrey
80c6c5975e
lru cache. coin cache.
2016-04-21 13:33:43 -07:00
Christopher Jeffrey
690f1629c3
FindAndDelete. misc cleanup.
2016-04-21 10:48:55 -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
11ef30b942
refactor and comments/explanation.
2016-04-20 13:08:42 -07:00
Christopher Jeffrey
1168f55cef
put isBadPush in execute.
2016-04-20 09:23:39 -07:00
Christopher Jeffrey
1d8a86838d
new way of handling script parsing.
2016-04-20 09:17:58 -07:00
Christopher Jeffrey
91acf2a607
new script decoder.
2016-04-20 09:01:10 -07:00
Christopher Jeffrey
fcf5af802e
update isStandardProgram.
2016-04-20 04:20:25 -07:00
Christopher Jeffrey
6dd5b936ef
minor.
2016-04-20 03:53:11 -07:00
Christopher Jeffrey
50cc693ae8
minor.
2016-04-20 03:51:43 -07:00
Christopher Jeffrey
7301cf044e
increment total block count on alternate chains.
2016-04-20 03:42:49 -07:00
Christopher Jeffrey
c572e61bbb
drop purgePending call.
2016-04-20 03:39:34 -07:00
Christopher Jeffrey
9cd2e5438b
add alert tests.
2016-04-20 03:01:05 -07:00
Christopher Jeffrey
bddf3f6909
add "slow height".
2016-04-20 01:29:16 -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
ce0c6f4fc7
accurate scripting error messages.
2016-04-19 21:43:40 -07:00
Christopher Jeffrey
4d7124830a
mempool requireStandard defaults and miner block version.
2016-04-19 21:07:53 -07:00
Christopher Jeffrey
c95681ae3f
add date and time functions.
2016-04-19 20:42:46 -07:00
Christopher Jeffrey
64813d3de1
fix ec verification for high s values on non-historical data.
2016-04-19 20:10:22 -07:00
Christopher Jeffrey
4456e468af
misc fixes. tx.toExtended.
2016-04-19 19:54:34 -07:00
Christopher Jeffrey
4cfc0daaad
use adjusted time for mining.
2016-04-19 12:14:43 -07:00
Christopher Jeffrey
6d7e81080e
refactor tests.
2016-04-19 12:00:27 -07:00
Christopher Jeffrey
0cfbaf91b5
fixes.
2016-04-19 11:54:46 -07:00
Christopher Jeffrey
ed6b1e9072
rename methods.
2016-04-19 11:50:56 -07:00
Christopher Jeffrey
63a9c44762
asserts. consistency.
2016-04-19 11:39:55 -07:00
Christopher Jeffrey
99d8f4d928
more hd refactoring.
2016-04-19 10:49:08 -07:00
Christopher Jeffrey
c8e771d05b
refactor hd.
2016-04-19 10:39:15 -07:00
Christopher Jeffrey
608fb8777e
do not handle negative zero for twos compliment.
2016-04-19 08:41:24 -07:00
Christopher Jeffrey
1e7e9a2aa7
handle negative outputs. serialize int64 correctly.
2016-04-19 07:36:05 -07:00
Christopher Jeffrey
5bf0824000
minor.
2016-04-19 06:19:51 -07:00
Christopher Jeffrey
ed5cee5ce7
rename adjusted time.
2016-04-19 06:11:13 -07:00
Christopher Jeffrey
a14299bdad
move adjusted time around.
2016-04-19 06:08:40 -07:00
Christopher Jeffrey
42ede54e94
fix adjusted time offset.
2016-04-19 05:53:06 -07:00
Christopher Jeffrey
8b3db92bbf
add limit for adjusted time.
2016-04-19 05:49:05 -07:00
Christopher Jeffrey
b9369412d2
implement GetAdjustedTime.
2016-04-19 05:47:47 -07:00
Christopher Jeffrey
53fb6dc8d5
some consensus stuff.
2016-04-19 03:05:42 -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
397e1f7d0b
more accurate removeData.
2016-04-18 21:50:09 -07:00
Christopher Jeffrey
2775382691
more accurate multisig. misc fixes.
2016-04-18 19:55:24 -07:00
Christopher Jeffrey
949f8684b0
fixes.
2016-04-18 17:33:03 -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
a62d249d8e
do not kill loader if we have pending blocks.
2016-04-17 23:20:25 -07:00
Christopher Jeffrey
1ea23577e4
server. one hash.
2016-04-17 22:26:11 -07:00
Christopher Jeffrey
6fc3c15c77
minimaldata.
2016-04-17 21:16:44 -07:00
Christopher Jeffrey
ec5c548fe1
fix coinbase height.
2016-04-17 21:11:52 -07:00
Christopher Jeffrey
f4c991ab77
mutable scripts.
2016-04-17 21:02:43 -07:00
Christopher Jeffrey
a4f0807c50
strict scripting.
2016-04-17 19:34:03 -07:00
Christopher Jeffrey
ea7fb8f476
minor refactor.
2016-04-17 16:32:12 -07:00
Christopher Jeffrey
cdddf06458
drop legacy IBD check.
2016-04-17 16:06:23 -07:00
Christopher Jeffrey
87d985fcdb
constants. network. docs.
2016-04-17 15:58:12 -07:00
Christopher Jeffrey
0cbc9b7338
constants.
2016-04-17 15:09:24 -07:00
Christopher Jeffrey
dee60da2e2
chain accuracy.
2016-04-17 14:46:40 -07:00
Christopher Jeffrey
d5bfb124cf
bloom filter. network.
2016-04-17 13:30:32 -07:00
Christopher Jeffrey
f3c2134dfa
deployments.
2016-04-17 12:09:30 -07:00
Christopher Jeffrey
69436cfd16
refactor network.
2016-04-17 10:41:48 -07:00
Christopher Jeffrey
4960e48b48
disabled opcodes fixes.
2016-04-17 08:45:37 -07:00
Christopher Jeffrey
0a621238ba
refactor: rename constants.
2016-04-17 08:45:22 -07:00
Christopher Jeffrey
ad11d33038
more accurate script interpretation.
2016-04-17 06:39:31 -07:00
Christopher Jeffrey
e96e09493d
comments.
2016-04-17 03:32:52 -07:00
Christopher Jeffrey
c8ba1aaa51
improve spv. fix preloading.
2016-04-17 03:19:10 -07:00
Christopher Jeffrey
45115995f6
verify partial merkle tree lazily.
2016-04-17 03:06:25 -07:00
Christopher Jeffrey
1c7d3082dc
types. do not mark compactblocks as valid.
2016-04-17 02:53:02 -07:00
Christopher Jeffrey
45ac59330e
docs.
2016-04-16 21:21:52 -07:00
Christopher Jeffrey
81e978f51a
fix docs.
2016-04-16 21:11:33 -07:00
Christopher Jeffrey
3f56375ad7
rename some files.
2016-04-16 20:59:32 -07:00
Christopher Jeffrey
5909b813cc
mark reorganized invalid blocks as invalid.
2016-04-16 20:53:47 -07:00
Christopher Jeffrey
1c1c34e6a4
refactor prune.
2016-04-16 20:49:00 -07:00
Christopher Jeffrey
a484d290d2
remove asserts.
2016-04-16 20:22:54 -07:00
Christopher Jeffrey
d9761fbe16
fix loop.
2016-04-16 20:19:36 -07:00
Christopher Jeffrey
9fd3bbb827
improve coin selection.
2016-04-16 20:04:38 -07:00
Christopher Jeffrey
0f6c19bcd5
major refactor.
2016-04-16 20:03:00 -07:00
Christopher Jeffrey
0d7d8073a2
refactor.
2016-04-16 05:56:38 -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
8efef35828
minor.
2016-04-15 16:24:33 -07:00
Christopher Jeffrey
fbc8af9d94
fix docs.
2016-04-15 08:01:03 -07:00
Christopher Jeffrey
cb27964b3b
fix profiler.
2016-04-15 07:54:29 -07:00
Christopher Jeffrey
26b3d92acf
docs fixes.
2016-04-15 07:50:08 -07:00
Christopher Jeffrey
67f35296b2
docs fixes.
2016-04-15 07:32:44 -07:00
Christopher Jeffrey
72e907f81e
more fixes. cleanup.
2016-04-15 06:44:38 -07:00
Christopher Jeffrey
e3595906c9
no one can say i didn't write docs now.
2016-04-15 06:43:44 -07:00
Christopher Jeffrey
d93be7b3d7
walletdb args.
2016-04-09 04:53:41 -07:00
Christopher Jeffrey
2d83ce9579
wallet fixes.
2016-04-09 04:21:41 -07:00
Christopher Jeffrey
800d17278e
sort txs.
2016-04-09 03:56:36 -07:00
Christopher Jeffrey
096f71ba1a
cleanup.
2016-04-09 03:48:28 -07:00
Christopher Jeffrey
c33a88fb9e
more accurate sigop counting.
2016-04-09 03:36:29 -07:00
Christopher Jeffrey
9e0aa7acbb
minor.
2016-04-09 01:19:32 -07:00
Christopher Jeffrey
646b3c3028
improve block.getVirtualSize.
2016-04-09 00:55:22 -07:00
Christopher Jeffrey
044d54e12e
add total balance.
2016-04-08 18:15:50 -07:00
Christopher Jeffrey
2a47abd98a
have node.sendTX add to mempool.
2016-04-08 18:03:17 -07:00
Christopher Jeffrey
a166450335
sync on confirmations.
2016-04-08 17:58:59 -07:00
Christopher Jeffrey
94f7bf000b
http: add to mempool and broadcast.
2016-04-08 17:50:47 -07:00
Christopher Jeffrey
5a24103f62
disable avoid fee sniping for now.
2016-04-08 16:37:04 -07:00
Christopher Jeffrey
8b156d246e
fixes.
2016-04-08 16:33:15 -07:00
Christopher Jeffrey
d70ec29f4a
fix typo.
2016-04-08 16:09:50 -07:00
Christopher Jeffrey
9e830c4666
hack: temporarily disable socketio.
2016-04-08 16:04:43 -07:00
Christopher Jeffrey
407782122c
fix getInputType.
2016-04-08 15:32:28 -07:00
Christopher Jeffrey
21cae4224c
block size.
2016-04-08 15:26:41 -07:00
Christopher Jeffrey
34341e8b50
fixes. up pending limit.
2016-04-08 15:20:00 -07:00
Christopher Jeffrey
9a0af8a591
use leveldown staging.
2016-04-08 14:55:54 -07:00
Christopher Jeffrey
7c725c40aa
minor.
2016-04-08 14:42:09 -07:00
Christopher Jeffrey
61ea825ffe
move lowlevelup.js.
2016-04-07 22:00:59 -07:00
Christopher Jeffrey
d1d92b9b64
locker. options.
2016-04-07 14:30:52 -07:00
Christopher Jeffrey
1898b38c49
db option.
2016-04-07 03:03:28 -07:00
Christopher Jeffrey
a3720bd42d
more accurate segwit4 verification. misc.
2016-04-07 02:03:38 -07:00
Christopher Jeffrey
0a7f118528
add environment.
2016-04-06 18:55:55 -07:00
Christopher Jeffrey
5830cc044b
cleanup.
2016-04-06 14:21:57 -07:00
Christopher Jeffrey
12860920ea
readme.
2016-04-06 05:01:41 -07:00
Christopher Jeffrey
40cabd37fc
miner.
2016-04-05 18:49:20 -07:00
Christopher Jeffrey
9356a40e62
refactor.
2016-04-05 16:23:57 -07:00
Christopher Jeffrey
1afb9dbc27
minor.
2016-04-05 05:04:54 -07:00
Christopher Jeffrey
141dbcb65e
cleanup
2016-04-05 02:58:53 -07:00
Christopher Jeffrey
86312d9241
more refactoring.
2016-04-04 23:53:05 -07:00
Christopher Jeffrey
d423e33e03
getutxos. arg parsing.
2016-04-04 20:29:46 -07:00
Christopher Jeffrey
4b20a87b4f
db refactoring.
2016-04-04 18:57:34 -07:00
Christopher Jeffrey
849f1d842e
more refactoring.
2016-04-04 17:37:53 -07:00
Christopher Jeffrey
6062f1ce94
more refactoring.
2016-04-04 16:39:02 -07:00
Christopher Jeffrey
a8a506aae0
more refacting.
2016-04-04 16:08:37 -07:00
Christopher Jeffrey
e22d0c56b0
read hashes as hex.
2016-04-04 15:26:00 -07:00
Christopher Jeffrey
9e61d0ee86
refactor.
2016-04-04 14:07:16 -07:00
Christopher Jeffrey
79aa613662
refactor.
2016-04-04 02:53:55 -07:00
Christopher Jeffrey
c874b9f2af
fail on large invs.
2016-04-04 00:23:45 -07:00
Christopher Jeffrey
8e06d737a4
fix miner.
2016-04-04 00:18:18 -07:00
Christopher Jeffrey
7b3b0695c3
serve merkleblocks.
2016-04-03 23:44:39 -07:00
Christopher Jeffrey
c5bcd44606
miner. network. serve blocks and mempool txs.
2016-04-03 21:43:50 -07:00
Christopher Jeffrey
8124b4de44
bst options.
2016-04-03 06:37:20 -07:00
Christopher Jeffrey
3f0ac32334
add connect method.
2016-04-03 06:11:30 -07:00
Christopher Jeffrey
ecaec7b5d9
fix script.array.
2016-04-03 05:47:06 -07:00
Christopher Jeffrey
f3b8b4cd80
fix createCommitment.
2016-04-03 05:23:30 -07:00
Christopher Jeffrey
1e0b585f10
do not allow coinbases in mempool on reorgs.
2016-04-03 05:11:38 -07:00
Christopher Jeffrey
fd6b315756
refactor. miner fixes.
2016-04-03 04:48:02 -07:00
Christopher Jeffrey
24060f04bb
fix and improve miner.
2016-04-03 04:11:26 -07:00
Christopher Jeffrey
b26961d68a
prevent infinite loop on circular references.
2016-04-03 03:32:27 -07:00
Christopher Jeffrey
c3e45a2a53
fix for locker.
2016-04-03 03:22:04 -07:00
Christopher Jeffrey
f45f3b1380
do not preload before chaindb is open.
2016-04-03 03:18:51 -07:00
Christopher Jeffrey
ad7ef10343
fix implicit global var in bst.
2016-04-03 03:05:08 -07:00
Christopher Jeffrey
2163e3965e
minor.
2016-04-03 03:03:13 -07:00
Christopher Jeffrey
d329d6e92f
add batch.clear to bst.
2016-04-03 03:02:19 -07:00
Christopher Jeffrey
32e94429d3
fix getLocks and wallet zapping.
2016-04-03 02:13:36 -07:00
Christopher Jeffrey
187137262e
spvnode. readme.
2016-04-03 01:34:30 -07:00
Christopher Jeffrey
d87e301986
mempool.
2016-04-03 00:15:02 -07:00
Christopher Jeffrey
9b4f00ccfe
rename mempool.
2016-04-02 23:12:41 -07:00
Christopher Jeffrey
0e831555b2
remove sync mempool.
2016-04-02 23:12:13 -07:00
Christopher Jeffrey
a58b566c69
switch back to leveldown mempool.
2016-04-02 23:12:01 -07:00
Christopher Jeffrey
eda31da3ea
add a bst for mempool.
2016-04-02 21:23:54 -07:00
Christopher Jeffrey
ec5175ec9e
minor.
2016-04-02 14:27:11 -07:00
Christopher Jeffrey
fca8778d35
minor.
2016-04-02 04:32:45 -07:00
Christopher Jeffrey
47160c1cfe
parsing and serialization.
2016-04-02 04:12:50 -07:00
Christopher Jeffrey
8289544b81
fixes.
2016-04-01 22:12:05 -07:00
Christopher Jeffrey
4f03675b9f
remotely add and remove keys.
2016-04-01 22:01:13 -07:00
Christopher Jeffrey
73832de55f
bloom refactor.
2016-04-01 21:25:48 -07:00
Christopher Jeffrey
c9bdad9bdf
hd rewrite.
2016-04-01 21:19:46 -07:00
Christopher Jeffrey
2dede909c3
hd. bcoin-cli.
2016-04-01 19:02:08 -07:00
Christopher Jeffrey
c030d2480d
more http.
2016-04-01 17:02:14 -07:00
Christopher Jeffrey
d83a68523e
http.
2016-04-01 15:34:40 -07:00
Christopher Jeffrey
90aa2d81a6
more base58.
2016-04-01 14:40:56 -07:00
Christopher Jeffrey
4af5ba2574
base58: minor.
2016-04-01 14:35:29 -07:00
Christopher Jeffrey
f3b7aee6fe
throw error on bad base58.
2016-04-01 07:06:35 -07:00
Christopher Jeffrey
bbf7748fbe
drop old base58 functions.
2016-04-01 06:36:55 -07:00
Christopher Jeffrey
e17e36d1a0
clean up base58.
2016-04-01 06:03:56 -07:00
Christopher Jeffrey
42e12f312f
faster base58.
2016-04-01 05:13:47 -07:00
Christopher Jeffrey
9e0adcfec1
http.
2016-04-01 04:05:54 -07:00
Christopher Jeffrey
03589f1df1
fix countAncestors and fix fork warning.
2016-04-01 01:37:52 -07:00
Christopher Jeffrey
4d30c9428a
fix binary index.
2016-04-01 01:12:22 -07:00
Christopher Jeffrey
3dddfcf7ea
more mempool work.
2016-04-01 00:57:26 -07:00
Christopher Jeffrey
39417424a2
refactor.
2016-03-31 23:18:57 -07:00
Christopher Jeffrey
74b9b68f4c
minor.
2016-03-31 22:02:58 -07:00
Christopher Jeffrey
bba77b4150
more mempool work.
2016-03-31 22:00:00 -07:00
Christopher Jeffrey
703a89cc59
more mempool work.
2016-03-31 20:39:47 -07:00
Christopher Jeffrey
46bbde9af7
mempool work.
2016-03-31 20:25:25 -07:00
Christopher Jeffrey
c30d19d3e0
in memory mempool.
2016-03-31 19:24:54 -07:00
Christopher Jeffrey
819c63b9b7
expose zapping.
2016-03-31 16:32:09 -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
3031c4cd5c
no changeindex.
2016-03-31 07:06:28 -07:00
Christopher Jeffrey
4f86c86312
changeIndex in extended format.
2016-03-31 07:04:31 -07:00
Christopher Jeffrey
bb34a80f9d
fix tx.toExtended.
2016-03-31 07:03:34 -07:00
Christopher Jeffrey
dda07e8eab
minor.
2016-03-31 06:56:49 -07:00
Christopher Jeffrey
018ce13815
even more size calculation.
2016-03-31 06:45:53 -07:00
Christopher Jeffrey
6c69914da5
better maxSize calculation.
2016-03-31 05:46:31 -07:00
Christopher Jeffrey
3242f39972
more fill errors. refactor.
2016-03-31 05:29:09 -07:00
Christopher Jeffrey
f7bdcfdfb2
clone mtx properly.
2016-03-31 05:24:10 -07:00
Christopher Jeffrey
5cab304a59
more coin selection.
2016-03-31 05:14:54 -07:00
Christopher Jeffrey
e907f35267
coin selection.
2016-03-31 04:56:16 -07:00
Christopher Jeffrey
399052d95a
fee calculation.
2016-03-31 04:47:41 -07:00
Christopher Jeffrey
af4e9921b9
priority calculation.
2016-03-31 04:29:48 -07:00
Christopher Jeffrey
fec9f2e308
verify pubkey.
2016-03-31 03:55:47 -07:00
Christopher Jeffrey
fb370eda1c
mempool. fix sigop counting.
2016-03-31 03:38:28 -07:00
Christopher Jeffrey
a110ddab27
script json.
2016-03-31 02:55:19 -07:00
Christopher Jeffrey
d158918a14
script parsing.
2016-03-31 02:44:59 -07:00
Christopher Jeffrey
b084913680
refactor. script encoding checks.
2016-03-31 02:31:09 -07:00
Christopher Jeffrey
2b5c1369da
refactor. strict isscripthash.
2016-03-31 02:08:11 -07:00
Christopher Jeffrey
7b1af73c46
address parsing.
2016-03-31 01:54:07 -07:00
Christopher Jeffrey
82ee87c0f5
refactor.
2016-03-31 01:04:30 -07:00
Christopher Jeffrey
1dc15922f6
segwit mining.
2016-03-31 00:30:46 -07:00
Christopher Jeffrey
b1d53adb6a
locks. reject.
2016-03-30 22:47:31 -07:00
Christopher Jeffrey
17d2f1586b
refactor.
2016-03-30 19:52:32 -07:00
Christopher Jeffrey
f62ceb8515
segnet4
2016-03-30 19:15:30 -07:00
Christopher Jeffrey
9b4e363a80
more chain refactoring.
2016-03-30 17:32:39 -07:00
Christopher Jeffrey
4d2d9b328c
verify error refactor.
2016-03-30 16:21:56 -07:00
Christopher Jeffrey
945c2f9564
more standardness.
2016-03-30 14:43:06 -07:00
Christopher Jeffrey
0720c6c64a
accurate hasStandardInputs.
2016-03-30 14:22:02 -07:00
Christopher Jeffrey
ae2a5fb702
chain.add: minor.
2016-03-30 05:17:10 -07:00
Christopher Jeffrey
9f88173881
chain refactoring.
2016-03-30 04:50:29 -07:00
Christopher Jeffrey
b352bfbe3d
handle forks better.
2016-03-30 04:15:33 -07:00
Christopher Jeffrey
d2767e4e34
refactoring.
2016-03-30 04:13:26 -07:00
Christopher Jeffrey
359cef93a0
refactor. framer sizes.
2016-03-29 20:47:21 -07:00
Christopher Jeffrey
498944781e
remove datastore and tx-pool.js
2016-03-29 19:31:26 -07:00
Christopher Jeffrey
6655e57053
refactor maps.
2016-03-29 19:20:10 -07:00
Christopher Jeffrey
126fb72644
fixes. refactor.
2016-03-29 18:08:33 -07:00
Christopher Jeffrey
dffff280f7
api
2016-03-29 17:54:54 -07:00
Christopher Jeffrey
86efd59261
fixes.
2016-03-29 17:47:12 -07:00
Christopher Jeffrey
5dc7030ac4
broadcast witness txs correctly.
2016-03-29 16:19:33 -07:00
Christopher Jeffrey
00e7fcc1ad
script parsing.
2016-03-29 15:21:48 -07:00
Christopher Jeffrey
caf52c0579
refactor. close methods.
2016-03-29 13:25:03 -07:00
Christopher Jeffrey
3d6892cbe9
mempool. constants.
2016-03-29 00:43:05 -07:00
Christopher Jeffrey
ea4d0dee03
opcodes.
2016-03-28 19:45:22 -07:00
Christopher Jeffrey
484db3568a
add getSmall.
2016-03-28 18:37:38 -07:00
Christopher Jeffrey
93660e829a
mem usage.
2016-03-28 17:54:56 -07:00
Christopher Jeffrey
a598a4850c
no strings in scripting.
2016-03-28 16:50:59 -07:00
Christopher Jeffrey
2c9756f38b
txdb orphan storage.
2016-03-28 15:45:47 -07:00
Christopher Jeffrey
2e0948faa5
network.height.
2016-03-28 15:26:02 -07:00
Christopher Jeffrey
46a47b5bf2
miner needs some love.
2016-03-28 14:05:16 -07:00
Christopher Jeffrey
af6ac736bf
consistent naming.
2016-03-28 13:22:31 -07:00
Christopher Jeffrey
96a92ae29b
witness parsing.
2016-03-28 12:29:00 -07:00
Christopher Jeffrey
aff7c0e360
check sequence locks in mempool.
2016-03-28 03:18:44 -07:00
Christopher Jeffrey
e89ed67843
script errors.
2016-03-27 19:18:39 -07:00
Christopher Jeffrey
e9c0e24b21
more parsing.
2016-03-27 18:52:26 -07:00
Christopher Jeffrey
30148368a8
parsing. 64 bit ints.
2016-03-27 14:56:57 -07:00
Christopher Jeffrey
e1fd556ff6
misc. alert.
2016-03-27 13:57:35 -07:00
Christopher Jeffrey
85af68d2ef
use native buffer methods if possible.
2016-03-26 06:11:58 -07:00
Christopher Jeffrey
661bd06e3e
http.
2016-03-26 05:33:07 -07:00
Christopher Jeffrey
19f2af16d4
script: pushdata.
2016-03-26 05:27:05 -07:00
Christopher Jeffrey
430e917b79
mempool.
2016-03-26 05:11:37 -07:00
Christopher Jeffrey
5912d65fa8
fix mempool.countAncestors.
2016-03-26 05:06:07 -07:00
Christopher Jeffrey
55957c2271
refactor. test for segwitActive.
2016-03-26 05:01:23 -07:00
Christopher Jeffrey
63421ec411
only asign hidden values for nonstandard pushes.
2016-03-26 04:21:01 -07:00
Christopher Jeffrey
e5c353f083
script hashes.
2016-03-26 03:57:56 -07:00
Christopher Jeffrey
6194c66d8f
mempool work. accurate reject messages.
2016-03-26 03:37:06 -07:00
Christopher Jeffrey
37c488c802
txdb and mempool work.
2016-03-26 01:29:04 -07:00
Christopher Jeffrey
e205c70f97
mempool. txdb.
2016-03-25 20:02:23 -07:00
Christopher Jeffrey
a52d62a71e
varint.
2016-03-25 16:32:15 -07:00
Christopher Jeffrey
adb95e2a3a
buffer reader.
2016-03-25 15:48:44 -07:00
Christopher Jeffrey
62a7dba556
rename intv.
2016-03-25 15:31:43 -07:00
Christopher Jeffrey
569016e752
refactor. numbers.
2016-03-25 15:17:43 -07:00
Christopher Jeffrey
6c238c844f
refactor. coin/utxo.
2016-03-25 13:00:11 -07:00
Christopher Jeffrey
c91cf7571b
refactor.
2016-03-25 02:07:47 -07:00
Christopher Jeffrey
513fe6b196
ldb
2016-03-24 19:17:47 -07:00
Christopher Jeffrey
2a75a39849
writeu64n
2016-03-24 17:20:18 -07:00
Christopher Jeffrey
6ce950d081
duck typing.
2016-03-24 14:18:24 -07:00
Christopher Jeffrey
1db0954c83
misc.
2016-03-24 03:45:00 -07:00
Christopher Jeffrey
b4b4e8b6cc
reject packets.
2016-03-23 19:03:50 -07:00
Christopher Jeffrey
81be92b1ba
remove old getSeed.
2016-03-23 18:51:47 -07:00
Christopher Jeffrey
cc7004e43a
peer handling.
2016-03-23 18:49:51 -07:00
Christopher Jeffrey
cf9a62a75b
coins and coinview.
2016-03-23 17:44:28 -07:00
Christopher Jeffrey
6d5e277629
reject packets. pool refactor.
2016-03-23 15:46:07 -07:00
Christopher Jeffrey
5023c7efe4
add locker. refactor.
2016-03-23 03:52:11 -07:00
Christopher Jeffrey
3efdc904e7
refactor. tests.
2016-03-22 19:52:33 -07:00
Christopher Jeffrey
0b1b6fdb33
remove old parser.
2016-03-22 19:28:36 -07:00
Christopher Jeffrey
baf5e50016
recursive worker packet parsing.
2016-03-22 19:25:50 -07:00
Christopher Jeffrey
f0bf9c8602
mempool
2016-03-22 19:24:56 -07:00
Christopher Jeffrey
b4d40ca098
minor refactor.
2016-03-22 18:14:19 -07:00
Christopher Jeffrey
17df9b41ce
more mempool stuff.
2016-03-22 17:36:58 -07:00
Christopher Jeffrey
43923e3201
use bn.toBuffer.
2016-03-21 21:57:20 -07:00
Christopher Jeffrey
304bd9f786
more parsing.
2016-03-21 21:47:21 -07:00
Christopher Jeffrey
f564ef5735
more parsing.
2016-03-21 21:22:03 -07:00
Christopher Jeffrey
ce0294f4bf
remove json parsing.
2016-03-21 21:15:05 -07:00
Christopher Jeffrey
5e10d28e82
remove old parsing method.
2016-03-21 21:09:41 -07:00
Christopher Jeffrey
c543d205c0
workers parsing.
2016-03-21 21:06:29 -07:00
Christopher Jeffrey
b792976586
fixes. refactor.
2016-03-21 18:41:06 -07:00
Christopher Jeffrey
eb569ae12d
add locks to txdb.
2016-03-21 17:31:24 -07:00
Christopher Jeffrey
2797cd2f44
rewrite mempool.
2016-03-21 16:29:02 -07:00
Christopher Jeffrey
d7bb115609
experiment with workers for tx verification.
2016-03-21 05:54:57 -07:00
Christopher Jeffrey
59777baf71
fixes for script and tx.
2016-03-21 05:54:34 -07:00
Christopher Jeffrey
93efe376a6
refactor. isSigned.
2016-03-21 02:16:56 -07:00
Christopher Jeffrey
0e15723acd
refactor. fixes.
2016-03-20 10:55:37 -07:00
Christopher Jeffrey
6136434959
refactor.
2016-03-20 09:19:43 -07:00
Christopher Jeffrey
a019e9cfc7
remove debug code.
2016-03-19 13:13:49 -07:00
Christopher Jeffrey
5153e0e1f0
cleanup.
2016-03-19 10:03:55 -07:00
Christopher Jeffrey
bd54b42dc4
fixing memleak. so far so good.
2016-03-19 09:36:16 -07:00
Christopher Jeffrey
6fdfd2ab6b
more db wrapper improvements.
2016-03-19 08:56:50 -07:00
Christopher Jeffrey
800f5a5448
db wrapper. fix memleak. consistency.
2016-03-19 08:24:22 -07:00
Christopher Jeffrey
131e546fb3
fix backend selection.
2016-03-19 00:49:56 -07:00
Christopher Jeffrey
aaafe6eeb7
db backend.
2016-03-18 21:47:05 -07:00
Christopher Jeffrey
d690c9ea5a
ldb.
2016-03-18 20:12:34 -07:00
Christopher Jeffrey
4f805ce52a
lru. buffer reader zeroCopy. utils.wrap.
2016-03-18 20:12:17 -07:00
Christopher Jeffrey
ca4fe76fae
remove old half-assed versionbits.
2016-03-15 16:38:33 -07:00
Christopher Jeffrey
d009b1cf48
raw tx.
2016-03-15 15:54:02 -07:00
Christopher Jeffrey
7b3fffb26c
cleanup.
2016-03-15 15:27:14 -07:00
Christopher Jeffrey
836a2357d6
more parsing.
2016-03-15 15:18:16 -07:00
Christopher Jeffrey
f5142046a9
destroy buffers.
2016-03-15 15:05:58 -07:00
Christopher Jeffrey
e31a4527b4
fix sighash v1.
2016-03-15 15:01:31 -07:00
Christopher Jeffrey
89a8329a76
fix port. packets.
2016-03-15 14:59:17 -07:00
Christopher Jeffrey
c1aeb5c07f
fix sighash.
2016-03-15 14:46:58 -07:00
Christopher Jeffrey
1b3eb64998
more writers and readers.
2016-03-15 14:44:37 -07:00
Christopher Jeffrey
41eab6e27c
sighashing.
2016-03-15 14:14:53 -07:00
Christopher Jeffrey
b356790136
move reader and writer.
2016-03-15 13:48:36 -07:00
Christopher Jeffrey
5fb16d29e6
refactor.
2016-03-15 13:31:54 -07:00
Christopher Jeffrey
3495b6fbf9
more linting.
2016-03-15 05:01:48 -07:00
Christopher Jeffrey
5da21fd6e8
new script.js.
2016-03-15 05:00:15 -07:00
Christopher Jeffrey
f0edd2c944
remove old script.js.
2016-03-15 04:59:52 -07:00
Christopher Jeffrey
c445fcd1bd
more linting.
2016-03-15 04:59:39 -07:00
Christopher Jeffrey
2e37b1e7ad
lint.
2016-03-15 04:37:17 -07:00
Christopher Jeffrey
8edebc8bb5
remove old preload.
2016-03-15 03:31:30 -07:00
Christopher Jeffrey
4b1e055a05
script encoding.
2016-03-15 03:00:36 -07:00
Christopher Jeffrey
94b20355ea
more framing and parsing.
2016-03-15 02:36:55 -07:00
Christopher Jeffrey
c1a9655943
framer using bufferwriter.
2016-03-15 01:51:02 -07:00
Christopher Jeffrey
6e6b1bd054
buffer writer.
2016-03-15 00:56:11 -07:00
Christopher Jeffrey
3953f392f6
peer version handling.
2016-03-14 22:21:28 -07:00
Christopher Jeffrey
1da30562c4
not framing witness txs correctly.
2016-03-14 21:36:49 -07:00
Christopher Jeffrey
38ce14270a
witness improvements.
2016-03-14 21:09:04 -07:00
Christopher Jeffrey
30f4a0e7ec
add script2.js
2016-03-14 20:44:26 -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
bf8475afe1
buffer writer. buffer reader.
2016-03-14 16:04:28 -07:00
Christopher Jeffrey
d0a5ae7aa4
no slices.
2016-03-14 13:51:44 -07:00
Christopher Jeffrey
00dfad25da
memleak work.
2016-03-14 13:25:02 -07:00
Christopher Jeffrey
18145ad541
datastore fixes.
2016-03-13 17:49:12 -07:00
Christopher Jeffrey
b88fc5b0ed
cleanup chaindb.
2016-03-13 04:40:07 -07:00
Christopher Jeffrey
39265bfb6b
chaindb.
2016-03-13 04:23:04 -07:00
Christopher Jeffrey
68e40200e2
framer and datastore.
2016-03-13 04:02:48 -07:00
Christopher Jeffrey
f4a1ca3eaf
better pruning. use datastore only in node.
2016-03-12 06:07:42 -08:00
Christopher Jeffrey
bb306c3547
better pruning. data store improvements.
2016-03-12 04:59:56 -08:00
Christopher Jeffrey
f79d2cfa89
experimental flat file datastore.
2016-03-12 02:58:01 -08:00
Christopher Jeffrey
3564052340
disconnection fix.
2016-03-11 23:17:33 -08:00
Christopher Jeffrey
ac266fc295
options.
2016-03-11 23:09:07 -08:00
Christopher Jeffrey
fb6787e5ed
fix pruning.
2016-03-11 23:01:05 -08:00
Christopher Jeffrey
9b90111a0a
refactor.
2016-03-11 22:58:01 -08:00
Christopher Jeffrey
dc05362ad1
remove blockdb.
2016-03-11 22:53:03 -08:00
Christopher Jeffrey
908ddc8254
cleanup.
2016-03-11 22:47:55 -08:00
Christopher Jeffrey
8f85f0b5c9
chaindb.
2016-03-11 15:53:15 -08:00
Christopher Jeffrey
2c861aff82
implement pruning.
2016-03-11 02:00:44 -08:00
Christopher Jeffrey
4f0289f5ab
use global ldb cache.
2016-03-10 18:33:02 -08:00
Christopher Jeffrey
ef3519761c
lru. blockdb.
2016-03-10 16:46:37 -08:00
Christopher Jeffrey
f09a4dc8f7
blockdb improvements.
2016-03-10 14:39:37 -08:00
Christopher Jeffrey
419ba83058
refactor. drop dumbcache.
2016-03-10 14:14:19 -08:00
Christopher Jeffrey
7058611456
improve hd key perf.
2016-03-10 14:06:49 -08:00
Christopher Jeffrey
28e105c16e
avoid using pbkdf2 when loading wallet. improve spvnode.
2016-03-10 03:25:48 -08:00
Christopher Jeffrey
c844cf1c4b
move nodes around.
2016-03-10 02:40:33 -08:00
Christopher Jeffrey
c2aa7b3727
more http things.
2016-03-10 02:33:53 -08:00
Christopher Jeffrey
ed420e0769
move http. add request module.
2016-03-09 15:19:51 -08:00
Christopher Jeffrey
cee8b65989
http features.
2016-03-09 15:11:36 -08:00
Christopher Jeffrey
9f56efe0d7
more chainblock refactoring.
2016-03-08 14:36:01 -08:00
Christopher Jeffrey
27214676bc
chainblock methods.
2016-03-08 13:47:41 -08:00
Christopher Jeffrey
7c6f71b785
chainblock methods. version bits deployment checking.
2016-03-08 02:12:21 -08:00
Christopher Jeffrey
adeee1eb67
checksequenceverify. scripting improvements.
2016-03-07 23:08:47 -08:00
Christopher Jeffrey
3dc0f4d412
checksequenceverify.
2016-03-07 21:55:26 -08:00
Christopher Jeffrey
aa101a16e8
misc improvements.
2016-03-07 19:00:03 -08:00
Christopher Jeffrey
862a412418
drop references to block buffer. less mem usage. fixes.
2016-03-07 16:56:43 -08:00
Christopher Jeffrey
0104aae9c0
witness json.
2016-03-06 12:43:47 -08:00
Christopher Jeffrey
c2baa09b1f
more serialization.
2016-03-06 12:36:07 -08:00
Christopher Jeffrey
132798e898
rename toSmall/fromSmall.
2016-03-06 12:30:19 -08:00
Christopher Jeffrey
c9d8ae9f4a
more serialization.
2016-03-06 12:22:59 -08:00
Christopher Jeffrey
2b1a822823
drop toCompact/fromCompact.
2016-03-06 12:09:59 -08:00
Christopher Jeffrey
cc1f423e3f
cleanup address handling in blockdb.
2016-03-06 12:02:16 -08:00
Christopher Jeffrey
b5f8f7291a
db refactor.
2016-03-06 11:56:50 -08:00
Christopher Jeffrey
40f9c62b6e
request timeout.
2016-03-06 11:41:24 -08:00
Christopher Jeffrey
960ede9db4
fix syncHeight.
2016-03-06 11:22:13 -08:00
Christopher Jeffrey
2d028bb4b4
version packet handling.
2016-03-06 11:20:35 -08:00
Christopher Jeffrey
786aed49dd
throw if async callback is executed twice.
2016-03-06 02:15:56 -08:00
Christopher Jeffrey
99f927665a
timeouts.
2016-03-06 02:08:32 -08:00
Christopher Jeffrey
f24d4aa938
more code cleanup.
2016-03-06 02:00:53 -08:00
Christopher Jeffrey
9c64b62078
remove old code.
2016-03-06 01:58:43 -08:00
Christopher Jeffrey
51b2e1f9a9
improve sync. misc fixes.
2016-03-06 01:41:07 -08:00
Christopher Jeffrey
30f454e184
minor.
2016-03-05 17:14:26 -08:00
Christopher Jeffrey
509ef15094
fix chain preload.
2016-03-05 17:00:37 -08:00
Christopher Jeffrey
df97d0ce11
pool fixes.
2016-03-05 16:55:58 -08:00
Christopher Jeffrey
c9bf605a85
fixes. improvements.
2016-03-05 09:15:59 -08:00
Christopher Jeffrey
67e739ef39
fixes.
2016-03-05 08:43:52 -08:00
Christopher Jeffrey
d78a727de8
leveldb stuff.
2016-03-05 07:28:45 -08:00
Christopher Jeffrey
23285d282b
fast
2016-03-05 06:48:17 -08:00
Christopher Jeffrey
49bb2d44e4
remove old save/remove block methods.
2016-03-05 06:22:26 -08:00
Christopher Jeffrey
6b51badfa9
better reorgs.
2016-03-05 06:19:05 -08:00
Christopher Jeffrey
081924b7d4
remove old _verify method.
2016-03-05 04:24:06 -08:00
Christopher Jeffrey
dd54dcad11
fixes. better reorg.
2016-03-05 04:21:19 -08:00
Christopher Jeffrey
04c5f94997
new chaindb. allow for real fork resolution.
2016-03-05 02:18:39 -08:00
Christopher Jeffrey
6de9e54667
be more strict on the protocol level.
2016-03-04 14:51:37 -08:00
Christopher Jeffrey
24625b1abf
typo
2016-03-04 05:10:33 -08:00
Christopher Jeffrey
88bf5f4b9a
minor.
2016-03-04 05:04:13 -08:00
Christopher Jeffrey
57f37bba3c
txdb. refactor. fixes.
2016-03-04 04:57:29 -08:00
Christopher Jeffrey
55a7842f59
txid parsing fixes for txdb.
2016-03-04 04:38:24 -08:00
Christopher Jeffrey
14a51a25b2
minor fixes.
2016-03-04 04:27:03 -08:00
Christopher Jeffrey
f67902a9cf
refactor. allow tx querying by timestamp.
2016-03-04 03:49:43 -08:00
Christopher Jeffrey
e962686e93
wallet provider.
2016-03-03 20:15:03 -08:00
Christopher Jeffrey
4df5b305ea
walletdb and txpool.
2016-03-03 18:57:02 -08:00
Christopher Jeffrey
ef55d1cebc
map addresses to ids.
2016-03-03 13:53:11 -08:00
Christopher Jeffrey
434fdc7a78
wallet fixes.
2016-03-02 20:28:22 -08:00
Christopher Jeffrey
13ee6a5751
fix typo.
2016-03-02 19:42:09 -08:00
Christopher Jeffrey
e6048e85c8
walletdb. txdb. webhooks.
2016-03-02 19:37:55 -08:00
Christopher Jeffrey
ad8090dc7c
tx-by-height. update node and pool to use walletdb.
2016-03-02 15:20:39 -08:00
Christopher Jeffrey
689db5632e
wallet id. wallet db.
2016-03-02 14:00:53 -08:00
Christopher Jeffrey
8d8952add7
dont save wallet until it has an id.
2016-03-02 04:10:07 -08:00
Christopher Jeffrey
c8f5913477
retroactively save wallets.
2016-03-02 03:55:57 -08:00
Christopher Jeffrey
6a6cae51c6
refactor.
2016-03-02 03:51:35 -08:00
Christopher Jeffrey
f5a0b9e284
fix orphan parsing.
2016-03-02 03:46:21 -08:00
Christopher Jeffrey
7bf912f570
do not store orphan txs.
2016-03-02 03:19:45 -08:00
Christopher Jeffrey
e8a70f9d7b
check for double-spends in txdb.
2016-03-02 03:03:14 -08:00
Christopher Jeffrey
d86031c073
more refactoring.
2016-03-02 02:59:08 -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
fd3bd9fac9
walletdb
2016-03-01 15:18:14 -08:00
Christopher Jeffrey
66c881bfb9
tx extended.
2016-03-01 15:12:56 -08:00
Christopher Jeffrey
45292df44d
more node improvements.
2016-03-01 03:39:55 -08:00
Christopher Jeffrey
00b8f8950b
walletdb improvements. start refactoring node object.
2016-02-29 21:33:11 -08:00
Christopher Jeffrey
c41ded7360
wallet improvements.
2016-02-29 14:47:57 -08:00
Christopher Jeffrey
3740281232
refactor json and cloning.
2016-02-29 02:24:16 -08:00
Christopher Jeffrey
5b1ee4cccb
ignore orphan soil for request map. fix block delta.
2016-02-29 01:53:08 -08:00
Christopher Jeffrey
58d2f66a70
fix checkinputs.
2016-02-28 23:11:18 -08:00
Christopher Jeffrey
2677b0eecd
wallet refactoring.
2016-02-28 22:44:02 -08:00
Christopher Jeffrey
8d0f432c7a
received and tx.verify.
2016-02-28 22:08:39 -08:00
Christopher Jeffrey
6b54897b57
refactor.
2016-02-28 20:26:10 -08:00
Christopher Jeffrey
15c63eb14a
use utils.indexOf.
2016-02-28 20:06:02 -08:00
Christopher Jeffrey
7829ff3bea
orphan soil. misc.
2016-02-28 19:15:15 -08:00
Christopher Jeffrey
d6e7ca0660
minor fixes.
2016-02-28 12:11:49 -08:00
Christopher Jeffrey
d53050993c
better witnessSize.
2016-02-28 10:34:10 -08:00
Christopher Jeffrey
8755b16235
more witness size.
2016-02-28 08:10:25 -08:00
Christopher Jeffrey
16f6a1b5e2
witness size.
2016-02-28 07:33:12 -08:00
Christopher Jeffrey
326ef521ff
calculate vsize. other misc fixes.
2016-02-28 07:05:16 -08:00
Christopher Jeffrey
8a8b664061
more fixes. cleanup debugging.
2016-02-28 06:07:04 -08:00
Christopher Jeffrey
0e3aa32677
correct segwit signing.
2016-02-28 05:44:41 -08:00
Christopher Jeffrey
3fcc7d5b07
segwit wallet support. segwit chain improvements.
2016-02-28 04:12:51 -08:00
Christopher Jeffrey
bd868cda7a
segwit things
2016-02-27 05:51:48 -08:00
Christopher Jeffrey
77c9348824
get segnet working.
2016-02-26 21:53:39 -08:00
Christopher Jeffrey
8467f339c1
segwit. misc.
2016-02-26 18:06:08 -08:00
Christopher Jeffrey
5a8e2b80f3
segwit parsing and framing.
2016-02-26 15:04:34 -08:00
Christopher Jeffrey
5d1f6089ed
blockdb, segwit, and input fixes.
2016-02-26 04:32:31 -08:00
Christopher Jeffrey
4c653683b7
segregated - goddamn - witness... and docs update.
2016-02-26 03:54:26 -08:00
Christopher Jeffrey
57ceb627d2
input and output objects.
2016-02-25 13:39:06 -08:00
Christopher Jeffrey
bade3ba4a5
inspect. cleanup. fixes. cache addresses.
2016-02-25 13:23:02 -08:00
Christopher Jeffrey
a9c116c98c
profiler. refactoring.
2016-02-25 01:36:50 -08:00
Christopher Jeffrey
afd6ee15c9
getblocks. parser/framer fixes. add profiler.
2016-02-24 23:45:45 -08:00
Christopher Jeffrey
1f0f9eb59e
version packet.
2016-02-24 22:24:00 -08:00
Christopher Jeffrey
b563fe5de1
tx indicies. merkle things.
2016-02-24 21:21:14 -08:00
Christopher Jeffrey
2c2fa3913b
cleanup parser calls.
2016-02-24 20:59:30 -08:00
Christopher Jeffrey
27ecf6dde3
comments.
2016-02-24 20:54:39 -08:00
Christopher Jeffrey
a8e6eda850
refactor framer and parser.
2016-02-24 20:48:08 -08:00
Christopher Jeffrey
4cea71fe65
keep all pending blocks off the heap.
2016-02-24 20:05:06 -08:00
Christopher Jeffrey
41c84c1937
drop relayedBy.
2016-02-24 17:47:35 -08:00
Christopher Jeffrey
15a3f4b28b
optimize tx.
2016-02-24 17:43:29 -08:00
Christopher Jeffrey
08ccb4c6ee
fix memleak.
2016-02-24 17:42:26 -08:00
Christopher Jeffrey
cc3db0583c
Revert "keep orphans off the heap."
...
This reverts commit 466429dbe2 .
2016-02-24 14:43:51 -08:00
Christopher Jeffrey
05939b5f24
framer instead of render.
2016-02-24 14:30:10 -08:00
Christopher Jeffrey
c7ae1f3d6b
minor refactor
2016-02-24 07:32:05 -08:00
Christopher Jeffrey
42818c0646
drop block subtype.
2016-02-24 07:08:02 -08:00
Christopher Jeffrey
0af709388c
update getheaders sync.
2016-02-24 06:54:36 -08:00
Christopher Jeffrey
62caf5fd4a
rename new block object.
2016-02-24 06:47:38 -08:00
Christopher Jeffrey
aaca6db34f
remove old block object.
2016-02-24 06:47:09 -08:00
Christopher Jeffrey
c5786e4932
add new block objects.
2016-02-24 06:45:47 -08:00
Christopher Jeffrey
e64a366400
refactor framer
2016-02-24 05:58:05 -08:00
Christopher Jeffrey
69038ac55e
add mutable tx.
2016-02-24 05:48:52 -08:00
Christopher Jeffrey
ed90c9a4a2
output
2016-02-24 04:09:05 -08:00
Christopher Jeffrey
27f6e6e678
refactor coin selection.
2016-02-24 04:05:16 -08:00
Christopher Jeffrey
c312905585
do not copy scripts.
2016-02-24 03:53:32 -08:00
Christopher Jeffrey
6ad3540664
refactor addInput.
2016-02-24 03:41:06 -08:00
Christopher Jeffrey
466429dbe2
keep orphans off the heap.
2016-02-24 02:47:33 -08:00
Christopher Jeffrey
07a4c3a465
misc fixes.
2016-02-24 02:37:38 -08:00
Christopher Jeffrey
d1f05453bb
improve block.fromRaw.
2016-02-24 02:37:02 -08:00
Christopher Jeffrey
727a000b23
minor.
2016-02-24 02:04:49 -08:00
Christopher Jeffrey
f586837013
optimize more.
2016-02-24 01:49:32 -08:00
Christopher Jeffrey
96bb12568e
use iterators for getHeight.
2016-02-24 01:46:12 -08:00
Christopher Jeffrey
f9577cdc04
remove old by-address methods.
2016-02-24 01:39:44 -08:00
Christopher Jeffrey
8a3b0161c0
use leveldb iterators for getting by address.
2016-02-24 01:38:36 -08:00
Christopher Jeffrey
6a644be03f
ensure prefix.
2016-02-24 00:07:44 -08:00
Christopher Jeffrey
26969d823a
debug file flag.
2016-02-23 21:33:33 -08:00
Christopher Jeffrey
ad173d0f22
fix fromRaw.
2016-02-23 21:17:08 -08:00
Christopher Jeffrey
c559f97c26
add chain._checkReward.
2016-02-23 21:02:50 -08:00
Christopher Jeffrey
badf7e4d83
add gen.js.
2016-02-23 20:54:48 -08:00
Christopher Jeffrey
5cb06c6cbd
faster hd deserialization.
2016-02-23 20:23:25 -08:00
Christopher Jeffrey
72a877cc49
more lazy loading.
2016-02-23 20:06:07 -08:00
Christopher Jeffrey
b6e32ecaf8
more hd cleanup.
2016-02-23 19:58:11 -08:00
Christopher Jeffrey
3804c2ea74
more hd optimization.
2016-02-23 19:35:47 -08:00
Christopher Jeffrey
ebee3965f7
cleanup hd.
2016-02-23 19:27:12 -08:00
Christopher Jeffrey
9a35cac74f
lazy load publicKey.
2016-02-23 19:16:39 -08:00
Christopher Jeffrey
30db808930
refactor keypair and hd.
2016-02-23 19:08:42 -08:00
Christopher Jeffrey
0f40d78f9e
this is faster for some reason.
2016-02-23 17:29:04 -08:00
Christopher Jeffrey
0dabee0336
improve getMerkleRoot.
2016-02-23 17:11:24 -08:00
Christopher Jeffrey
36e8d75faf
remove old getMerkleRoot.
2016-02-23 17:08:55 -08:00
Christopher Jeffrey
0fac957da3
utils. merkle tree.
2016-02-23 16:53:05 -08:00
Christopher Jeffrey
abcd174bd3
add random function.
2016-02-23 13:25:21 -08:00
Christopher Jeffrey
aadb1fb4e0
more hd optimization.
2016-02-23 13:22:00 -08:00
Christopher Jeffrey
00eba20c4e
hd key optimization
2016-02-23 13:14:58 -08:00
Christopher Jeffrey
1e1e214900
debugging output.
2016-02-23 05:27:36 -08:00
Christopher Jeffrey
a84f087e2e
script optimization.
2016-02-23 04:58:19 -08:00
Christopher Jeffrey
76b79ab25d
headers.
2016-02-23 04:40:00 -08:00
Christopher Jeffrey
95a5d2c47b
getheaders. better pow test.
2016-02-23 04:37:13 -08:00
Christopher Jeffrey
a3b2149c1f
minor.
2016-02-23 04:04:42 -08:00
Christopher Jeffrey
6cf17c2b6d
some more optimization.
2016-02-23 03:59:12 -08:00
Christopher Jeffrey
83239112e4
improve keypair.
2016-02-23 03:46:51 -08:00
Christopher Jeffrey
f4f6c79bfd
more framing.
2016-02-23 03:25:18 -08:00
Christopher Jeffrey
3514eb7dec
use buffer for bloom filter.
2016-02-23 02:56:21 -08:00
Christopher Jeffrey
d63f4af6ca
fix bloom filter.
2016-02-23 02:54:35 -08:00
Christopher Jeffrey
10821a00fc
utils. improve fromBase58.
2016-02-23 02:45:59 -08:00
Christopher Jeffrey
e5de8db660
more json improvements.
2016-02-23 02:27:10 -08:00
Christopher Jeffrey
003330e678
more json improvements.
2016-02-23 01:23:29 -08:00
Christopher Jeffrey
ac9dfca3d3
refactor json and tx.
2016-02-23 00:56:41 -08:00
Christopher Jeffrey
64b5f731a8
even more fixes.
2016-02-23 00:38:32 -08:00
Christopher Jeffrey
3d017c5995
more fixes.
2016-02-23 00:32:21 -08:00
Christopher Jeffrey
5bba5d43c6
improve getMerkleRoot.
2016-02-23 00:29:03 -08:00
Christopher Jeffrey
68f3ef599d
fixes.
2016-02-23 00:26:19 -08:00
Christopher Jeffrey
b473ca7d18
coin method for framer and parser.
2016-02-23 00:14:09 -08:00
Christopher Jeffrey
5923726e78
misc fixes.
2016-02-22 23:31:05 -08:00
Christopher Jeffrey
1ced7af7b4
handle minimal data better.
2016-02-22 23:13:46 -08:00
Christopher Jeffrey
4cc5d73959
use zero for op_0. fix signed ints.
2016-02-22 21:59:52 -08:00
Christopher Jeffrey
9e36ecd62e
isScript
2016-02-22 21:33:33 -08:00
Christopher Jeffrey
73d3291ee9
more buffer work.
2016-02-22 21:25:01 -08:00
Christopher Jeffrey
78e9be11c3
switch to buffers.
2016-02-22 20:37:15 -08:00
Christopher Jeffrey
fc4fc9ea5c
improve toHex.
2016-02-22 15:35:17 -08:00
Christopher Jeffrey
9bc0b250ae
remove multiplePeers option.
2016-02-22 15:21:53 -08:00
Christopher Jeffrey
c0bb66bf73
refactor orphan root.
2016-02-22 15:16:50 -08:00
Christopher Jeffrey
0dc1b1cc5f
fix orphan resolution.
2016-02-22 14:35:13 -08:00
Christopher Jeffrey
9ddc23227c
fix LoadRequest. misc.
2016-02-22 13:52:03 -08:00
Christopher Jeffrey
ab3fb2e550
full json
2016-02-22 06:36:54 -08:00
Christopher Jeffrey
9c7ca8501f
too many curlys.
2016-02-22 05:23:55 -08:00
Christopher Jeffrey
e10c3d2547
improve getBlock.
2016-02-22 05:05:26 -08:00
Christopher Jeffrey
cbed3bbc4f
fsync all chain writes.
2016-02-22 04:54:07 -08:00
Christopher Jeffrey
0f4d2ca281
use async helpers.
2016-02-22 04:25:20 -08:00
Christopher Jeffrey
86b228ca07
add utils.once. some async functions. disable blockdb truncate.
2016-02-22 03:09:48 -08:00
Christopher Jeffrey
6b6a84a774
full json. cache.
2016-02-22 01:54:42 -08:00
Christopher Jeffrey
21ff3f1d78
fix orphan pruning.
2016-02-22 00:00:26 -08:00
Christopher Jeffrey
d6bef43d71
add http server.
2016-02-21 22:48:42 -08:00
Christopher Jeffrey
78098bcad5
fix getheaders sync.
2016-02-21 16:33:20 -08:00
Christopher Jeffrey
2ce5848d4c
fix horrible typo.
2016-02-21 16:26:51 -08:00
Christopher Jeffrey
c81770c2b1
move some deps around. drop inherits.
2016-02-21 06:31:15 -08:00
Christopher Jeffrey
10804959d5
add wrapper for elliptic vs secp256k1. see #52 .
2016-02-21 04:37:50 -08:00
Christopher Jeffrey
e7478372cf
use level-js in the browser instead of memdown.
2016-02-20 21:33:58 -08:00
Christopher Jeffrey
b11cdd80af
add walletdb.
2016-02-20 18:44:09 -08:00
Christopher Jeffrey
6e2eb039ac
add spv node. add .bcoin dir. add file storage for wallet.
2016-02-20 16:53:10 -08:00
Christopher Jeffrey
86a368dddf
fix wallet scan.
2016-02-20 03:50:25 -08:00
Christopher Jeffrey
7fe140d78b
update cache in blockdb.
2016-02-20 01:36:09 -08:00
Christopher Jeffrey
2fd490922b
return chainwork correctly for genesis block.
2016-02-19 22:41:43 -08:00
Christopher Jeffrey
e2759707f2
package.json and Makefile.
2016-02-19 22:29:33 -08:00
Christopher Jeffrey
7a66a2717e
minor
2016-02-19 22:11:46 -08:00
Christopher Jeffrey
06d6d74081
more renaming.
2016-02-19 22:10:38 -08:00
Christopher Jeffrey
d48d9d44ee
more renaming.
2016-02-19 22:06:47 -08:00
Christopher Jeffrey
3c29e20df2
refactor pool.search.
2016-02-19 22:04:33 -08:00
Christopher Jeffrey
48d7b95d61
minor refactor.
2016-02-19 21:48:06 -08:00
Christopher Jeffrey
28274cdba4
rename methods.
2016-02-19 21:42:44 -08:00
Christopher Jeffrey
ad7cd04e79
minor.
2016-02-19 21:22:22 -08:00
Christopher Jeffrey
032db24c41
typo
2016-02-19 21:17:05 -08:00
Christopher Jeffrey
509ed09603
better existence check.
2016-02-19 21:13:22 -08:00
Christopher Jeffrey
8ed054cbda
handle verification better. make use of cache.
2016-02-19 21:00:38 -08:00
Christopher Jeffrey
ad95ffbfcd
do verification on forked blocks.
2016-02-19 20:45:02 -08:00
Christopher Jeffrey
70553c884c
better check for existing blocks.
2016-02-19 20:30:36 -08:00
Christopher Jeffrey
9eb90dd821
show pending jobs.
2016-02-19 19:53:24 -08:00
Christopher Jeffrey
a9ec49f954
misc fixes.
2016-02-19 19:48:24 -08:00
Christopher Jeffrey
56f68983d3
whitespace
2016-02-19 11:27:11 -08:00
Christopher Jeffrey
5a79637039
undo "fix".
2016-02-19 11:24:58 -08:00
Christopher Jeffrey
5e51b919f2
fix for resetHeight.
2016-02-19 11:24:07 -08:00
Christopher Jeffrey
e9a847e8e2
remove old functions.
2016-02-19 11:20:34 -08:00
Christopher Jeffrey
348049a5c3
refactor
2016-02-19 11:18:35 -08:00
Christopher Jeffrey
53158edf4f
purge pending.
2016-02-19 11:16:39 -08:00
Christopher Jeffrey
3c3e9a496a
more chain improvements.
2016-02-19 11:10:45 -08:00
Christopher Jeffrey
af59208ad5
cleanup
2016-02-19 09:49:07 -08:00
Christopher Jeffrey
fc5187bb26
fix some blockdb stuff.
2016-02-19 09:19:34 -08:00
Christopher Jeffrey
a558cbfb57
lower limits.
2016-02-19 09:13:18 -08:00
Christopher Jeffrey
a6668f860f
experiment with _lock.
2016-02-19 09:10:50 -08:00
Christopher Jeffrey
bccc833299
play around with _lock method.
2016-02-19 08:35:46 -08:00
Christopher Jeffrey
3a63da5735
async work.
2016-02-19 08:07:50 -08:00
Christopher Jeffrey
cefeaf779b
better block sync.
2016-02-19 07:49:14 -08:00
Christopher Jeffrey
7c3191aee8
fix chaindb queue system.
2016-02-19 06:30:10 -08:00
Christopher Jeffrey
7df05b971d
async resets.
2016-02-19 05:54:23 -08:00
Christopher Jeffrey
053775ffac
sync resetHeight
2016-02-19 05:38:02 -08:00
Christopher Jeffrey
9ff7e93c71
move sigop counting to checkInputs.
2016-02-19 04:16:29 -08:00
Christopher Jeffrey
9bc3e44a7f
misc method improvements.
2016-02-19 03:08:50 -08:00
Christopher Jeffrey
71557ba95c
more chain improvements.
2016-02-19 02:14:10 -08:00
Christopher Jeffrey
5f67f78170
chain fixes.
2016-02-19 01:42:59 -08:00
Christopher Jeffrey
29576c7bcc
fix checkmultisig for nonstandard scripts.
2016-02-18 22:53:13 -08:00
Christopher Jeffrey
8b17c09116
move more logic into chaindb.
2016-02-18 22:52:51 -08:00
Christopher Jeffrey
5053fa2eeb
move height lookups to chaindb.
2016-02-18 21:01:34 -08:00
Christopher Jeffrey
d2a4f995fd
add some async functions.
2016-02-18 18:36:25 -08:00
Christopher Jeffrey
469d3c35d0
_revertLast.
2016-02-18 17:41:47 -08:00
Christopher Jeffrey
42f5ece282
refactor mempool events from chain.
2016-02-18 17:30:15 -08:00
Christopher Jeffrey
050d801849
standardness. chain. pool.
2016-02-18 15:26:03 -08:00
Christopher Jeffrey
83c5a6f906
minor.
2016-02-18 02:25:37 -08:00
Christopher Jeffrey
a6b1e8bdb0
recover keys.
2016-02-18 02:22:54 -08:00
Christopher Jeffrey
e68bab4ab3
make scripthash input test less insane.
2016-02-18 01:53:37 -08:00
Christopher Jeffrey
4b672d6337
fix sigops counting.
2016-02-18 01:45:47 -08:00
Christopher Jeffrey
ff467afaff
minor.
2016-02-18 01:12:39 -08:00
Christopher Jeffrey
1f2e1fb6d5
add an extra failsafe check to checksig before normalizing DER sig length.
2016-02-17 21:32:29 -08:00
Christopher Jeffrey
86cebb7e3b
normalize DER signature length.
2016-02-17 21:10:46 -08:00
Christopher Jeffrey
d22dc02e8f
wait for flush.
2016-02-17 19:40:56 -08:00
Christopher Jeffrey
0139e1340c
minor pool changes.
2016-02-17 18:00:54 -08:00
Christopher Jeffrey
6ef09f39ec
better events.
2016-02-17 17:07:12 -08:00
Christopher Jeffrey
f7ac99d24d
minor refactoring.
2016-02-17 16:02:11 -08:00
Christopher Jeffrey
d4aa15f9a3
remove old error code system.
2016-02-17 15:39:20 -08:00
Christopher Jeffrey
5d9f106e2a
event based system for chain error handling.
2016-02-17 15:30:33 -08:00
Christopher Jeffrey
7a04ac25d0
add queue back to handleBlock.
2016-02-17 13:04:26 -08:00
Christopher Jeffrey
a208083dc5
do not increment total on orphans.
2016-02-17 12:55:48 -08:00
Christopher Jeffrey
2b84c16f0a
drop bip37 emulation.
2016-02-17 12:54:42 -08:00
Christopher Jeffrey
a485a1d334
move queue to the chain.
2016-02-17 12:52:22 -08:00
Christopher Jeffrey
d1b470805e
fix self references.
2016-02-17 12:32:31 -08:00
Christopher Jeffrey
9b1effdc66
pool improvements.
2016-02-17 05:08:19 -08:00
Christopher Jeffrey
8e81b8914d
bad bufferpool. misc.
2016-02-17 04:59:12 -08:00
Christopher Jeffrey
f17575f864
queue
2016-02-17 02:53:43 -08:00
Christopher Jeffrey
90b3c16837
debugging.
2016-02-17 01:16:01 -08:00
Christopher Jeffrey
7b14c3b72b
debugging.
2016-02-17 00:14:25 -08:00
Christopher Jeffrey
2dc3786eb0
refactor
2016-02-16 21:04:10 -08:00
Christopher Jeffrey
d0d0378f3e
queue. fixes.
2016-02-16 21:01:31 -08:00
Christopher Jeffrey
0191acd530
blockdb reset height.
2016-02-16 17:19:14 -08:00
Christopher Jeffrey
997f0acbb0
more refactoring.
2016-02-16 16:13:34 -08:00
Christopher Jeffrey
ab610d6fa5
new verifyContext.
2016-02-16 14:27:46 -08:00
Christopher Jeffrey
02e4c9e266
fix verifyContext.
2016-02-16 14:08:56 -08:00
Christopher Jeffrey
fe46d1ada5
contextual verification. misc.
2016-02-16 13:45:02 -08:00
Christopher Jeffrey
e912f78814
async chain.
2016-02-16 03:03:11 -08:00
Christopher Jeffrey
5b7ac01e84
fix prop.
2016-02-16 01:36:44 -08:00
Christopher Jeffrey
9619779426
fix vars.
2016-02-16 01:33:35 -08:00
Christopher Jeffrey
5de30139ae
lru. misc.
2016-02-16 01:23:07 -08:00
Christopher Jeffrey
24cc9c85ef
options. misc.
2016-02-15 23:48:23 -08:00
Christopher Jeffrey
a7a8999a33
more lru cache.
2016-02-15 20:30:36 -08:00
Christopher Jeffrey
3bfd276b76
lru cache
2016-02-15 19:14:35 -08:00
Christopher Jeffrey
2ae8c17398
lru cache
2016-02-15 18:19:59 -08:00
Christopher Jeffrey
8f897c256b
write buffer size.
2016-02-15 16:56:20 -08:00
Christopher Jeffrey
23d3343994
fix test.
2016-02-15 15:41:35 -08:00
Christopher Jeffrey
7a32e510e9
tx-pool fixes.
2016-02-15 15:37:33 -08:00
Christopher Jeffrey
39ecd292b3
bank on new bn() accepting buffers for extra perf.
2016-02-15 14:18:46 -08:00
Christopher Jeffrey
effaa57abf
blockdb drop queue and cache.
2016-02-15 11:00:34 -08:00
Christopher Jeffrey
91897540d6
optimize blockdb more.
2016-02-15 10:54:04 -08:00
Christopher Jeffrey
124e79907b
more blockdb cleanup
2016-02-15 02:03:09 -08:00
Christopher Jeffrey
299126225c
blockdb cleanup.
2016-02-15 01:50:29 -08:00
Christopher Jeffrey
2a20e56f7b
get coin parsing working.
2016-02-15 01:27:00 -08:00
Christopher Jeffrey
7175f81d59
fullnode
2016-02-14 18:05:37 -08:00
Christopher Jeffrey
06ba355363
simplify scanning.
2016-02-13 16:08:29 -08:00
Christopher Jeffrey
2a5c35cf05
add hd scanning to wallet.
2016-02-13 15:44:15 -08:00
Christopher Jeffrey
9d727cebae
wallet tests. fixes.
2016-02-12 22:32:54 -08:00
Christopher Jeffrey
60abff853a
hd option parsing and network.
2016-02-12 19:52:47 -08:00
Christopher Jeffrey
88c131c7b3
fix pool. hd improvements.
2016-02-12 17:57:21 -08:00
Christopher Jeffrey
dbba098190
remove calls to getTip().
2016-02-12 16:38:26 -08:00
Christopher Jeffrey
a3fc9159a0
add more extractor functions.
2016-02-12 16:10:36 -08:00
Christopher Jeffrey
4e34d3d0ca
use native pbkdf2.
2016-02-12 15:41:48 -08:00
Christopher Jeffrey
da19b6da29
add regular addresses to addressMap.
2016-02-12 13:55:21 -08:00
Christopher Jeffrey
bfd570e204
coin selection. misc.
2016-02-12 04:24:35 -08:00
Christopher Jeffrey
697718c940
drop fee recalculation.
2016-02-12 04:04:18 -08:00
Christopher Jeffrey
016c85f8b5
fill refactor. accurate fee calculation.
2016-02-12 03:54:02 -08:00
Christopher Jeffrey
c4818c4bc8
add subtract fee option.
2016-02-12 02:44:11 -08:00
Christopher Jeffrey
686dcbcdd9
minor fixes.
2016-02-12 01:20:05 -08:00
Christopher Jeffrey
a788f151b1
increment depths on sync.
2016-02-11 02:56:07 -08:00
Christopher Jeffrey
d445fb7943
option parsing.
2016-02-11 02:52:27 -08:00
Christopher Jeffrey
158a35881c
add address.getType.
2016-02-11 02:00:54 -08:00
Christopher Jeffrey
173e133bf4
minor keypair fix.
2016-02-11 01:44:34 -08:00
Christopher Jeffrey
4a6c73fc8e
refactor signing.
2016-02-11 01:29:35 -08:00
Christopher Jeffrey
b963809318
minor.
2016-02-10 21:39:44 -08:00
Christopher Jeffrey
25767d9273
minor fixes.
2016-02-10 21:22:28 -08:00
Christopher Jeffrey
f26fb32027
refactor orphan tx resolution.
2016-02-10 21:07:30 -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
9fc6848dce
reject packets.
2016-02-09 01:29:23 -08:00
Christopher Jeffrey
fb8be11eac
add mempool object.
2016-02-09 01:21:38 -08:00
Christopher Jeffrey
17e25804de
better preload. misc fixes.
2016-02-09 00:07:38 -08:00
Christopher Jeffrey
05d4eab0d8
add preload option. better errors.
2016-02-08 21:05:27 -08:00
Christopher Jeffrey
bcd68c4ed8
fix callback.
2016-02-08 20:49:50 -08:00
Christopher Jeffrey
36c3d72021
add preload from electrum.org. check for blockchain corruption.
2016-02-08 20:46:57 -08:00
Christopher Jeffrey
adb304748f
add some data integrity checks when loading the chain.
2016-02-08 19:55:56 -08:00
Christopher Jeffrey
d20b3b8737
move chaindb and chainblock to their own modules.
2016-02-08 19:01:30 -08:00
Christopher Jeffrey
6cab97b265
listen on server socket for leech peers.
2016-02-08 18:46:09 -08:00
Christopher Jeffrey
72b7adc800
get bcoin working in the browser again.
2016-02-08 18:06:39 -08:00
Christopher Jeffrey
8fd883b6c6
add async utils
2016-02-08 17:03:31 -08:00
Christopher Jeffrey
58a859267c
more tx-pool consistency.
2016-02-07 07:18:19 -08:00
Christopher Jeffrey
7fbfc1e248
remove tx-pool coin functions.
2016-02-07 06:44:11 -08:00
Christopher Jeffrey
7d17dd855f
utils.cmp. tx-pool improvements.
2016-02-07 06:39:58 -08:00
Christopher Jeffrey
588d978bb9
implement bip64.
2016-02-07 04:36:30 -08:00
Christopher Jeffrey
bad5250983
serialization formats.
2016-02-07 03:36:07 -08:00
Christopher Jeffrey
69925eb7b4
coin toRaw and fromRaw.
2016-02-07 02:22:35 -08:00
Christopher Jeffrey
2ec7989b6a
no more dynamic heights.
2016-02-06 21:51:38 -08:00
Christopher Jeffrey
1761266ba9
improve tx-pool.
2016-02-06 19:10:40 -08:00
Christopher Jeffrey
7bb20437bc
refactor tx instantiation.
2016-02-06 17:12:16 -08:00
Christopher Jeffrey
769b50c999
rename output.prev to coin.
2016-02-06 16:16:02 -08:00
Christopher Jeffrey
274c6e6864
use utxo object instead of tx refs.
2016-02-06 04:54:38 -08:00
Christopher Jeffrey
26f1e44eb3
saner _addInput.
2016-02-06 01:07:26 -08:00
Christopher Jeffrey
18f0a55779
refactor tx.
2016-02-05 22:46:04 -08:00
Christopher Jeffrey
7de73c670c
pass index around.
2016-02-05 03:59:30 -08:00
Christopher Jeffrey
51b0d83444
remove _deriveKey
2016-02-05 03:50: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
b9149a0855
fix hd privkey derivation.
2016-02-04 13:14:33 -08:00
Christopher Jeffrey
49bcfc17e9
keypair consistency.
2016-02-04 12:45:03 -08:00
Christopher Jeffrey
a367674584
more keypair stuff.
2016-02-04 03:33:15 -08:00
Christopher Jeffrey
99fac69127
keypair improvements.
2016-02-04 03:30:12 -08:00
Christopher Jeffrey
1ee4e556b0
more fixes.
2016-02-04 02:54:02 -08:00
Christopher Jeffrey
fa22c79dbe
hd and wallet work.
2016-02-04 02:44:16 -08:00
Christopher Jeffrey
517a5d488b
cleanup
2016-02-03 21:49:32 -08:00
Christopher Jeffrey
cf50502238
more fixes.
2016-02-03 21:46:02 -08:00
Christopher Jeffrey
97bcdd79c2
minor fixes
2016-02-03 21:35:07 -08:00
Christopher Jeffrey
c23fdeba50
improvements.
2016-02-03 21:21:08 -08:00
Christopher Jeffrey
eacd1e2ece
bip45 wallet
2016-02-03 19:46:02 -08:00
Christopher Jeffrey
28a2cab787
add bip45 to hd.js.
2016-02-03 13:22:43 -08:00
Christopher Jeffrey
e0ab0ab88d
minor changes/fixes.
2016-02-03 02:09:03 -08:00
Christopher Jeffrey
3158f57e0f
fix tx.render() and avoidFeeSnipping().
2016-02-02 20:28:35 -08:00
Christopher Jeffrey
f6fe37be6b
improve address.ownInput.
2016-02-02 19:41:47 -08:00
Christopher Jeffrey
13d14b0130
tx: add bip69 sorting.
2016-02-02 17:57:38 -08:00
Christopher Jeffrey
2deccde29e
wallet work. consistency.
2016-02-02 16:09:48 -08:00
Christopher Jeffrey
f3fd85354e
wallet/keypair: fixes.
2016-02-02 13:43:43 -08:00
Christopher Jeffrey
156601e40a
createTX. hd fixes.
2016-02-02 02:50:36 -08:00
Christopher Jeffrey
42e17bc0f2
rewrite wallet. allow multiple addresses. utilize hd.
2016-02-01 21:37:06 -08:00
Christopher Jeffrey
f9d960ca23
api: more method renames. legacy support. docs.
2016-02-01 11:57:40 -08:00
Christopher Jeffrey
6ad621cace
api: rename methods, properties. add legacy support.
2016-02-01 11:50:09 -08:00
Christopher Jeffrey
999cfefe54
more pool work. wallet.fill().
2016-02-01 10:54:52 -08:00
Christopher Jeffrey
1e027220c3
pool: refactor.
2016-01-31 00:57:34 -08:00
Christopher Jeffrey
b0ee614432
misc sync fixes.
2016-01-31 00:50:13 -08:00
Christopher Jeffrey
5ab48378cc
fix addTX.
2016-01-30 02:34:35 -08:00
Christopher Jeffrey
a99725f8ff
pool: remove old functions.
2016-01-30 02:31:15 -08:00
Christopher Jeffrey
8447790a84
remove peer backoff system.
2016-01-30 02:21:00 -08:00
Christopher Jeffrey
f59a1f887b
increase requestTimeout.
2016-01-30 02:13:28 -08:00
Christopher Jeffrey
60c3db7cb9
better request handling.
2016-01-29 18:58:41 -08:00
Christopher Jeffrey
e8cb2102a3
work
2016-01-29 17:38:31 -08:00
Christopher Jeffrey
41516b4866
better system for avoiding duplicate txs.
2016-01-29 16:08:33 -08:00
Christopher Jeffrey
3959b9cf5d
only emit new transactions.
2016-01-29 16:00:40 -08:00
Christopher Jeffrey
1115468f05
fix typos.
2016-01-29 15:56:22 -08:00
Christopher Jeffrey
e8815f3e6b
version packet: minor.
2016-01-29 15:35:09 -08:00
Christopher Jeffrey
c6f91ddd69
minor fixes for tx requesting.
2016-01-29 15:32:41 -08:00
Christopher Jeffrey
e880dc5a5c
pool._addTX to prevent duplicate requests.
2016-01-29 14:51:36 -08:00
Christopher Jeffrey
7ce5348cd9
debug messages.
2016-01-29 14:45:08 -08:00
Christopher Jeffrey
32c0f8ce3c
do not request duplicate txs.
2016-01-29 14:44:43 -08:00
Christopher Jeffrey
b4abeceac3
handle requesting directly by peer.
2016-01-29 13:53:51 -08:00
Christopher Jeffrey
294e5a5b37
mark txs as in-flight.
2016-01-29 13:10:06 -08:00
Christopher Jeffrey
9ada551b28
auto request txs.
2016-01-29 13:00:29 -08:00
Christopher Jeffrey
3fc7272780
fix typo.
2016-01-29 12:46:25 -08:00
Christopher Jeffrey
ef3f8f37db
no priority on inspection.
2016-01-29 12:45:05 -08:00
Christopher Jeffrey
30ad543c31
more docs. rename some functions.
2016-01-29 11:33:00 -08:00
Christopher Jeffrey
a6c2270775
enforce byte arrays in block.render().
2016-01-28 15:09:59 -08:00
Christopher Jeffrey
07ddae9d33
misc fixes and improvements.
2016-01-27 19:43:24 -08:00
Christopher Jeffrey
4cc9b93fdd
fix resetHeight.
2016-01-27 11:01:45 -08:00
Christopher Jeffrey
5dce1427ba
raw blocks. pool fixes.
2016-01-25 15:40:53 -08:00
Christopher Jeffrey
b98640b27e
drop preload constants.
2016-01-25 13:46:40 -08:00
Christopher Jeffrey
f3980ca029
deprecate chain.getTip().
2016-01-25 11:58:22 -08:00
Christopher Jeffrey
e7d0ea81f9
block and tx methods.
2016-01-24 16:01:29 -08:00
Christopher Jeffrey
0d7929136a
fix getChainwork.
2016-01-23 22:00:19 -08:00
Christopher Jeffrey
7526beace0
chaindb: minor.
2016-01-23 19:36:34 -08:00
Christopher Jeffrey
9a60ae8e50
add back old peer seed code.
2016-01-22 18:35:13 -08:00
Christopher Jeffrey
ef09a776fe
cleanup old tries code.
2016-01-22 18:11:40 -08:00
Christopher Jeffrey
9476f7f70a
remove peer "tries" system.
2016-01-22 18:09:26 -08:00
Christopher Jeffrey
9b266c6ec7
minor.
2016-01-21 18:28:46 -08:00
Christopher Jeffrey
cdfe7b6ec5
add assert.
2016-01-21 18:10:04 -08:00
Christopher Jeffrey
93e0fe95d0
chaindb: back to async writes.
2016-01-21 14:35:13 -08:00
Christopher Jeffrey
32109c5de5
chaindb: error handling.
2016-01-21 14:31:32 -08:00
Christopher Jeffrey
a459d190aa
use async writes.
2016-01-21 14:10:01 -08:00
Christopher Jeffrey
cb73ab908e
chaindb: add allocator.
2016-01-21 14:01:32 -08:00
Christopher Jeffrey
7c2171966c
chaindb: minor fixes.
2016-01-21 13:43:04 -08:00
Christopher Jeffrey
8f3667b866
check range for search.
2016-01-21 04:22:37 -08:00
Christopher Jeffrey
34a44fe391
chaindb: async loading.
2016-01-21 04:10:21 -08:00
Christopher Jeffrey
c5bc356bc9
add getAsync.
2016-01-21 03:58:33 -08:00
Christopher Jeffrey
b65ed25b29
chaindb: fix async.
2016-01-21 03:48:39 -08:00
Christopher Jeffrey
b273bec120
chaindb: checksum.
2016-01-21 03:39:36 -08:00
Christopher Jeffrey
ef51f4f842
chaindb: recovery.
2016-01-21 03:24:29 -08:00
Christopher Jeffrey
c950a30330
chaindb: better loading.
2016-01-21 02:23:01 -08:00
Christopher Jeffrey
495dda79ef
fix assert.
2016-01-21 02:02:44 -08:00
Christopher Jeffrey
18f1412ba7
rename functions.
2016-01-21 01:58:21 -08:00
Christopher Jeffrey
95ff41dde9
move saveAsync elsewhere.
2016-01-21 01:56:01 -08:00
Christopher Jeffrey
c3943c0111
chaindb. avoid buffered writes.
2016-01-21 01:50:22 -08:00
Christopher Jeffrey
dd4660eb15
chaindb: cleanup. remove old functionality.
2016-01-21 01:40:40 -08:00
Christopher Jeffrey
92619d408e
chaindb/pool: fixes. work.
2016-01-21 01:28:59 -08:00
Christopher Jeffrey
9a575e9a26
chain: use binary search for byTime.
2016-01-20 22:32:32 -08:00
Christopher Jeffrey
423b52b0b7
chaindb: minor.
2016-01-20 21:14:50 -08:00
Christopher Jeffrey
f62cf7dc6e
chaindb: use buffers.
2016-01-20 20:10:05 -08:00
Christopher Jeffrey
d5d3dd69e2
chaindb: minor improvements.
2016-01-20 20:06:43 -08:00
Christopher Jeffrey
43a365962b
cleanup chain db. fixes.
2016-01-20 19:56:47 -08:00
Christopher Jeffrey
f6a35d0810
more chain db work.
2016-01-20 18:18:27 -08:00
Christopher Jeffrey
c111d673e7
blockchain db.
2016-01-20 17:40:51 -08:00
Christopher Jeffrey
e461e44303
save memory by not storing prevBlock.
2016-01-20 13:58:11 -08:00
Christopher Jeffrey
ef44bf44f0
more debugging.
2016-01-20 13:35:16 -08:00
Christopher Jeffrey
271ca1aa52
better fork handling for peers.
2016-01-20 12:48:31 -08:00
Christopher Jeffrey
704c95c90d
add tx.getPriority and tx.isFree.
2016-01-20 12:31:47 -08:00
Christopher Jeffrey
f6dc42924b
global debugging. script.isEncoded.
2016-01-20 12:25:19 -08:00
Christopher Jeffrey
03c117b009
more DOS protection.
2016-01-20 12:04:38 -08:00
Christopher Jeffrey
ddbb7894fa
potentially clean up misbehaving peers.
2016-01-20 02:54:52 -08:00
Christopher Jeffrey
009f4f9f72
debug messages for dos prevention.
2016-01-20 02:48:42 -08:00
Christopher Jeffrey
47af5987ae
better system to prevent DOSing.
2016-01-20 02:46:25 -08:00
Christopher Jeffrey
a2c08d9692
drop extra coinbase functions.
2016-01-20 00:21:41 -08:00
Christopher Jeffrey
486c22d0e7
get rid of getStartHeight.
2016-01-19 20:36:48 -08:00
Christopher Jeffrey
27fd056316
minor.
2016-01-19 20:35:26 -08:00
Christopher Jeffrey
c11a651e9d
better loader management.
2016-01-19 20:32:59 -08:00
Christopher Jeffrey
8abaef49a9
check for nulldata in script extraction.
2016-01-19 17:15:27 -08:00
Christopher Jeffrey
5e00e42903
better nonstandard signing.
2016-01-19 16:12:30 -08:00
Christopher Jeffrey
1258cbbbd4
fix input/output calls.
2016-01-19 15:58:12 -08:00
Christopher Jeffrey
ebbb417283
more script data extraction improvements.
2016-01-19 15:53:00 -08:00
Christopher Jeffrey
b389dd1b5f
better key and sig parsing for scripts.
2016-01-19 14:18:46 -08:00
Christopher Jeffrey
c8da41aa9d
toJSON fixes.
2016-01-18 17:12:20 -08:00
Christopher Jeffrey
d2205241ee
wallet key format.
2016-01-18 16:16:00 -08:00
Christopher Jeffrey
f5a63563e3
rename unspent.
2016-01-18 12:48:43 -08:00
Christopher Jeffrey
220b09bc67
fix unspent property.
2016-01-18 12:47:32 -08:00
Christopher Jeffrey
1d5e3ca27e
add tx.setLockTime and tx.increaseFee (rbf).
2016-01-18 12:40:41 -08:00
Christopher Jeffrey
911f9534e4
fix testnet targetting.
2016-01-18 12:14:33 -08:00
Christopher Jeffrey
9011fcc25e
stricter script standards. work on tx.
2016-01-18 01:52:18 -08:00
Christopher Jeffrey
6b36bad41d
fix calls to isLowDER.
2016-01-17 21:23:19 -08:00
Christopher Jeffrey
575843acef
work on chain. check for low der sigs.
2016-01-17 19:57:34 -08:00
Christopher Jeffrey
46b2983eb3
update preload.
2016-01-17 17:15:13 -08:00
Christopher Jeffrey
3745577837
standard opcodes. remove tx methods.
2016-01-17 15:52:09 -08:00
Christopher Jeffrey
6f4609792f
regtest support. tx methods.
2016-01-16 23:48:18 -08:00
Christopher Jeffrey
b9041a0157
sign unknown txs.
2016-01-16 04:50:33 -08:00
Christopher Jeffrey
b1d46206a8
script fixes.
2016-01-15 19:28:17 -08:00
Christopher Jeffrey
e5a82c7195
sighash. tx signing. testnet.
2016-01-15 15:53:57 -08:00
Christopher Jeffrey
46295b3c08
cleanup. misc.
2016-01-15 02:23:22 -08:00
Christopher Jeffrey
7854ec07d8
fix lockTime and changeIndex.
2016-01-14 18:16:49 -08:00
Christopher Jeffrey
05a8aeeb48
add bn2.js.
2016-01-14 16:09:18 -08:00
Christopher Jeffrey
0ba31eeb59
better script conformance.
2016-01-14 15:58:22 -08:00
Christopher Jeffrey
282639b5b1
script standardness.
2016-01-14 11:45:33 -08:00
Christopher Jeffrey
bfca638025
more packet improvements.
2016-01-14 01:59:33 -08:00
Christopher Jeffrey
077588e90a
fix script.args.
2016-01-14 01:34:40 -08:00
Christopher Jeffrey
6154b1f7a1
improve tx verification.
2016-01-14 01:18:31 -08:00
Christopher Jeffrey
ef59dae1b5
simplify tbsHash.
2016-01-14 01:04:11 -08:00
Christopher Jeffrey
8f037ea430
tx: add tbsHash method.
2016-01-14 00:57:55 -08:00
Christopher Jeffrey
f8ec64d46f
do not throw on empty stack.
2016-01-13 20:20:18 -08:00
Christopher Jeffrey
018d534c47
fix anyonecanpay.
2016-01-13 20:05:25 -08:00
Christopher Jeffrey
8ade973b31
sighash work
2016-01-13 19:41:03 -08:00
Christopher Jeffrey
397764ece6
input and output redeem script.
2016-01-13 18:40:51 -08:00
Christopher Jeffrey
4f8d24ba36
more int and packet work.
2016-01-13 18:31:07 -08:00
Christopher Jeffrey
5c1b136117
revert back to old output value writing.
2016-01-13 04:31:20 -08:00
Christopher Jeffrey
37803d178d
use write64 for output values.
2016-01-13 04:15:14 -08:00
Christopher Jeffrey
10bd983899
version and addr packets.
2016-01-13 03:38:23 -08:00
Christopher Jeffrey
a71da261ad
handle low S values in signatures.
2016-01-12 20:26:11 -08:00
Christopher Jeffrey
de455fa3e9
improve int functions and usage in parser and framer.
2016-01-12 18:13:32 -08:00
Christopher Jeffrey
c94457cf1f
more tx refactoring.
2016-01-12 05:15:22 -08:00
Christopher Jeffrey
b147951a83
rename some variables.
2016-01-12 04:23:53 -08:00
Christopher Jeffrey
7b27f5dc9b
hard fee calculation.
2016-01-12 04:08:25 -08:00
Christopher Jeffrey
3c8442b1bb
improve fee calculation.
2016-01-12 03:47:12 -08:00
Christopher Jeffrey
ca03911d80
do not check for uncompressed keys for now.
2016-01-12 03:27:50 -08:00
Christopher Jeffrey
abc1f2b610
signInput should test against keys.
2016-01-12 02:55:35 -08:00
Christopher Jeffrey
645a3a59b2
minor. recover keys for isMultisig?
2016-01-12 02:08:07 -08:00
Christopher Jeffrey
fdc72b2062
let isMultisig handle m and n validation.
2016-01-12 01:13:22 -08:00
Christopher Jeffrey
f17f3b5bee
pool: add startSync and stopSync.
2016-01-12 00:39:39 -08:00
Christopher Jeffrey
f420b41907
improve script.isMultisig.
2016-01-11 23:58:43 -08:00
Christopher Jeffrey
d316b1c640
pool: move common listeners to createPeer.
2016-01-11 22:27:59 -08:00
Christopher Jeffrey
24f8bc69c5
refactor pool and tx.
2016-01-11 22:15:06 -08:00
Christopher Jeffrey
b77314dd0f
signature work. script function renames. add wallet.fillTX/tx.fill.
2016-01-11 15:20:44 -08:00
Christopher Jeffrey
6f86ca2d02
add utils.isBytes.
2016-01-11 01:07:05 -08:00
Christopher Jeffrey
1754e7ee77
fix for miner.
2016-01-11 00:56:27 -08:00
Christopher Jeffrey
9c2b0015d1
checkmultisig fixes. misc.
2016-01-11 00:40:16 -08:00
Christopher Jeffrey
cf5a117a3e
fixes and improvements. allow arbitrary redeem scripts for wallet.
2016-01-11 00:10:31 -08:00
Christopher Jeffrey
442c984c12
improve p2sh building. change wallet key/redeem methods.
2016-01-10 21:43:52 -08:00
Christopher Jeffrey
871e36c426
tx.scriptOutput
2016-01-10 20:28:28 -08:00
Christopher Jeffrey
bf3906b4d4
more fee estimation.
2016-01-10 20:15:14 -08:00
Christopher Jeffrey
eb1a3ea6d2
transaction improvements.
2016-01-10 04:58:03 -08:00
Christopher Jeffrey
0b7ca266ee
tx/script refactor and improvements.
2016-01-09 19:02:19 -08:00
Christopher Jeffrey
0658444eb5
chain improvements.
2016-01-09 14:24:36 -08:00
Christopher Jeffrey
314c14f422
input/output consistency. misc.
2016-01-09 13:22:08 -08:00
Christopher Jeffrey
6b10fabc5f
tx refactor. etc.
2016-01-08 19:27:00 -08:00
Christopher Jeffrey
8087601a7f
work
2016-01-08 16:59:03 -08:00
Christopher Jeffrey
d56f7a3733
even more bufffer work.
2016-01-08 04:11:46 -08:00
Christopher Jeffrey
465b23013d
temporarily use buffers. coinbase fixes. script/tx fixes.
2016-01-08 03:34:55 -08:00
Christopher Jeffrey
df420a4a8b
refactor. work.
2016-01-08 02:22:35 -08:00
Christopher Jeffrey
42fbef82ed
misc
2016-01-07 03:28:58 -08:00
Christopher Jeffrey
c56640a433
various fixes for our miner.
2016-01-07 01:22:06 -08:00
Christopher Jeffrey
8d120a4fd6
more block verification.
2016-01-06 19:15:41 -08:00
Christopher Jeffrey
e1ec89fe7d
sigops
2016-01-06 01:41:06 -08:00
Christopher Jeffrey
6df8319871
fix pool peers.
2016-01-06 00:35:01 -08:00
Christopher Jeffrey
ee97c7ed12
handle chain forks better.
2016-01-06 00:14:51 -08:00
Christopher Jeffrey
680bf01e98
add tx.isFinal. refactor chain usage.
2016-01-05 21:32:31 -08:00
Christopher Jeffrey
c6c75d509b
optimize chain.size()
2016-01-05 16:07:11 -08:00
Christopher Jeffrey
8e698673a0
fix typo. emit resolved entries.
2016-01-05 14:25:14 -08:00
Christopher Jeffrey
d0d5ab2c3b
add mempool packet. miner refactor.
2016-01-05 12:46:30 -08:00
Christopher Jeffrey
ff08f73fa9
check orphan size. misc.
2016-01-05 03:25:53 -08:00
Christopher Jeffrey
60e01b261c
rename fullchain.js to chain.js.
2016-01-05 02:48:53 -08:00
Christopher Jeffrey
32220fcc4f
remove old spv chain.
2016-01-05 02:48:17 -08:00
Christopher Jeffrey
8a930ac037
drop missing event. fix for spv chain. pool.search improvements.
2016-01-05 02:45:57 -08:00
Christopher Jeffrey
2f618c961b
fixes. peer improvements.
2016-01-05 02:28:06 -08:00
Christopher Jeffrey
019ecf4f2a
switch to fullchain for both spv and fullnode.
2016-01-04 20:13:06 -08:00
Christopher Jeffrey
582a21fd5a
getblocks failing for spv.
2016-01-04 18:31:27 -08:00
Christopher Jeffrey
0a97cebf25
improve getblocks download, spv chain, and events.
2016-01-04 18:22:42 -08:00
Christopher Jeffrey
2c3edd50aa
chain: improve locatorHashes.
2016-01-04 16:33:52 -08:00
Christopher Jeffrey
74b1562a87
network: fix checkpoints.
2016-01-04 16:33:11 -08:00
Christopher Jeffrey
6da3fbac3a
add utils.hash test.
2016-01-04 16:03:04 -08:00
Christopher Jeffrey
10fce032b7
improve locatorHashes. fix utils ref in tx-pool. add utils.hash.
2016-01-04 15:12:50 -08:00
Christopher Jeffrey
d0cbc8f358
do not push unknown hash onto locators.
2016-01-04 13:39:40 -08:00
Christopher Jeffrey
d1595c0ec4
use getheaders by default. fix header parsing and handling.
2016-01-04 13:14:09 -08:00
Christopher Jeffrey
50e606f625
fix pool.isWatched.
2016-01-04 10:37:58 -08:00
Christopher Jeffrey
eef4103296
miner: status event.
2016-01-04 05:07:53 -08:00
Christopher Jeffrey
61da977a3f
miner: try to verify txs.
2016-01-04 05:03:24 -08:00
Christopher Jeffrey
20f8c82c7f
add tip event to chain.
2016-01-04 04:59:55 -08:00
Christopher Jeffrey
0350b93a0a
add a simple miner because we can.
2016-01-04 04:48:25 -08:00
Christopher Jeffrey
6758d4fe8a
chain and search fixes. options.
2016-01-04 04:33:49 -08:00
Christopher Jeffrey
0f8819c78e
minor fixes. refactor timestamps.
2016-01-04 04:12:26 -08:00
Christopher Jeffrey
a20cd7edbe
refactor pool. improve chains.
2016-01-04 03:04:09 -08:00
Christopher Jeffrey
484b1f2817
use getheaders.
2016-01-03 06:47:27 -08:00
Christopher Jeffrey
3e5995f741
fix tx pool addition and tx verification.
2016-01-03 01:34:50 -08:00
Christopher Jeffrey
73262b74ba
pool.searchWallet failsafe for fullnode.
2016-01-02 05:19:19 -08:00
Christopher Jeffrey
9c904f7b4f
fix potential uncatchable error.
2016-01-02 05:16:58 -08:00
Christopher Jeffrey
bdc546edbc
fix chain.index.lastTs.
2016-01-02 05:09:44 -08:00
Christopher Jeffrey
a7a8eb11bb
add orphanRoot to spv chain.
2016-01-02 05:04:10 -08:00
Christopher Jeffrey
fc45025131
add chain.compact. orphan failsafe.
2016-01-02 04:48:20 -08:00
Christopher Jeffrey
35ba5a5de5
refactor chain methods. check for orphans during fullnode sync.
2016-01-02 04:32:04 -08:00
Christopher Jeffrey
7a8a7a5a2b
better wallet searching for spv. pool methods.
2016-01-02 03:44:25 -08:00
Christopher Jeffrey
ff16271c1a
comments. remove useless variable.
2016-01-02 00:26:19 -08:00
Christopher Jeffrey
9976208d0d
comments. misc.
2016-01-02 00:16:36 -08:00
Christopher Jeffrey
e04aed96d0
remove throwing assert for now.
2016-01-01 23:54:48 -08:00
Christopher Jeffrey
440933c27d
move pow target methods.
2016-01-01 19:58:35 -08:00
Christopher Jeffrey
0e5d7c41f2
refactor chain.has.
2016-01-01 19:54:22 -08:00
Christopher Jeffrey
5a26b7b71e
add pow retargeting to full chain.
2016-01-01 19:53:57 -08:00
Christopher Jeffrey
8b546a85e0
check for fullNode in handleBlock and handleMerkle.
2016-01-01 19:14:34 -08:00
Christopher Jeffrey
1be3a74c70
more chain method improvements.
2016-01-01 18:46:46 -08:00
Christopher Jeffrey
a4084d8252
more chain methods.
2016-01-01 18:32:15 -08:00
Christopher Jeffrey
4c1a3761af
set relay to false on spv.
2016-01-01 18:07:18 -08:00
Christopher Jeffrey
08320fd3fb
update preload.js.
2016-01-01 17:58:54 -08:00
Christopher Jeffrey
eee2ef5d34
improve pool/chain options.
2016-01-01 17:54:22 -08:00
Christopher Jeffrey
90856a8f5b
add size method.
2016-01-01 17:42:02 -08:00
Christopher Jeffrey
3c5a823445
allow watch() to be used on a full node.
2016-01-01 17:42:02 -08:00
Christopher Jeffrey
146e50dc68
add fullnode chain. improve pool.
2016-01-01 17:41:13 -08:00
Christopher Jeffrey
65dd1727be
push wallet in pool.addWallet.
2016-01-01 14:21:10 -08:00
Christopher Jeffrey
3625a4f4c9
minor fixes.
2015-12-30 14:34:16 -08:00
Christopher Jeffrey
350ca9c875
move all block sync logic to pool.
2015-12-29 18:40:31 -08:00
Christopher Jeffrey
22427fe78f
stop saving block height on blocks.
2015-12-29 18:35:30 -08:00
Christopher Jeffrey
67d1405c15
handle compact mantissa numbers.
2015-12-29 13:13:51 -08:00
Christopher Jeffrey
43b0533a18
minor improvements and fixes.
2015-12-27 23:54:53 -08:00
Christopher Jeffrey
afcb89f76f
block and tx getters. coinbase height. multisig input test.
2015-12-24 13:19:29 -08:00
Christopher Jeffrey
1f8bf8c377
input and output getters.
2015-12-24 12:18:00 -08:00
Christopher Jeffrey
6ceeb6800b
remove useless line.
2015-12-24 03:27:34 -08:00
Christopher Jeffrey
42d872b268
calculate block reward.
2015-12-24 00:34:31 -08:00
Christopher Jeffrey
1fb6cb04b4
clean up input and output schema.
2015-12-23 23:44:59 -08:00
Christopher Jeffrey
207d9e1a30
refactor input and output data.
2015-12-23 23:12:54 -08:00
Christopher Jeffrey
0ccf67aef6
more input and output data work.
2015-12-23 21:55:25 -08:00
Christopher Jeffrey
cf9e11e356
add ids to inputs and outputs without addresses.
2015-12-23 20:09:14 -08:00
Christopher Jeffrey
f3ae1c517a
send block and merkleblock packets correctly.
2015-12-23 19:56:33 -08:00
Christopher Jeffrey
b77c34789e
refactor getData for inputs and outputs.
2015-12-23 19:55:27 -08:00
Christopher Jeffrey
b14c4daee0
refactor tx.utxos().
2015-12-23 18:31:31 -08:00
Christopher Jeffrey
389ee296b0
improve tx building. minor style fixes. utils.uniq.
2015-12-23 16:24:29 -08:00
Christopher Jeffrey
d32a951f37
fix isMultisig: compare to n value.
2015-12-23 11:45:43 -08:00
Christopher Jeffrey
2299ee757e
minor refactor.
2015-12-23 11:35:57 -08:00
Christopher Jeffrey
dddd6b0b49
minor: inspect methods.
2015-12-23 05:45:33 -08:00
Christopher Jeffrey
f68750991d
add block.reward. add coinbase data to into. failsafe for getFee.
2015-12-23 05:33:48 -08:00
Christopher Jeffrey
fdc11b76b2
start checking for height coinbases earlier.
2015-12-23 04:44:21 -08:00
Christopher Jeffrey
58d8e3ce53
fix coinbase parsing.
2015-12-23 04:14:51 -08:00
Christopher Jeffrey
2f6f3e11b1
Revert "use big numbers when calculating fee."
...
This reverts commit a057dc4064 .
2015-12-23 02:42:57 -08:00
Christopher Jeffrey
a057dc4064
use big numbers when calculating fee.
2015-12-23 02:42:36 -08:00
Christopher Jeffrey
d54a532a66
fix error thrown in output.inspect.
2015-12-23 02:35:32 -08:00
Christopher Jeffrey
b3f457ee31
improve locktime checks and coinbase parsing.
2015-12-23 02:34:51 -08:00
Christopher Jeffrey
4ac398e41b
add tx to prev output data.
2015-12-22 22:50:13 -08:00
Christopher Jeffrey
47618898c7
minor.
2015-12-22 20:11:09 -08:00
Christopher Jeffrey
3d417f48df
improve coinbase height check.
2015-12-22 20:07:20 -08:00
Christopher Jeffrey
618177b6a6
grab block height from the coinbase script.
2015-12-22 19:30:32 -08:00
Christopher Jeffrey
07a1322749
inspect methods. better data parsing. expose modules.
2015-12-22 19:27:36 -08:00
Christopher Jeffrey
b522aa2b06
handle merkleblock vs block better.
2015-12-22 15:03:17 -08:00
Christopher Jeffrey
1c8604477f
improve script type tests. improve input/output data.
2015-12-22 14:50:07 -08:00
Christopher Jeffrey
b16a86b2d4
fix typo.
2015-12-22 06:50:09 -08:00
Christopher Jeffrey
d3e4dfaf5c
fix some getters. move getInputData and getOutputData. wallet.toAddress.
2015-12-22 06:21:01 -08:00
Christopher Jeffrey
a17fe6fe5f
use dynamic input and output objects.
2015-12-22 05:00:55 -08:00
Christopher Jeffrey
a91f245e86
add types to data. aliases for utils.
2015-12-22 04:03:15 -08:00
Christopher Jeffrey
eb6a9fc20d
make data easier to extract from inputs and outputs.
2015-12-22 03:22:49 -08:00
Christopher Jeffrey
a6e3024e9b
peer address and port.
2015-12-22 03:19:27 -08:00
Christopher Jeffrey
68c16b214a
add rblock and rhash helpers.
2015-12-22 02:15:33 -08:00
Christopher Jeffrey
52b653083c
add features potentially useful for blockchain explorers.
2015-12-21 20:00:13 -08:00
Christopher Jeffrey
a7ea69f48a
improve utils: primarily toBTC and fromBTC.
2015-12-21 15:20:01 -08:00
Christopher Jeffrey
500f079632
fix script arithmetic, op_verify, and wallet.fillUnspent.
2015-12-21 11:26:13 -08:00
Christopher Jeffrey
d28716c98d
use regular addresses for wallet prefix.
2015-12-20 19:35:56 -08:00
Christopher Jeffrey
87d4d4b0ad
refactor script and wallet. better redeem script error.
2015-12-20 16:08:00 -08:00
Christopher Jeffrey
c0d0423f14
hd/wallet: minor.
2015-12-20 13:29:39 -08:00
Christopher Jeffrey
b900d706c0
move varint and readIntv to utils.
2015-12-20 02:01:19 -08:00
Christopher Jeffrey
f25d69f30f
put user agent in constants.
2015-12-20 01:57:47 -08:00
Christopher Jeffrey
93e42e90a1
drop old fee and dust constants. style.
2015-12-20 01:50:18 -08:00
Christopher Jeffrey
a50ee3e0ba
remove wallet.getPublicKeys().
2015-12-20 01:45:17 -08:00
Christopher Jeffrey
1db84a0528
wallet json and prefix. style. cleanup.
2015-12-20 01:43:09 -08:00
Christopher Jeffrey
61699cca3a
style: function names.
2015-12-19 15:43:28 -08:00
Christopher Jeffrey
0aff6d7cfe
improve script.isValidSig.
2015-12-19 15:26:26 -08:00
Christopher Jeffrey
2e7892c798
use keyPair() in script.verify. whitespace.
2015-12-19 15:24:19 -08:00
Christopher Jeffrey
a18a501c37
refactor hd keys.
2015-12-19 15:14:56 -08:00
Christopher Jeffrey
b20bcf701b
fix private key encryption. style changes.
2015-12-19 14:00:23 -08:00
Christopher Jeffrey
75afb6d953
fix utils.toBTC
2015-12-19 02:57:01 -08:00
Christopher Jeffrey
cb2bcc21c6
prevent buffered _writes from binding thousands of events.
2015-12-19 02:52:51 -08:00
Christopher Jeffrey
a96f27682f
style. fix addr timestamp.
2015-12-19 02:17:01 -08:00
Christopher Jeffrey
d3811acc28
move chain.on("fork") somewhere sane.
2015-12-19 02:08:42 -08:00
Christopher Jeffrey
1a6633bade
style consistency - again.
2015-12-19 02:05:46 -08:00
Christopher Jeffrey
6411ec8914
fix p2sh multisig verification.
2015-12-19 01:43:34 -08:00
Christopher Jeffrey
7cae4c4eb5
remove uint8array check for now. minor style.
2015-12-18 22:57:39 -08:00
Christopher Jeffrey
8746248c2c
addr packet parsing.
2015-12-18 22:55:06 -08:00
Christopher Jeffrey
1e802c152f
comments. more style consistency.
2015-12-18 22:53:31 -08:00
Christopher Jeffrey
5ece45091b
style consistency.
2015-12-18 22:37:02 -08:00
Christopher Jeffrey
9fe8afa7d3
emit orphan event.
2015-12-18 20:33:19 -08:00
Christopher Jeffrey
283157dd71
add allowEval option.
2015-12-18 17:56:06 -08:00
Christopher Jeffrey
0bd4d798a9
fix locator hashes by height.
2015-12-18 17:38:59 -08:00
Christopher Jeffrey
7cabdcfda5
fix getOrphanRoot and usage.
2015-12-18 17:31:45 -08:00
Christopher Jeffrey
d1f8e9b5ff
add chain.hasOrphan method.
2015-12-18 16:58:26 -08:00
Christopher Jeffrey
e735249d0d
try to choose from at least 5 potential peers when syncing.
2015-12-18 16:52:32 -08:00
Christopher Jeffrey
086b32cb73
minor: initialize syncPeer.
2015-12-18 16:39:29 -08:00
Christopher Jeffrey
cf502913b6
check to see if chain is synced.
2015-12-18 16:35:00 -08:00
Christopher Jeffrey
34e90c6baa
handle chain forks from checkpoints. enforce one syncPeer.
2015-12-18 16:30:58 -08:00
Christopher Jeffrey
4984c306b9
minor: function name.
2015-12-18 15:44:15 -08:00
Christopher Jeffrey
6ae273f84d
tx.verify: compare top stack item against zero instead of one.
2015-12-18 15:43:17 -08:00
Christopher Jeffrey
5942209f41
pass size into block and tx for maxsize checks.
2015-12-18 15:41:34 -08:00
Christopher Jeffrey
7ffcc8e7f3
check for syncPeer on blockchain fork.
2015-12-18 13:12:04 -08:00
Christopher Jeffrey
91618258e7
add a peers.bad list for peers with forked blockchains.
2015-12-18 13:10:27 -08:00
Christopher Jeffrey
5791672c07
pass _network to tx. script debugging. tx filled total.
2015-12-18 13:01:23 -08:00
Christopher Jeffrey
82983af52b
pool wallets. chain errors. checkpoint failure.
2015-12-18 12:10:39 -08:00
Christopher Jeffrey
d109eaba6c
handle reject packet.
2015-12-17 19:47:20 -08:00
Christopher Jeffrey
135208910d
always set nSequence to zero when nLockTime is present.
2015-12-17 18:33:27 -08:00
Christopher Jeffrey
1e0a153b59
do not overwrite lockTime input by user.
2015-12-17 17:58:09 -08:00
Christopher Jeffrey
7f70b573c1
enforce checklocktimeverify for nLockTime when adding input. tx.prevOut method.
2015-12-17 17:56:46 -08:00
Christopher Jeffrey
aac4911b4e
remove comments for pushdata issue.
2015-12-17 17:39:08 -08:00
Christopher Jeffrey
f89908bb65
script formatting
2015-12-17 17:37:13 -08:00
Christopher Jeffrey
3e747f0df4
comment
2015-12-17 17:33:02 -08:00
Christopher Jeffrey
5b68ec0b3e
add option for colored coin output creation.
2015-12-17 17:31:37 -08:00
Christopher Jeffrey
efe1181bc1
move key sorting to utils.
2015-12-17 17:23:33 -08:00
Christopher Jeffrey
b74e8de067
input tests. function names. getInputKey/getOutputKey.
2015-12-17 17:14:41 -08:00
Christopher Jeffrey
6abfc10a28
improve input checks with keys/hashes/redeemscript.
2015-12-17 16:53:35 -08:00
Christopher Jeffrey
6caa6b91dd
add spendable checking for checklocktimeverify.
2015-12-17 16:06:08 -08:00
Christopher Jeffrey
5e89aedf0b
improve input testing.
2015-12-17 16:06:08 -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
07a6788831
optimize block and tx rendering. script maxes. sync.
2015-12-17 16:06:08 -08:00
Christopher Jeffrey
88ddb3620c
get blockchain sync working. fix pushdata ops.
2015-12-17 16:05:48 -08:00
Christopher Jeffrey
5e5507f668
optimize checkmultisig.
2015-12-15 01:48:21 -08:00
Christopher Jeffrey
c44ea0090f
implement sighash_single bug.
2015-12-15 01:41:44 -08:00
Christopher Jeffrey
1b07d6e906
minor cleanup.
2015-12-15 01:23:49 -08:00
Christopher Jeffrey
c68ab4ee7d
implement all sighash types. add hasUnspent().
2015-12-15 01:22:24 -08:00
Christopher Jeffrey
b0a3a0e853
utils. minor fixes. wallet functions.
2015-12-14 14:00:06 -08:00
Christopher Jeffrey
5c1606985a
outputScript() consistency.
2015-12-10 18:02:47 -08:00
Christopher Jeffrey
1caa0804d9
add getKey functions to TX.
2015-12-10 17:54:34 -08:00
Christopher Jeffrey
bb9974b818
add master key reference to hd keys.
2015-12-10 17:54:15 -08:00
Christopher Jeffrey
243d3fd69f
fill checkmultisig scripts with 0s if not enough keys are available. add format function.
2015-12-10 17:53:42 -08:00
Christopher Jeffrey
c251def27c
wallet: multisig key handling. prefixes. to/fromJSON.
2015-12-10 17:45:56 -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
3f44538b46
remove commented code. error consistency.
2015-12-10 02:28:57 -08:00
Christopher Jeffrey
3dec18c2c7
wallet/tx/script: n limit. refactor multisig options.
2015-12-10 02:25:44 -08:00
Christopher Jeffrey
14f08e891c
improve toBTC and fromBTC while ensuring safety.
2015-12-09 17:31:45 -08:00
Christopher Jeffrey
ef1244442f
check for network on fromJSON.
2015-12-09 16:32:01 -08:00
Christopher Jeffrey
57491aaadc
add network.js and testnet support. see #40 .
2015-12-09 16:25:55 -08:00
Christopher Jeffrey
26035c3b41
minor fix for disabled op_eval.
2015-12-09 14:40:40 -08:00
Christopher Jeffrey
f9186d785a
ensure p2sh inputs have only push ops (do the same for raw multisig?).
2015-12-09 14:35:47 -08:00
Christopher Jeffrey
72d9a93773
fix and test if statements. fix comparisons.
2015-12-09 14:35:23 -08:00
Christopher Jeffrey
690fe7163a
better handling of [] when it is OP_0.
2015-12-09 12:42:45 -08:00
Christopher Jeffrey
2fd1d171f2
handle op_1negate.
2015-12-09 12:15:02 -08:00
Christopher Jeffrey
79a594716a
reorder opcode handlers. move op_eval (disabled).
2015-12-09 12:02:39 -08:00
Christopher Jeffrey
d45350ede9
refactor script.execute order of opcodes.
2015-12-09 12:00:35 -08:00
Christopher Jeffrey
e605fe5388
whitespace.
2015-12-09 11:57:54 -08:00
Christopher Jeffrey
2412c0999b
potential tx.verify fix.
2015-12-09 11:56:08 -08:00
Christopher Jeffrey
a0a391e89e
add if/notif/else/endif opcodes.
2015-12-09 11:55:05 -08:00
Christopher Jeffrey
d1ac6e914d
refactor script.execute.
2015-12-09 10:57:18 -08:00
Christopher Jeffrey
c869578009
script: cleanup.
2015-12-09 10:44:44 -08:00
Christopher Jeffrey
89f2a0dcc3
formatting. make use of helpers in hd.
2015-12-09 10:40:33 -08:00
Christopher Jeffrey
8a33f2efa1
add getFullPublicKey/getOwnPublicKey and use appropriately.
2015-12-08 19:42:12 -08:00
Christopher Jeffrey
71ea61e467
update elliptic. remove ec.curve.n workaround.
2015-12-08 17:34:36 -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
a9a9cf0879
add more opcodes to script.execute. handle codesep properly.
2015-12-08 14:06:10 -08:00
Christopher Jeffrey
fd7d20be9c
enforce strict ordering with checkmultisig.
2015-12-08 11:46:14 -08:00
Christopher Jeffrey
3c0bf360e2
add bip66 strict der sig checking.
2015-12-08 11:35:42 -08:00
Christopher Jeffrey
adbb0099a1
add checklocktimeverify. pass in tx and input to execute() instead of using hasher callback.
2015-12-08 11:24:22 -08:00
Christopher Jeffrey
7016991366
order keys and signatures for multisig correctly.
2015-12-07 19:18:37 -08:00
Christopher Jeffrey
77623bb8d6
remove useless code.
2015-12-07 16:34:44 -08:00
Christopher Jeffrey
58d8881e46
add hd tests.
2015-12-07 16:17:09 -08:00
Christopher Jeffrey
a1fea2bd65
scriptOutput: move "p2shify".
2015-12-07 15:55:31 -08:00
Christopher Jeffrey
37e1c8a2ef
formatting changes.
2015-12-07 15:51:15 -08:00
Christopher Jeffrey
b1e7cde3dd
improve script functionality and usage.
2015-12-07 15:39:18 -08:00
Christopher Jeffrey
cf20326e98
verify sighash types other than all.
2015-12-07 14:22:25 -08:00
Christopher Jeffrey
1804acc77c
tests passing.
2015-12-07 14:02:25 -08:00
Christopher Jeffrey
3d9d6be23c
use this.m for nsigs.
2015-12-07 11:04:23 -08:00
Christopher Jeffrey
9241a6660e
remove old wallet.fill and wallet.sign.
2015-12-07 11:02:50 -08:00
Christopher Jeffrey
d7bc48fc2e
move wallet.fill to tx object.
2015-12-07 11:00:58 -08:00
Christopher Jeffrey
ae394fad11
improve tx.maxSize for p2sh and multisig.
2015-12-05 20:54:18 -08:00
Christopher Jeffrey
6295642f20
remove useless if statement.
2015-12-05 20:23:33 -08:00
Christopher Jeffrey
4f76b9f18c
fix scriptInput/signInput for multisig/p2sh.
2015-12-05 19:02:44 -08:00
Christopher Jeffrey
db0da78ae5
only start calculating startHeight and locatorHashes after chain load.
2015-12-05 18:34:18 -08:00
Christopher Jeffrey
3f2d53b414
hd.js: workaround for latest bn.js.
2015-12-05 18:19:52 -08:00
Christopher Jeffrey
c96a12bf2e
fix validateAddress. cleanup.
2015-12-05 04:59:18 -08:00
Christopher Jeffrey
46a5ca7500
minor fix for wallet.fill.
2015-12-05 04:18:21 -08:00
Christopher Jeffrey
916fca9c2f
update hash.js. use for sha512-hmacs.
2015-12-05 04:16:41 -08:00
Christopher Jeffrey
40fca0dda8
remove noSign and getChange for now.
2015-12-05 03:55:08 -08:00
Christopher Jeffrey
a2f13d94c3
fix address problems. update elliptic to 3.0.3.
2015-12-05 03:40:11 -08:00
Christopher Jeffrey
505aad8729
improve/fix p2sh. move input signing functionality to tx object.
2015-12-05 03:01:37 -08:00
Christopher Jeffrey
377e156874
fix m, n, publicKeys in wallet constructor.
2015-12-05 01:03:51 -08:00
Christopher Jeffrey
1e10b83acf
fix redeem script push in wallet.
2015-12-05 00:50:19 -08:00
Christopher Jeffrey
1d210589c5
comments explaining signing logic.
2015-12-05 00:02:23 -08:00
Christopher Jeffrey
acbe4d0c2e
remove wallet.signEmpty and tx.signature for now.
2015-12-05 00:01:59 -08:00
Christopher Jeffrey
c8e04d8552
comments
2015-12-04 23:16:02 -08:00
Christopher Jeffrey
87eea1e398
fixes and minor style changes
2015-12-04 22:50:13 -08:00
Christopher Jeffrey
ea9af49f4b
hd and p2sh
2015-12-04 18:01:31 -08:00
Christopher Jeffrey
3bfd10d0d0
work
2015-12-01 22:59:26 -08:00
Christopher Jeffrey
fcc9d661c1
satoshi: fix blockchain download.
2015-11-30 18:15:57 -08:00
Christopher Jeffrey
feda74523f
peer/pool: add origin satoshi protocol.
2015-11-30 12:36:39 -08:00
Christopher Jeffrey
a6584ae821
script: max length. chain: deadbeef fix.
2015-11-30 12:36:06 -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
4e7dbae829
fix: minor fixes to block framer and block.
2014-06-24 01:08:44 -05:00
Christopher Jeffrey
73ea21a903
minor: style - move block json functions to bottom of the file.
2014-06-24 00:59:39 -05:00
Christopher Jeffrey
5e3e72ba4c
minor: more style concerns.
2014-06-24 00:57:46 -05:00
Christopher Jeffrey
6072fe7afd
minor: remove commented code. style concerns.
2014-06-24 00:45:18 -05:00
Christopher Jeffrey
c6bafbcb48
fix: ensure user agent is less than 0xfd in length. we can assume the varint is 1 byte.
2014-06-24 00:43:37 -05:00
Christopher Jeffrey
6a03b30ddf
fix: allow ownOutputs as orphans - fixes failing test. see #27 .
2014-06-16 22:46:58 -05:00
Christopher Jeffrey
2e14fe1780
fix tx-pool unspent output handling. fixes #26 .
2014-06-16 18:55:04 -05:00
Christopher Jeffrey
3a7b20ddee
minor: if statement style.
2014-06-12 17:09:57 -05:00
Christopher Jeffrey
9442920e73
wallet: improve ownInput and ownOutput.
2014-06-12 02:55:53 -05:00
Christopher Jeffrey
dbd3b5025a
tx-pool: handle noWrite better. update tx.block along with tx.ts.
2014-06-11 18:45:34 -05:00
Christopher Jeffrey
96e1cbb0e1
pool: emit peer in tx broadcast.
2014-06-11 18:43:50 -05:00
Christopher Jeffrey
2697d37753
Merge pull request #25 from indutny/peer-events
...
Peer events
2014-06-07 03:48:43 -05:00
Christopher Jeffrey
9363aff634
pool: pass peer in through error events...again.
2014-06-07 03:40:42 -05:00
Christopher Jeffrey
d577b7cbd3
pool: pass peer in through error events.
2014-06-07 03:39:05 -05:00
Christopher Jeffrey
7b928f079c
utils: improve nextTick.
2014-06-06 16:23:26 -05:00
Christopher Jeffrey
eadb7a50c7
pool: add version and peer events for peers.
2014-06-06 16:20:50 -05:00
Christopher Jeffrey
005c11e967
parser: fix version parsing. check user agent in tests.
2014-06-06 15:47:29 -05:00
Christopher Jeffrey
ac8905bf3d
fix: wallet.sign return value.
2014-06-06 14:54:02 -05:00
Christopher Jeffrey
ac60920f98
fix: keep track of the input index better for subscript hashing.
2014-06-06 12:29:36 -05:00
Christopher Jeffrey
11b56e32d7
fix: do not throw on destroyed peers.
2014-06-06 06:37:47 -05:00
Christopher Jeffrey
28abd09845
wallet: allow inputs and offset to be passed into wallet.sign.
2014-06-06 03:10:21 -05:00
Christopher Jeffrey
5a67c56b00
Merge pull request #23 from chjj/block-size
...
parser: fix minimum block size.
2014-06-03 09:56:56 -05:00
Christopher Jeffrey
4dd8a54501
framer: another style fix.
2014-06-03 09:46:19 -05:00
Christopher Jeffrey
841bf86d7d
block: fix for style conventions.
2014-06-03 09:45:53 -05:00
Christopher Jeffrey
566b2e9916
parser: fix minimum block size.
2014-06-02 03:14:44 -05:00
Christopher Jeffrey
8d6c438e3d
pool: stop throwing uncatchable errors on parser errors.
2014-06-02 02:29:15 -05:00
Christopher Jeffrey
2b88192562
chain: fix fill percent.
2014-05-26 19:19:14 -05:00
Fedor Indutny
013a85c6a5
Merge pull request #16 from chjj/version-packet
...
Version packet
2014-05-26 22:12:36 +04:00
Christopher Jeffrey
1b88b355ac
chain: add a cacheLimit option to chain.
2014-05-26 12:53:47 -05:00
Christopher Jeffrey
7e38e4de7c
pool: change pool.options.satoshi to pool.options.relay.
2014-05-26 12:43:41 -05:00
Christopher Jeffrey
a3b923ae76
peer: have updateWatch getblocks instead of filterload for the satoshi option.
2014-05-26 05:12:56 -05:00
Christopher Jeffrey
024350dbe4
peer/pool: improve handleInv. improve addPeer.
2014-05-26 04:03:23 -05:00
Christopher Jeffrey
6d2c1bd9f1
framer: fix undefined var typo.
2014-05-25 08:02:33 -05:00
Christopher Jeffrey
8546cc7e33
block: fix timestamp check...again.
2014-05-24 18:06:52 -05:00
Christopher Jeffrey
1052b7361c
block: fix timestamp check in checkBlock.
2014-05-24 18:05:31 -05:00
Christopher Jeffrey
c1fbab35e1
block: remove some unused code from checkBlock.
2014-05-24 13:44:10 -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
24d9b2b2d8
pool: allow sending filterload to peers without an id to add to the bloom filter.
2014-05-24 02:16:59 -05:00
Christopher Jeffrey
a5f20114e8
framer: version packet options, relay and height.
2014-05-24 02:16:59 -05:00
Christopher Jeffrey
2d7599d2d3
block: use utils.dsha256 instead of hash.js for merkle tree building.
2014-05-24 01:19:32 -05:00
Christopher Jeffrey
60a9e556f8
framer: frame regular blocks with transactions correctly.
2014-05-23 23:27:54 -05:00
Christopher Jeffrey
e3e324441b
block: improve performance of duplicate tx check.
2014-05-23 23:13:16 -05:00
Christopher Jeffrey
44774e7c6b
block: follow the behavior of bitcoind's CheckBlock().
2014-05-23 23:12:46 -05:00
Christopher Jeffrey
e66f2f50bf
block: build merkleTree to verify merkleRoot on regular blocks.
2014-05-23 23:08:59 -05:00
Christopher Jeffrey
7de6964628
allow usage of the original non-spv pre BIP-37 satoshi protocol.
2014-05-23 10:56:02 -05:00
Christopher Jeffrey
f4dbc0ee33
parser: parse transactions in regular blocks.
2014-05-23 10:05:46 -05:00
Christopher Jeffrey
faca3454b2
framer: fix array length, assuming user-agent is below 0xfd in length.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-23 14:39:51 +04:00
Christopher Jeffrey
9981835df4
framer: includer user-agent in version packet.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-23 14:35:22 +04:00
Christopher Jeffrey
793fed1974
framer: refactor.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:20 +04: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
0b188640ec
util: use regular loop constructs for u64 writes.
...
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
615292de46
util: style changes.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:19 +04:00
Christopher Jeffrey
84b53a049d
util: perhaps a more clever way of U64 writes using bn.js.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:19 +04:00
Christopher Jeffrey
ca2609b7e7
util: bignum - use toArray instead of +toString.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:19 +04:00
Christopher Jeffrey
d1853b2e52
util: simplify 64bit writes using bn.js.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:19 +04:00
Christopher Jeffrey
5ee3fbcf72
util: properly utilize bn.js.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:19 +04:00
Christopher Jeffrey
9bec16ca49
peer: minor style fix.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:19 +04:00
Christopher Jeffrey
29746b5164
utils: add simple utils.isIP in place of net.isIP.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:18 +04:00
Christopher Jeffrey
2edfdd8b36
peer: style fixes.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:18 +04:00
Christopher Jeffrey
5c5762a000
framer: fix 32 and 64 bit support for varint().
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:18 +04:00
Christopher Jeffrey
e89eb925e6
framer: use varint function for addr packet.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:18 +04:00
Christopher Jeffrey
6e8b03df96
peer: keep ips as arrays.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:18 +04:00
Christopher Jeffrey
aa383b984e
peer: take into account omitted zeros for ipv6 addresses.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:18 +04:00
Christopher Jeffrey
e9ec9a5f0c
peer: fix potential error.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:18 +04:00
Christopher Jeffrey
b2c4af302d
peer: remove _getOwnIP.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:17 +04:00
Christopher Jeffrey
d0b14008d0
peer: implement response to getaddr.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:17 +04:00
Christopher Jeffrey
d617edf3ab
chain: fix undefined var in storage.del call.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-19 12:13:15 +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
745473784f
block: style concerns. fix type variable.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-19 00:21:41 +04:00
Christopher Jeffrey
810e4f5ea7
block: add toJSON and fromJSON to Block.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-19 00:21:41 +04:00
Christopher Jeffrey
f3c9ebd9a5
framer: fix block framing.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-18 21:00:56 +04:00
Christopher Jeffrey
6d9c150134
framer: fix typo.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-18 21:00:56 +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
Christopher Jeffrey
2b5f8693bf
framer: add tx, block, and merkleblock packet sending to the framer.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-18 21:00:56 +04:00
Christopher Jeffrey
3998146046
block: avoid error by ensuring hashes and flags for non-merkleblocks.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-18 21:00:55 +04:00
Christopher Jeffrey
296f95b27b
tx: fix global variable assignment.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-18 21:00:55 +04:00
Christopher Jeffrey
4894f6965f
peer: txs event - only emit hashes to mimic blocks event.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-18 18:09:41 +04:00
Christopher Jeffrey
2ab9334b4b
pool: when proxying peer->pool events. pass peer as the 2nd arg.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-18 18:09:41 +04:00
Christopher Jeffrey
01409b34af
pool: emit blocks and txs event on pool.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-18 18:09:40 +04:00
Christopher Jeffrey
b041d3ae99
chain: misc fixes.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-18 18:09:40 +04:00
Christopher Jeffrey
d331cfbb9e
fix: take into account var_int for addr. move to parser.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-17 21:03:51 +04:00
lms
67298c60e0
peer: socket -> createSocket parameter
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-16 01:28:59 +04:00
Christopher Jeffrey
24779fb398
peer/pool: emit addr event on pool. refactor addr handler.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-16 01:28:17 +04:00
Christopher Jeffrey
b2ee0891a1
peer: remove useless map call.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-16 01:28:17 +04:00
Fedor Indutny
c69660d81d
pool: fix relay of pending TX
2014-05-15 15:08:33 +04:00
Fedor Indutny
abf34321f6
wallet: fix .loaded without storage
2014-05-15 13:31:56 +04:00
Fedor Indutny
2365e10d9b
pool: support adding and removing wallets
2014-05-15 12:56:19 +04:00
Fedor Indutny
7e72a4d79d
utils: toBTC()
2014-05-15 02:59:07 +04:00
Christopher Jeffrey
e76bed360f
peer: handle addr packet.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-15 00:55:45 +04:00
Christopher Jeffrey
d5f29c37b4
script: fix undefined error.
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-15 00:31:10 +04:00
Fedor Indutny
b425cb4639
pool: proper backoff
2014-05-14 19:24:28 +04:00
Fedor Indutny
a672b955c9
pool: fix search
2014-05-14 16:27:59 +04:00
Fedor Indutny
8535fa6fa7
lib: searialize searches
2014-05-14 15:01:37 +04:00
lms
9ed4f0f4df
remove global (not that it matters but looks prettier in my emacs)
2014-05-13 21:25:30 +02:00
Fedor Indutny
f7300fb979
peer: backoff randomly to not spin on reconnect
2014-05-13 15:13:52 +04:00
Fedor Indutny
2a6048f104
wallet: emit updates with tx
2014-05-13 01:11:33 +04:00
Fedor Indutny
3b2fd8e168
parser: support Uint8Array's
2014-05-12 20:54:51 +04:00
Fedor Indutny
516b64f0cb
pool: add .isFull()
2014-05-12 16:32:57 +04:00
Fedor Indutny
3fe7d097ec
parser: make sure to not fail synchronously
2014-05-12 13:04:52 +04:00
Fedor Indutny
dfdc69aa3a
lib: remove heavy modules
2014-05-11 14:27:05 +04:00
Fedor Indutny
ee9b9cf0e2
wallet: asyncify .fill()
2014-05-11 11:47:00 +04:00
Fedor Indutny
6d99072caf
pool: fix finalization
2014-05-11 11:42:48 +04:00
Fedor Indutny
3ef7008a32
wallet: make .fill() throw
2014-05-11 02:41:00 +04:00
Fedor Indutny
2c36c8692a
wallet: .fill()
2014-05-11 01:43:20 +04:00
Fedor Indutny
8cd092dc2e
lib: fix chain.isFull()
2014-05-10 23:35:22 +04:00
Fedor Indutny
a7880de752
tx-pool: fix update event
2014-05-10 23:18:16 +04:00
Fedor Indutny
755f3fd13c
utils: fix revHex
2014-05-10 22:47:54 +04:00
Fedor Indutny
ee9037e19a
lib: jshint
2014-05-10 22:43:15 +04:00
Fedor Indutny
4415f978a6
chain: kill forks :)
2014-05-10 22:31:51 +04:00
Fedor Indutny
2f2b6a9aa7
preload: fix indexes
2014-05-10 21:52:41 +04:00
Fedor Indutny
7a2c8a933f
chain: set height properly
2014-05-10 20:32:37 +04:00
Fedor Indutny
169be71d79
tx: store as JSON
2014-05-10 20:22:35 +04:00
Fedor Indutny
e716f4eb00
tx-pool: fix ps check
2014-05-10 19:50:25 +04:00
Fedor Indutny
4b6eeeea66
tx-pool: ignore and remove stale transactions
2014-05-10 19:47:30 +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
0efe2e2021
script: fix verification of multisig
2014-05-10 10:39:20 +04:00
Fedor Indutny
2c5a622a66
pool: emit 'full' faster
2014-05-10 02:51:49 +04:00
Fedor Indutny
7a8d6a1018
pool: add block to chain after _response()
2014-05-10 02:05:37 +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
17d0903a35
wallet: emit all added TXs
2014-05-09 15:28:26 +04:00
Fedor Indutny
af993dc66b
tx-pool: emit updates only at end of .add()
2014-05-09 15:13:20 +04:00
Fedor Indutny
d4f11676c7
tx: encode as hex
2014-05-09 15:00:50 +04:00
Fedor Indutny
90ea2e24d1
wallet: .pending()
2014-05-09 14:03:00 +04:00
Fedor Indutny
26516085f2
lib: update bn.js and elliptic
2014-05-09 03:53:57 +04:00
Fedor Indutny
048bca0b8a
wallet: store timestamp of transactions
2014-05-08 20:25:12 +04:00
Fedor Indutny
292da0625e
chain: fixes
2014-05-08 17:47:51 +04:00
Fedor Indutny
8043be6e40
pool: make some functions asynchronous
2014-05-08 16:28:45 +04:00
Fedor Indutny
5c103aeb6c
chain: storage support
2014-05-08 14:32:47 +04:00
Fedor Indutny
688b16eb98
wallet: preliminary storage support
2014-05-08 14:09:11 +04:00
Fedor Indutny
1d8574bdbd
wallet: allow export/import without pub key
2014-05-08 13:50:11 +04:00
Fedor Indutny
a77083ce66
wallet: accept both private and public keys
2014-05-07 20:11:27 +04:00
Fedor Indutny
f9dc43eba2
chain: improvements
2014-05-07 16:54:22 +04:00
Fedor Indutny
4a2c54827b
chain: better preload generation algorithm
2014-05-07 04:13:30 +04:00
Fedor Indutny
f95e8313b3
chain: prefer to keep more than less
2014-05-07 01:10:50 +04:00
Fedor Indutny
2a4553f6c5
preload: script to update
2014-05-06 22:08:38 +04:00
Fedor Indutny
a6be7bf5f7
lib: JSON serialization for everyone
2014-05-06 21:33:05 +04:00
Fedor Indutny
b98be4b388
pool: load interval
2014-05-06 20:46:20 +04:00
Fedor Indutny
762b53a011
pool: lower timeouts
2014-05-06 17:15:23 +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
c6eeb66f6d
script: stricter isMultisig()
2014-05-06 13:58:35 +04:00
Fedor Indutny
403beca64b
peer: proper reporting of reject
2014-05-06 13:42:17 +04:00
Fedor Indutny
f787590efe
script: do not change inputs
2014-05-06 13:30:32 +04:00
Fedor Indutny
7f0ea92a43
peer: improvements
2014-05-06 00:55:24 +04:00
Fedor Indutny
fb651d703e
wallet: use compressed public key
2014-05-05 17:39:22 +04:00
Fedor Indutny
62d9af1194
parser: parse reject
2014-05-05 16:52:17 +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
113e7dcdc3
tx: fix verification
2014-05-05 04:30:39 +04:00
Fedor Indutny
9fd54758a2
tx: wip sign/verify
2014-05-05 03:14:31 +04:00
Fedor Indutny
471a78b0fa
wallet: wip sign
2014-05-05 01:58:48 +04:00
Fedor Indutny
458e606359
wip
2014-05-04 23:24:32 +04:00
Fedor Indutny
6fd7173c89
wip
2014-05-04 00:48:43 +04:00
Fedor Indutny
f185574442
lib: save progress
2014-05-03 23:55:38 +04:00
Fedor Indutny
40ea4d1fb1
tx: parse
2014-05-03 17:46:15 +04:00
Fedor Indutny
cd3f04268a
block: verify
2014-05-03 16:51:16 +04:00
Fedor Indutny
1ac3208360
pool: refactor, make search work!
2014-05-03 16:11:06 +04:00
Fedor Indutny
0eecb94b3f
pool: save progress
2014-05-02 18:22:06 +04:00
Fedor Indutny
b3c6eb06bc
chain: fix requesting known blocks
2014-05-02 15:00:31 +04:00
Fedor Indutny
c3239b7f36
chain: preload and get
2014-05-02 14:50:21 +04:00
Fedor Indutny
9e0808eb39
pool: wip
2014-05-02 13:40:59 +04:00
Fedor Indutny
6e3cd9da85
pool: wip
2014-05-02 02:27:58 +04:00
Fedor Indutny
c71258103b
pool: wip
2014-05-02 00:08:07 +04:00
Fedor Indutny
1432608813
poll: wip
2014-05-01 22:43:38 +04:00
Fedor Indutny
98bf123f5d
chain: do not create duplicate orphans
2014-05-01 02:31:42 +04:00
Fedor Indutny
6cb1594424
lib: save progress
2014-04-30 21:45:55 +04:00
Fedor Indutny
a20cb1688f
wip
2014-04-30 12:44:59 +04:00
Fedor Indutny
106d243873
parser: fix slicing
2014-04-28 19:57:40 +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