forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(unit_tests): add begin of unit test for spv proof * feat(utxo): continue test * feat(unit_tests): very wip * feat(utxo): merkle tree verification now work; need full refactoring * feat(spv): start spv validation module * feat(spv): add spv proof * feat(spv): add merkle proof unit test for a single element * feat(spv): add complex merkle proof inclusion unit test * feat(spv): fix some cargo warnings * feat(spv): simplify error check for validate_spv_proof - native client should not return error on validate_spv_proof since there is no verification * feat(spv): complete the first step of the spv proof validation * feat(spv): complete the unit test for spv proof validation in utxo module * feat(spv_validation): add vin and vout check for spv proof validation * feat(spv_validation): match exact error from the spv - will customize later * feat(utxo): start utxo block header storage + sync with dev * feat(utxo): continue block header storage interface * feat(utxo): revert sled - will switch to sqllite * feat(utxo): start utxo sql block header storage trait implementation * feat(sql): implement partially add_block_headers_to_storage and the unit test * feat(sql): add get_block header functions * feat(sql): add extra function for block insertion * feat(lib_bitcoin): add raw header type * feat(spv): Integrate raw block header into spv validation * feat(spv): remove old comments * feat(spv): Adding raw header into utxo_common spv validation * feat(spv): make slp great again * feat(spv): returning more concrete error types * feat(toolchain): update to `nightly-2022-02-01` to fix osx compilation - rust-lang/rust#93414 * feat(cargo): fix warnings * feat(fmt): rust fmt * feat(utxo_block_header): add a box dyn for block header storage to utxo common fields * Revert "feat(utxo_block_header): add a box dyn for block header storage to utxo common fields" This reverts commit 8914b76. * feat(utxo): add empty utxo_indexedb_block_header_storage.rs * feat(utxo): start an empty loop for downloading headers * feat(indexed_db_block_header): do not use todo to prevent crash at runtime * feat(block_header_loop): add block header loop in arc builder * feat(utxo): add a function to retrieve a storage from the ctx for block header * feat(utxo): start logic of block header downloading, very WIP * feat(header_validation): add partial header validation + params for enabling * feat(header_validation): add unexpected difficulty change check * feat(header_validation): add unit test for validate headers * feat(header_validation): document the validate_headers function * feat(header_validation): use appropriate error for validate_headers * feat(storage): rework storage to make it persistent * feat(storage): use the block header storage as optional and fix unit tests * feat(storage): make the conf into coins settings * feat(storage): implement header from storage or rpc + within validation * feat(improvements): remove non-used function * feat(storage): add to storage after validation in retrieve header from storage * feat(fix_review): first fixes batch * feat(fix_review): sql fixes + rename `from_address` to `sender_address` * feat(fix_review): simplify the way to get height, use into_iter + find * feat(fix_review): add a get_tx_height function + remove more marketcoinops in the arc builder * feat(fix_review): simplify download_loop with a `try_loop` macro * feat(fix_review): improve get_tx_height * feat(fix_review): continue review improvements, move retrieve_last_headers to electrum * feat(fix_review): remove dead code comment * feat(spv): next batch of fixes * feat(review): remove utxo_wrapper_block_header_storage.rs * feat(review): next batche of fixes * feat(review): refactor block_header_from_storage_or_rpc * feat(wasm): use explicitly instant wasm bindgen * feat(spv): fix wasm tests * feat(spv): fix unit test compilation * feat(eth): ignore polygon unit test (unstable) * feat(unit tests): increase to 6 seconds for the docker unit test * feat(utxo): simplify block_headers_storage, add error * feat(review): batch of review fixes * feat(review): another batch of review fixes * feat(eth_test): remove the loop * feat(eth_test): remove the loop * feat(spv_proof): review fixes * feat(spv_proof): review fixes * feat(spv): fix wrong copy paste description
- Loading branch information
Showing
42 changed files
with
1,866 additions
and
214 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
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
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
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
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
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
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
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
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
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.