-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix(LiteTool): fix data issue of snapshot generating when crash #5701
Conversation
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
…74version feat(version): update version
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
value = sourceDb.get(key); | ||
} else { | ||
value = valueFromTmp.length == 1 | ||
? null : Arrays.copyOfRange(valueFromTmp, 1, valueFromTmp.length); | ||
value = valueInCp.length == 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Operator.DELETE == valueInCp[0]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
d67eef9
to
a44d17b
Compare
if (cpList.size() > 0) { | ||
// reverse iteration | ||
Collections.reverse(cpList); | ||
for (String cp: cpList) { |
There was a problem hiding this comment.
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.
reopen in the next upgrade |
close #5700