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

core, consensus: add maxBlockSystemFee to native Policy #1254

Merged
merged 5 commits into from
Aug 4, 2020

Conversation

AnnaShaleva
Copy link
Member

Closes #1195

@AnnaShaleva AnnaShaleva added the consensus dBFT consensus label Aug 3, 2020
@AnnaShaleva AnnaShaleva self-assigned this Aug 3, 2020
@codecov
Copy link

codecov bot commented Aug 3, 2020

Codecov Report

Merging #1254 into master will decrease coverage by 0.04%.
The diff coverage is 59.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1254      +/-   ##
==========================================
- Coverage   67.52%   67.47%   -0.05%     
==========================================
  Files         214      214              
  Lines       18049    18124      +75     
==========================================
+ Hits        12187    12229      +42     
- Misses       5218     5245      +27     
- Partials      644      650       +6     
Impacted Files Coverage Δ
pkg/consensus/consensus.go 38.09% <0.00%> (-2.22%) ⬇️
pkg/core/blockchain.go 67.46% <52.38%> (-0.30%) ⬇️
pkg/core/native/policy.go 71.81% <80.39%> (+0.88%) ⬆️

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 87119da...db65ed0. Read the comment docs.

pkg/core/native/policy.go Outdated Show resolved Hide resolved
We should also take into account maxBlockSize in
(bc *Blockchain).ApplyPolicyToTxSet
To follow C# implementation we should also check proposed block on
policy matching.
@AnnaShaleva AnnaShaleva force-pushed the native/policy/maxblocksystemfee branch from f5ee8e3 to db65ed0 Compare August 4, 2020 07:59
@roman-khimov roman-khimov merged commit 62f5aa8 into master Aug 4, 2020
@roman-khimov roman-khimov deleted the native/policy/maxblocksystemfee branch August 4, 2020 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus dBFT consensus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add MaxBlockSystemFee policy value
3 participants