chia-blockchain icon indicating copy to clipboard operation
chia-blockchain copied to clipboard

DL multiple batch updates.

Open fchirica opened this issue 1 year ago • 9 comments

Allows to split a batch updates into multiple commands, by setting publish_on_chain=False inside the batch_update. If using the option, a new batch update will be continued on top of the previous one, which is saved only locally. It's possible to discard the unpublished batch by doing clear_pending_roots, or to publish it by doing publish_pending_root. Internally, this implements the new root status PENDING_BATCH, which works similarly to the previous PENDING root, except it allows batch_update to build on top of it and it's never published on chain - when it gets published, it'll change to the PENDING status.

fchirica avatar Jan 29 '24 15:01 fchirica

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Feb 05 '24 23:02 github-actions[bot]

Conflicts have been resolved. A maintainer will review the pull request shortly.

github-actions[bot] avatar Feb 06 '24 01:02 github-actions[bot]

Now that this is all using publish, I'm wondering if submit isn't more consistent terminology with other parts of chia - for example, Transaction submitted to nodes

emlowe avatar Feb 09 '24 22:02 emlowe

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Feb 14 '24 19:02 github-actions[bot]

Conflicts have been resolved. A maintainer will review the pull request shortly.

github-actions[bot] avatar Feb 14 '24 22:02 github-actions[bot]

I misunderstood and thought the pending batch -> committed status was a permanent thing rather than an intermediate change that would get reverted. My above review has several comments that I think end up related to this so I will go back through and review them now.

altendky avatar Feb 15 '24 15:02 altendky

Pull Request Test Coverage Report for Build 7998480313

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • -6 of 237 (97.47%) changed or added relevant lines in 9 files are covered.
  • 984 unchanged lines in 40 files lost coverage.
  • Overall coverage increased (+0.05%) to 90.979%

Changes Missing Coverage Covered Lines Changed/Added Lines %
chia/data_layer/data_layer.py 18 19 94.74%
chia/data_layer/data_store.py 16 18 88.89%
chia/rpc/data_layer_rpc_api.py 12 15 80.0%
<!-- Total: 231 237
Files with Coverage Reduction New Missed Lines %
chia/consensus/block_record.py 1 95.24%
chia/daemon/server.py 1 88.56%
chia/data_layer/dl_wallet_store.py 1 95.74%
chia/data_layer/download_data.py 1 71.04%
chia/introducer/introducer.py 1 78.26%
chia/rpc/data_layer_rpc_api.py 1 83.05%
chia/util/json_util.py 1 88.46%
tests/core/full_node/stores/test_block_store.py 1 99.19%
tests/core/util/test_file_keyring_synchronization.py 1 97.1%
tests/fee_estimation/test_fee_estimation_unit_tests.py 1 99.06%
<!-- Total: 984
Totals Coverage Status
Change from base Build 7916358366: 0.05%
Covered Lines: 97240
Relevant Lines: 106853

💛 - Coveralls

coveralls-official[bot] avatar Feb 16 '24 02:02 coveralls-official[bot]

File Coverage Missing Lines
chia/data_layer/data_layer.py 94.7% lines 320
chia/data_layer/data_store.py 88.9% lines 1363, 1368
chia/rpc/data_layer_rpc_api.py 80.0% lines 251, 255, 294
Total Missing Coverage
237 lines 6 lines 97%

github-actions[bot] avatar Feb 22 '24 03:02 github-actions[bot]

Removing coverage diff: only exceptions thrown in case of bugs are failing now

fchirica avatar Feb 22 '24 16:02 fchirica