* add tests.ether
* add new tests/ether.py
* go time out assert
* remove unused JunitPropertyName
* rename to `tests/process_junit.py`
* fixup
* hinting and pylint
* fixup
* after install
* handle skipped tests
* --only plot_sync/
* better relative paths
* better relative paths
* todos
* todos
* tidy
* back to full test run
* add markdown headings
* just make results an artifact
$GITHUB_STEP_SUMMARY upload aborted, supports content up to a size of 1024k, got 6067k.
* also output the top 50 to the step summary
* Update process_junit.py
* Update process_junit.py
* Don't autopush transactions by default anywhere
* Remove ignore_max_send_amount
* Use TXConfig instead of pending_transactions for coin exclusion in spend_clawback_coins
* Unify transaction pushing into a single method
* Address offline comments by @emlowe
* Rework max send amount to be based on coin quantity rather than amount
* Inadvertent changes
* Test fixes
* Inadvertent change
* Bad import?
* Inadvertent changes?
* readd missing test
* initial implementaion of get_proof and verify_proof for datalayer
* Add wallet RPC and stop using offer blobs
* Don't require DL wallet to validate DL proof
* Convert to dl_verify_proof to free function
* More updates to DL proofs get/verify
* More updates to DL proofs get/verify
* More updates to DL proofs get/verify
* remove some unused verification functions
* oops deleted some important things
* fix type
* Add tests for DL proofs
* WIP using streamable classes for RPC
* Tests pass with new serializable classes
* use clvm tree hash calls instead of magic numbers and std_hash
* expanded tests to include more ways to call the same thing
* minor tests updates from feedback
* add in CLI tests
* Add separate create_multiple_keys_option
* Add helper and fixup key option
* Update tests/core/data_layer/test_data_rpc.py
Co-authored-by: Kyle Altendorf <sda@fstab.net>
* Add layer of indirection for the proof response
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net>
Augment conditions_dict_for_solution and conditions_for_solution to accept both programs and serialized programs.
This allows us to use serialized programs without the need to convert them into programs.
* Don't autopush transactions by default anywhere
* Remove ignore_max_send_amount
* Use TXConfig instead of pending_transactions for coin exclusion in spend_clawback_coins
* Address offline comments by @emlowe
* Rework max send amount to be based on coin quantity rather than amount
* merge fixes
* Inadvertent diffs
* Inadvertent change
* Inadvertent diff.
---------
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
Properly construct bytes32 values for recovery_list_hash and launcher_id in did_find_lost_did.
recovery_list_hash.atom is optional bytes and launcher_id was bytes.
Improve did_get_info.
* Check optional values.
* Compute launcher_id only once and reuse it.
* Simplify computing solution.
* Compute coin state's coin ID only once.
* Improve constructing hints using only one dictionary lookup.
* Begin add to support for third-party fee-based harvesters
Signed-off-by: Harold Brenes <h.brenes@chia.net>
* Return FoliageBlockData back to Farmer from FullNode
* Send FoliageBlockData all the way to the harvester, if requested
* Preparing tests for 3rd party harvester support
* Continue writing tests for 3rd party harvester
* Some cleanup. Drafting
* Test full message chain of third-party Harvester reward overwrite.
Added test that validates messages between Farmer, Harvester and FullNode
to ensure that the correct data is used when an overwritten farmer reward
address is given by a third-party Harvester service.
* Changing Harvester signature request flow
to include original data, if requested.
This makes it so that NewSignagePoint unconditionally
always includes the source of the SP hashes.
* Fix incorrect field name
* Harvester can ask for original signing data without
overwriting the reward address also.
* Update test_farmer_handles_farmer_reward_address_override to reflect changes.
- Correct farmer API get the correct data source for the signage point signature request.
- Trivial fixes
* Removing some obsolete stuff
* Trivial
* Fix tests in updated harvester protocol
- Fix including source data when
include_source_signature_data is set.
- Set source data fields optional.
- Update test so that a timelord is started and we get proper signage points
instead of aritficial ones. This helps us
make sure we test for all the source data
cases needed from the full node.
* Refactor harvester source signing data test
- Remove older harvester signing data test
(had missing coverage for data)
- Add harvester fee convention logging
- Begin fee convention logging test
- Refactor fixtures for harvester enhancement protocol tests
Start harvester
* Complete test for harvester fee convention
* Update SignatureRequestSourceData message
- SignatureRequestSourceData is now serialized as enum + bytes.
- Update usage locations for SignatureRequestSourceData.
- Update tests to reflect this
* Missing test from last commit
* Revert to explicit None checks, instead of relying on truthiness
Revert scratch work
* Linting
* adjust for anyio
* Moe linting
* mypy fixes
* Documentation comments
* Move third-party harvester protocol tests
Moved to own directory in order to enable `install_timelord = True`
* mypy fixes
* checkout_blocks_and_plots = True
* Update some log messages, syntax and docs
* Bump timeout in tests
* Update protocol message types for
harvester and farmer for test_missing_messages`
* Regenerate protocol message data for protocol tests
* Remove timelord requirement for tests.
Inject pre-generated signage points and blocks instead.
* Linting
* More linting
* More linting
* Merge from main and lint again
* Remove customized test plots requirements
* Rebase fix
* Coverage update
- Update valid fee quality test to be unit, instead of pseudo-integration.
- New test for invalid fee quality.
- More explicit messaging for invalid fee qualities.
- Explicitly comment out uncovered case in test.
- Update types for mypy.
* Lint
* Lint
* Lint, better logs
* add protocol file tests
* coverage
* Update formatting in fee quality logging
* Rebase fix
* Regenerate protocol_message_bytes-v1.0
---------
Signed-off-by: Harold Brenes <h.brenes@chia.net>
Co-authored-by: Harold Brenes <h.brenes@chia.net>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
Co-authored-by: Harold Brenes <152330941+haorldbchi@users.noreply.github.com>
Co-authored-by: arvidn <arvid@libtorrent.org>
* update full_node_store to support multiple UnfinishedBlocks with the same reward hash
* extend full node store to support recording outstanding requests for v2 unfinished blocks
* add test for full_node_store
* simplify creation of UnfinishedBlock in test_full_node.py
* extend UnfinishedBlock protocol to support distinguishing between unfinished blocks with the same partial hash but different foliage
* add test for NewUnfinishedBlock and NewUnfinishedBlock2
* when asking the full_node_store for an unfinished block, only by its partial hash; return the highest ranking (lowest foliage tx block hash)
* when we fail to insert a block in the DB, we undo the insertion into the block cache in BlockStore, but we currently don't undo the insertion of the block record into the block-record cache in Blockchain.
* roll back fork-info in case we fail to add a block to the DB
* improve logging