* minor simplification of stacked if-conditions and early exits on failure paths
* Simplify NPCResult -> SpendBundleConditions
* make include_spends() take SpendBundleConditions, rather than NPCResult
* bump chia_rs to 0.14.0
* update tests covering negative division (allowed since the hard fork) and infinity G1 keys (disallowed with soft fork 5)
* BLSCache.update() takes GTElement now
* use get_conditions_from_spendbundle() in test_mempool_manager, to get the ANALYZE_SPENDS behavior
* fix mypy warnings
* Port `log_in` to decorator
* Port `get_logged_in_fingerprint` to decorator
* Port `get_public_keys` to decorator
* Port `get_private_key` to decorator
* Port `get_mnemonic` to decorator
* Port `add_key` to decorator
* Port `delete_key` to decorator
* Port `check_delete_key` to decorator
* Port `delete_all_keys` to decorator
* Bad copypasta
* slightly simplify call to pre_validate_blocks_multiprocessing. batch size is always 4, check_filter is always True. Remove the member function wrapper around it in Blockchain, to prepare for being able to pass wrapped blockchains into it
* address review comments
* Apply suggestions from code review (addendum).
---------
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
* Port `test_trade_cancellation`
* Delete obsolete test
* Port `test_trade_conflict`
* Port `test_trade_bad_spend`
* Port `test_trade_high_fee`
* Port `test_aggregated_trade_state`
* Remove DEFAULT_TX_CONFIG
* Remove accidental comments
* Use fee in our respond_to_offer call.
* Minor readability tweak.
---------
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
* Add version number to every log line
* Switch to using the __version__ variable in the logs
* Make line of code shorter to satisfy code standards
* Fix multiline code formatting
* code formatting
* Fixed logging for fast bluebox timelord and added Visual Studio (.vs) to gitignore.
* Make black CI check happy
* Ran through another "black" reformat to pass CI
* Add client endpoints for `get/set_auto_claim`
* Add client endpoint for `verify_signature`
* Add client endpoint for `get_transaction_memo`
* Add client endpoint for `get_offers_count`
* Add client endpoint for `get_cat_list`
* Add client endpoint for `did_get_pubkey`
* Port `test_creation_from_backup_file` to `WalletTestFramework`
* Add client endpoint for `did_get_information_needed_for_recovery`
* Add client endpoint for `did_get_current_coin_info`
* Add client endpoint for `nft_get_by_did`
* Add client endpoint for `nft_set_nft_status`
* Add client endpoint for `nft_get_wallets_with_dids`
* Add client endpoint for `nft_set_did_bulk`
* Add client endpoint for `nft_transfer_bulk`
* Make sure we have a proper tx_id in test_wallet_make_transaction_with_memo.
* Reuse request's address after checking it.
* Minor readability improvement.
---------
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
* remove dead code
* introduce AugmentedBlockchain, implementing the BlocksProtocol and can include 'additional blocks', useful for validating batches of blocks where we need to pretend the previous blocks in the batch are valid while validating the later blocks
* simplify pre_validate_blocks_multiprocessing by using AugmentedBlockchain
* address review comments
* refactor pre_validate_blocks_multiprocessing
* fix condtion
* get diff and ssi from blocks
* works_with_skip_ses
* add default
* propegate_to_header_validation
* pass data between batches
* remove redundant code
* merge fix
* remove optionals and refactor tests
* only use cache
* merge fix
* fix test
* dont traverse if we have prev sub epoch block
* return bad_prev error if block is missing
* mandetory param names
* clean
* fix_benchmark_test
* refactor get_block_generator() to prepare for easier composing of a layered blockchain class
* make get_block_generator() part of the interface to the blockchain rather than an independent, free function passed in the validation. This keeps the view of the blockchain more focused to a single class.
* add test for get_block_generator
* add unit test for Blockchain.lookup_block_generators()
* address review comments
* address review comments