Skip to content

Hotfix/split db config #2668

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

Merged
merged 11 commits into from
Nov 27, 2019
Merged

Hotfix/split db config #2668

merged 11 commits into from
Nov 27, 2019

Conversation

geb789
Copy link
Contributor

@geb789 geb789 commented Nov 22, 2019

What does this PR do?
Split DB config to vmConfig
Why are these changes required?
Split DB config to vmConfig

@codecov-io
Copy link

codecov-io commented Nov 22, 2019

Codecov Report

Merging #2668 into develop will decrease coverage by 0.05%.
The diff coverage is 90.9%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2668      +/-   ##
=============================================
- Coverage      30.81%   30.75%   -0.06%     
+ Complexity      1751     1744       -7     
=============================================
  Files            367      367              
  Lines          18256    18235      -21     
  Branches        2136     2135       -1     
=============================================
- Hits            5625     5608      -17     
+ Misses         11958    11956       -2     
+ Partials         673      671       -2
Impacted Files Coverage Δ Complexity Δ
...main/java/org/tron/common/storage/DepositImpl.java 29.84% <0%> (ø) 37 <0> (ø) ⬇️
...c/main/java/org/tron/core/config/args/Storage.java 69.36% <100%> (-3.36%) 36 <0> (-8)
.../main/java/org/tron/core/config/DefaultConfig.java 86.66% <100%> (ø) 11 <0> (ø) ⬇️
.../src/main/java/org/tron/core/config/args/Args.java 68.27% <100%> (+0.27%) 85 <2> (+1) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fed8d25...f9b5419. Read the comment docs.

@jiangyy0824 jiangyy0824 requested a review from Yrp November 25, 2019 03:40
public static void initVMConfig(Args cfgArgs) {
VMConfig.setMaxTimeRatio(cfgArgs.getMaxTimeRatio());
VMConfig.setMinTimeRatio(cfgArgs.getMinTimeRatio());
VMConfig.setDebug(cfgArgs.isDebug());
Copy link
Contributor

@shydesky shydesky Nov 25, 2019

Choose a reason for hiding this comment

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

Whether isDebug should be in this VMConfig or not?

VMConfig.setDebug(cfgArgs.isDebug());
VMConfig.setCheckFrozenTime(cfgArgs.getCheckFrozenTime());
VMConfig.setProposalExpireTime(cfgArgs.getProposalExpireTime());
VMConfig.setSolidityNode(cfgArgs.isSolidityNode());
Copy link
Contributor

@shydesky shydesky Nov 25, 2019

Choose a reason for hiding this comment

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

Whether isSolidityNode should be in this VMConfig or not?

VMConfig.setMinTimeRatio(cfgArgs.getMinTimeRatio());
VMConfig.setDebug(cfgArgs.isDebug());
VMConfig.setCheckFrozenTime(cfgArgs.getCheckFrozenTime());
VMConfig.setProposalExpireTime(cfgArgs.getProposalExpireTime());
Copy link
Contributor

Choose a reason for hiding this comment

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

Whether ProposalExpireTime should be in this VMConfig or not?

Copy link
Contributor

@shydesky shydesky left a comment

Choose a reason for hiding this comment

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

Please review the comment

@DorianRust DorianRust force-pushed the hotfix/splitDBConfig branch 2 times, most recently from 3abcc4a to 648a73e Compare November 26, 2019 10:49
@DorianRust DorianRust merged commit 2596793 into develop Nov 27, 2019
@DorianRust DorianRust deleted the hotfix/splitDBConfig branch November 27, 2019 09:13
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.

4 participants