Skip to content

Conversation

@quantumagi
Copy link
Contributor

@quantumagi quantumagi commented Oct 27, 2022

This PR does the following:

  • Fixes the endianness of the key used for the delete operation on the rewind table.
  • Ensures that coin updates are visible in transaction context by using the new ReadWriteBatch (in CoinDb).
  • Source blocks from ConsensusManager instead of BlockStore to fully leverage caching.
  • Add ability to rebuild the CoinView directly from the blocks.
  • Update the AddressIndexer tests to support the rebuilding.
  • Refactor the BinarySearch performed by the CachedCoinView's Sync method.

This PR helps reduce the sizes of PR #1031 and PR #1053. It contains the changes not directly related to those PRs.

@quantumagi quantumagi merged commit 81d3ad7 into stratisproject:release/1.5.0.0 Oct 30, 2022
quantumagi added a commit to quantumagi/StratisFullNode-1 that referenced this pull request Jan 31, 2023
* Fix endianness of delete on rewind table

* Fix duplicate call

* Fix consistency

* Update mock

(cherry picked from commit 81d3ad7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants