-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate all RPC calls to use snapshot (#2719)
* Add snapshot support * Generate snapshot on ConnectTip * Get snapshot on demand * Get changed map under lock * Update snapshot based on height * Revert "Update snapshot based on height" This reverts commit adc22c6. * Do not Discard or Flush snapshot * Use snapshot in getblockcount * Snapshot on each block * Resolve issues post-merge * lint: circular deps * Only snapshot on each block near tip * Use IBD * Snapshot when current block near the current time * lint: circular deps * Add history snapshots * lint: circular deps * Add vault snapshots * Add GetVaultSnapshot wrapper * lint: circular deps * Pass vaultDB * Get all snapshots at once * Migrate all RPC calls to use snapshot * Remove coins DB usage. Add lock for burn DB * Use account view * Restore lock for vault history DB * Use vault history snapshot * Remove global usage from attributes * Update to use GetSnapshots call --------- Co-authored-by: Prasanna Loganathar <[email protected]>
- Loading branch information
1 parent
ab44fbd
commit 76e1888
Showing
22 changed files
with
1,148 additions
and
1,051 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.