Skip to content

freezer: Opt freezer env checking#2580

Merged
zzzckck merged 7 commits intobnb-chain:developfrom
galaio:opt-freezer-env-checking
Jul 16, 2024
Merged

freezer: Opt freezer env checking#2580
zzzckck merged 7 commits intobnb-chain:developfrom
galaio:opt-freezer-env-checking

Conversation

@galaio
Copy link
Copy Markdown
Contributor

@galaio galaio commented Jul 15, 2024

Description

This PR adds a silent logic. For scenarios that require Freezer Env, SetupFreezerEnv should be called to initialize. For other scenarios, Freezer will silently wait 3 times and return, and will no longer execute freeze.

Using silent logic effectively avoids large-scale API modifications and unnecessary DB initialization operations.

It fixed this issue, #2570

Changes

Notable changes:

  • freezer: opt freezer env check logic;
  • ...

@galaio galaio requested review from buddh0 and zzzckck July 15, 2024 07:48
buddh0
buddh0 previously approved these changes Jul 15, 2024
buddh0
buddh0 previously approved these changes Jul 16, 2024
zzzckck
zzzckck previously approved these changes Jul 16, 2024
@galaio galaio dismissed stale reviews from zzzckck and buddh0 via fb16c4a July 16, 2024 10:19
@zzzckck zzzckck merged commit c6af481 into bnb-chain:develop Jul 16, 2024
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.

3 participants