Commit Graph

5136 Commits

Author SHA1 Message Date
Braydon Fuller
3457ccc91b
blockchain: remove blocks after commit 2019-04-08 13:24:54 -07:00
Braydon Fuller
83824d73b1
blockstore: optimize block read and index
There is potential for around a 10% to 23% increase to the performance
of block reads by using `allocUnsafe`, however there is already around
a 3 to 6 times increase to the performance. While it's safe to use
`allocUnsafe` as the number of bytes read is checked to be the same
size as the buffer allocation, there is a potential for test cases
to introduce _other_ behavior for `fs.read` that may not have the
same behavior, though this isn't currently the case.
2019-04-08 13:20:00 -07:00
Braydon Fuller
41ce504175
bcoin: expose blockstore module 2019-04-08 13:18:59 -07:00
Braydon Fuller
8337176e07
migrate: add time to migrate and compaction log message 2019-04-08 13:18:59 -07:00
Braydon Fuller
f3e517c3c0
blockstore: fix logger, improve messages 2019-04-08 13:18:58 -07:00
Braydon Fuller
f24f64b483
changelog: add blockstore changes and migration notes 2019-04-08 13:18:58 -07:00
Javed Khan
6af6353906
blockstore: add README and docs 2019-04-08 13:18:58 -07:00
Braydon Fuller
961f6eddb5
blockstore: index undo blocks from files 2019-04-08 13:18:57 -07:00
Braydon Fuller
8fc605c4a9
blockstore: index after write interrupt and use less memory 2019-04-08 13:18:57 -07:00
Braydon Fuller
5cbbcf5409
blockstore: do not write block twice 2019-04-08 13:18:57 -07:00
Braydon Fuller
58e623e30a
test: minor, cleanup and clarity 2019-04-08 13:18:56 -07:00
Braydon Fuller
747a8e707b
blockstore: tests and fixes for blockstore error cases 2019-04-08 13:18:56 -07:00
Braydon Fuller
0f0cb00c54
blockstore: minor, spelling 2019-04-08 13:18:56 -07:00
Braydon Fuller
bdcb392a9c
blockchain: do not check blockstore with spv 2019-04-08 13:18:56 -07:00
Braydon Fuller
d1e747cf2f
blockstore: minor, update comments and docs 2019-04-08 13:18:55 -07:00
Braydon Fuller
2ba3ee6354
migrate: move block undo coins to blockstore 2019-04-08 13:18:55 -07:00
Braydon Fuller
8b6ec89a64
blockchain: use blockstore for undo coins 2019-04-08 13:18:55 -07:00
Braydon Fuller
89d3253f29
blockstore: add ensure method to create directories 2019-04-08 13:18:54 -07:00
Braydon Fuller
0b0dd58a91
node: add blockstore to full node 2019-04-08 13:18:54 -07:00
Braydon Fuller
11af5456ce
blockstore: additional options and create function 2019-04-08 13:18:54 -07:00
Javed Khan
8748e4dd2d
migrate: move blocks to blockstore files 2019-04-08 13:18:53 -07:00
Javed Khan
6be21203af
blockchain: integrate blockstore into chaindb 2019-04-08 13:18:53 -07:00
Braydon Fuller
3cec13ef5e
blockstore: add block data types with an undo type 2019-04-08 13:18:53 -07:00
Braydon Fuller
abd2ae4b5d
blockstore: prevent blocks writes at the same position 2019-04-08 13:18:53 -07:00
Braydon Fuller
2d08b296f7
blockstore: recover from block write interrupt 2019-04-08 13:18:52 -07:00
Braydon Fuller
64fb7c1d88
bench: add bench json output for blockstore 2019-04-08 13:18:52 -07:00
Braydon Fuller
620f21d6f5
blockstore: await for level block store writes 2019-04-08 13:18:52 -07:00
Braydon Fuller
0609ce72fc
bench: add benchmarks for blockstore 2019-04-08 13:18:51 -07:00
Braydon Fuller
8435a116f1
blockstore: add file block storage 2019-04-08 13:18:47 -07:00
Braydon Fuller
f57bd51187
Merge pull request #730 from tynes/document-bech32-tests
test: document bech32 test vectors
2019-04-05 09:48:29 -07:00
Braydon Fuller
392b3836fc
Merge pull request #715 from pinheadmz/inspect
Use custom `inspect` for all objects to avoid deprecation warning
2019-04-05 09:41:24 -07:00
Braydon Fuller
7136c256fc
Merge pull request #745 from pinheadmz/hashstring
util: reverse buffers instead of strings
2019-04-05 08:36:47 -07:00
Matthew Zipkin
fc7fd3cb4b
bench: reverse hex string hash 2019-04-04 23:59:30 -07:00
Matthew Zipkin
1b868b6a9d
util: reverse buffers instead of strings 2019-04-02 16:53:46 -07:00
Braydon Fuller
7ceb8874ee
Merge pull request #736 from braydonf/coin-cache
Remove coin cache
2019-04-02 15:24:07 -07:00
Braydon Fuller
434589e314
Merge pull request #741 from tynes/remove-webpack-scripts
npm scripts: delete webpack
2019-04-02 15:14:45 -07:00
Javed Khan
6a01409b79
Merge pull request #739 from pinheadmz/scan
node-http: require Bloom filter is loaded for `rescan` socket call
2019-04-02 18:55:53 +05:30
Matthew Zipkin
2980b4e739
http-test: socket rescan 2019-04-01 12:38:30 -07:00
Mark Tyneway
0549065752
npm scripts: delete webpack 2019-03-30 15:19:24 -07:00
Matthew Zipkin
83639f151c
util: fallback for inspect 2019-03-27 07:36:22 -04:00
Braydon Fuller
01a71561b1
Merge pull request #731 from tynes/validateaddress-upgrade
validateaddress and getaddressinfo RPC Update
2019-03-26 16:29:30 -07:00
Mark Tyneway
6850a328bf
changelog: getaddressinfo, validateaddress 2019-03-26 16:18:57 -07:00
Mark Tyneway
a28ffa272a
wallet rpc: add getaddressinfo rpc command
update the rpc command to better match bitcoind.
add the ismine and iswatchonly fields and
segwit related fields such as witness_version
and witness_program.
2019-03-26 16:13:18 -07:00
Mark Tyneway
26a2000b01
node rpc: update validateaddress
updates validateaddress to match the changes
in bitcoind https://github.com/bitcoin/bitcoin/pull/10583.
removes the fields ismine and iswatchonly, those
are things that a wallet would know, not a node.
adds segwit related fields, witness_version and
witness_program. test changes to the node rpc method
validateaddress with p2pkh, p2sh, p2wpkh and p2wsh addresses
2019-03-26 16:03:23 -07:00
Matthew Zipkin
11d70432b3
node-http: require filter to scan 2019-03-26 10:17:10 -07:00
Braydon Fuller
a9ebeb3871
blockchain: remove coin cache 2019-03-21 15:15:51 -07:00
Mark Tyneway
9a56851e8d
test: document valid addresses 2019-03-20 11:37:16 -07:00
Mark Tyneway
10292b043d
test: document bech32 test vectors
adds additional information about the test vectors
pulled from https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki
2019-03-15 16:43:50 -07:00
Braydon Fuller
2b2e53d83d
Merge pull request #550 from pinheadmz/rpcfixandtest
RPC: fix several wallet RPC calls and add RPC tests
2019-03-11 15:09:26 -07:00
Matthew Zipkin
5751b8c330
rpc: multiple fixes and tests
wallet-rpc: fix listsinceblock height

wdb: fix getWalletPaths() always return nothing

wallet: add unlockCoins() for lockunspent rpc

wallet-rpc: correct num args for some rpc calls

wallet-rpc: fix args for importwallet and importprunedfunds

wallet-rpc: importprunedfunds error misleading

wallet-rpc: importPubkey args

wallet-rpc: listsinceblock arg count error

wallet-rpc: listTransactions ignoring account param

wallet-rpc: better sendMany error msgs

wallet-rpc: sendMany subtractfee is bool not obj

wallet-rpc: dont check if not implemented

test: add rpc-test
2019-03-11 14:36:13 -07:00