forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement block headers storage for IndexedDB and re-enable spv in wa…
…sm (#1644) * start indexddb block header storage impl Signed-off-by: borngraced <samiodev@icloud.com> * save dev state Signed-off-by: borngraced <samiodev@icloud.com> * impl IDBBlockHeadersStorage and fix clippy Signed-off-by: borngraced <samiodev@icloud.com> * impl add_block_headers_to_storage and unit test. Signed-off-by: borngraced <samiodev@icloud.com> * impl indexeddb get_block_header and unit test. Signed-off-by: borngraced <samiodev@icloud.com> * saved ev state Signed-off-by: borngraced <samiodev@icloud.com> * impl get_block_height_by_hash and unit test Signed-off-by: borngraced <samiodev@icloud.com> * impl get_block_header_raw and unit test Signed-off-by: borngraced <samiodev@icloud.com> * impl get_last_block_height and unit test for indexed db Signed-off-by: borngraced <samiodev@icloud.com> * fix test_get_last_block_height Signed-off-by: borngraced <samiodev@icloud.com> * impl get_last_block_header_with_non_max_bits and unit test Signed-off-by: borngraced <samiodev@icloud.com> * fmt imports Signed-off-by: borngraced <samiodev@icloud.com> * re-enable spv for wasm. Signed-off-by: borngraced <samiodev@icloud.com> * use multi_index for querying and inserting block_header Signed-off-by: borngraced <samiodev@icloud.com> * use multi_index for querying block_header hash Signed-off-by: borngraced <samiodev@icloud.com> * fix wasm imports and index Signed-off-by: borngraced <samiodev@icloud.com> * fix review notes Signed-off-by: borngraced <samiodev@icloud.com> * refactor sql storage and indexeddb tests Signed-off-by: borngraced <samiodev@icloud.com> * saved dev state after merge Signed-off-by: borngraced <samiodev@icloud.com> * fix failing unit tests Signed-off-by: borngraced <samiodev@icloud.com> * fix review notes Signed-off-by: borngraced <samiodev@icloud.com> --------- Signed-off-by: borngraced <samiodev@icloud.com>
- Loading branch information
1 parent
0c507cc
commit d01dd41
Showing
12 changed files
with
721 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
mm2src/coins/utxo/utxo_block_header_storage/indexedb_block_header_storage.rs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.