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

Limit the maximum bytes length of blocks #1050

Merged
merged 6 commits into from
Oct 26, 2020

Conversation

dahlia
Copy link
Contributor

@dahlia dahlia commented Oct 22, 2020

This fixes #201. Please read added changelogs for details.

@codecov
Copy link

codecov bot commented Oct 23, 2020

Codecov Report

Merging #1050 into main will decrease coverage by 0.04%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##             main    #1050      +/-   ##
==========================================
- Coverage   88.39%   88.34%   -0.05%     
==========================================
  Files         342      344       +2     
  Lines       31382    31616     +234     
==========================================
+ Hits        27739    27931     +192     
- Misses       1976     2007      +31     
- Partials     1667     1678      +11     
Impacted Files Coverage Δ
...sts/Blocks/InvalidBlockBytesLengthExceptionTest.cs 0.00% <0.00%> (ø)
Libplanet/Blocks/InvalidBlockException.cs 50.00% <ø> (ø)
...lanet.Tests/Blockchain/Policies/BlockPolicyTest.cs 78.46% <37.20%> (-17.38%) ⬇️
...bplanet/Blocks/InvalidBlockBytesLengthException.cs 47.61% <47.61%> (ø)
Libplanet/Tx/Transaction.cs 92.22% <91.66%> (-0.09%) ⬇️
Libplanet.Tests/Blockchain/BlockChainTest.cs 98.60% <98.61%> (-0.01%) ⬇️
...sts/Blockchain/BlockChainTest.ValidateNextBlock.cs 95.12% <100.00%> (-0.16%) ⬇️
Libplanet.Tests/Blockchain/NullPolicy.cs 100.00% <100.00%> (ø)
Libplanet.Tests/Blocks/BlockTest.cs 96.72% <100.00%> (+0.06%) ⬆️
Libplanet.Tests/Tx/TransactionTest.cs 92.82% <100.00%> (+0.04%) ⬆️
... and 10 more

earlbread
earlbread previously approved these changes Oct 26, 2020
@dahlia
Copy link
Contributor Author

dahlia commented Oct 26, 2020

@planetarium/libplanet Please review this.

riemannulus
riemannulus previously approved these changes Oct 26, 2020
@dahlia dahlia mentioned this pull request Oct 26, 2020
limebell
limebell previously approved these changes Oct 26, 2020
@dahlia
Copy link
Contributor Author

dahlia commented Oct 26, 2020

@planetarium/libplanet Addressed reviews and rebased. Please review this again!

longfin
longfin previously approved these changes Oct 26, 2020
earlbread
earlbread previously approved these changes Oct 26, 2020
limebell
limebell previously approved these changes Oct 26, 2020
riemannulus
riemannulus previously approved these changes Oct 26, 2020
moreal
moreal previously approved these changes Oct 26, 2020
@dahlia
Copy link
Contributor Author

dahlia commented Oct 26, 2020

@planetarium/libplanet I rebased. Please review this again.

@dahlia
Copy link
Contributor Author

dahlia commented Oct 26, 2020

@planetarium/libplanet As it seems to reach Azure Pipelines' rate limit, the build is being timed out again and again. Instead retring the build again, I am going to merge this anyway.

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.

Limit size of block (byte-wise)
6 participants