Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(LiteTool): fix data issue of snapshot generating when crash #5701

Conversation

tomatoishealthy
Copy link
Contributor

close #5700

forfreeday and others added 30 commits January 2, 2024 14:34
1. add ClearABIServletTest
2. add CreateAccountServletTest
3. CreateAssetIssueServletTest
…ter (tronprotocol#5660)

* feat(log): catch ContractExeException in createShieldedContractParameters
* feat(db):optimize cache settings (tronprotocol#5659)
* feat(lite):optimize DbLite tool (tronprotocol#5658)
…ts (tronprotocol#5654)

* feat(db): optimize calculation services for reward when the service starts

* feat(log): change log from error to warn for merkle root mismatch
…case

feat(LiteFullNode): remove LiteFullNodeTool
Co-authored-by: morgan.peng <morgan.p@qq.com>
tronprotocol#5688)

* fix(api):fix the bug of determine if get scale factor succeed

* fix(api):fix bug of isShieldedTRC20NoteSpent
…sion

feat(dependency): update libp2p version to test-v2.2.2
…date

feat(dependency): update libp2p version to 2.2.1
@tomatoishealthy tomatoishealthy linked an issue Jan 26, 2024 that may be closed by this pull request
value = sourceDb.get(key);
} else {
value = valueFromTmp.length == 1
? null : Arrays.copyOfRange(valueFromTmp, 1, valueFromTmp.length);
value = valueInCp.length == 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Operator.DELETE == valueInCp[0]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@tomatoishealthy tomatoishealthy force-pushed the hotfix/snapshot-inconsistent-for-litetool branch from d67eef9 to a44d17b Compare January 26, 2024 08:50
@tomatoishealthy tomatoishealthy changed the title fix(LiteTool): fix data inconsistency of snapshot generation in the crash scenario fix(LiteTool): fix data issue of snapshot generating when crash Jan 26, 2024
if (cpList.size() > 0) {
// reverse iteration
Collections.reverse(cpList);
for (String cp: cpList) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be a bit slow because it is within a two-level loop, and merging these checkpoints into one database before all other operations may be more efficient.

@lvs007 lvs007 changed the base branch from release_v4.7.4 to develop February 22, 2024 10:53
@tomatoishealthy
Copy link
Contributor Author

reopen in the next upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Supply data splitting in system crash scenario for Toolkit
6 participants