* Send RewardChainBlockUnfinished to the harvester
- Simplify data pasing in request_signed_values
* Fix instances where the rc_block_unfinished must be sent
* Lint, fix test, generate protocol messages
* Rate Limit Adjustment for RequestSignedValues (#17481)
* Further bump request_signed_values rate limit
---------
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
Co-authored-by: Luna <96448399+DaOneLuna@users.noreply.github.com>
* 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>
* 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
* Port get_notifications RPC to RPC marshaller
* Fix test (I hate this)
* Don't use string formatting in SQL query
* rename notification member variable
* Missed a couple?
* Suggestion by @altendky (w/ black fix >:( )
* Add way to get coin states in batches
* Remove partial blocks from coin state batches
* Fix logic and improve tests
* Change state batching to have fixed limit of 15,000 and test more
* Remove unnecessary parens
* Simplify batch finalization logic
* Improve filter query logic
* Improve feature test coverage
* Cleanup code and simplify finished logic
* Fix many coin states test
* Parametrize tests
* Sort by height and ensure results are in order
* Remove unnecessary test function
* Use if instead of elif
* Improve test
* Test fixture for random coin data
* Add comment explaining 15000 limit
* fix duplicates file name and upload artifact name uniqueness
* test it
* fix
* again
* Revert "test it"
This reverts commit b64956208d.
* add missing single quotes