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

Block size limit #2174

Merged
merged 8 commits into from
Aug 17, 2023
Merged

Block size limit #2174

merged 8 commits into from
Aug 17, 2023

Conversation

gastonponti
Copy link
Contributor

@gastonponti gastonponti commented Aug 15, 2023

Description

Block size limit
CIP implementation of celo-org/celo-proposals#394 (number to be assigned)

Backwards compatibility

Part of the Gingerbread Part 2 Hard Fork

@github-actions
Copy link

github-actions bot commented Aug 15, 2023

Coverage from tests in ./e2e_test/... for ./consensus/istanbul/... at commit edbf300

coverage: 49.5% of statements across all listed packages
coverage:  63.2% of statements in consensus/istanbul
coverage:  41.8% of statements in consensus/istanbul/announce
coverage:  55.7% of statements in consensus/istanbul/backend
coverage:   0.0% of statements in consensus/istanbul/backend/backendtest
coverage:  24.3% of statements in consensus/istanbul/backend/internal/replica
coverage:  61.0% of statements in consensus/istanbul/core
coverage:  50.0% of statements in consensus/istanbul/db
coverage:   0.0% of statements in consensus/istanbul/proxy
coverage:  64.4% of statements in consensus/istanbul/uptime
coverage:  51.8% of statements in consensus/istanbul/validator
coverage:  79.2% of statements in consensus/istanbul/validator/random

@github-actions
Copy link

github-actions bot commented Aug 15, 2023

5861 passed, 1 failed, 45 skipped

Test failures:
  TestEthersJSCompatibility: e2e_test
Checking getExchangeSpenders. spenders = [0x000000000000000000000000000000000000d028]
Checking medianRate. numerator = 1000000000000000000000000 denominator = 1000000000000000000000000
Checking gas price minimum. cusdValue = 100000000
executing mocha test with /usr/bin/npm run --networkaddr=http://127.0.0.1:40775 test --blocknum=0x0 -- --grep ethers.js compatibility tests with state

ethersjs-api-check@1.0.0 test /runner/_work/celo-blockchain/celo-blockchain/e2e_test/ethersjs-api-check
mocha -r ts-node/register test/*.ts "--grep" "ethers.js compatibility tests with state"

ethers.js compatibility tests with state
✔ provider.getBlock works (block has gasLimit set)
✔ EIP-1559 transactions supported (can get feeData)
✔ block has gasLimit
1) block has baseFeePerGas

3 passing (89ms)
1 failing

  1. ethers.js compatibility tests with state
    block has baseFeePerGas:

    AssertionError: expected false to be true

    • expected - actual

    -false
    +true

    at /runner/_work/celo-blockchain/celo-blockchain/e2e_test/ethersjs-api-check/test/test.ts:52:10
    at Generator.next ()
    at fulfilled (test/test.ts:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ethersjs-api-check@1.0.0 test: mocha -r ts-node/register test/*.ts "--grep" "ethers.js compatibility tests with state"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ethersjs-api-check@1.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2023-08-17T23_11_36_295Z-debug.log

e2e_test.go:685: </code></pre></td></tr>
This test report was produced by the test-summary action.  Made with ❤️ in Cambridge.

@codecov
Copy link

codecov bot commented Aug 15, 2023

Codecov Report

Patch coverage: 60.00% and no project coverage change.

Comparison is base (b7893f5) 55.10% compared to head (755a9be) 55.10%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2174   +/-   ##
=======================================
  Coverage   55.10%   55.10%           
=======================================
  Files         677      678    +1     
  Lines      114252   114297   +45     
=======================================
+ Hits        62958    62988   +30     
- Misses      47411    47419    +8     
- Partials     3883     3890    +7     
Files Changed Coverage Δ
consensus/istanbul/backend/backend.go 53.67% <20.00%> (-0.24%) ⬇️
miner/block.go 52.00% <38.46%> (-0.68%) ⬇️
core/bytesblock.go 60.00% <60.00%> (ø)
core/block_validator.go 64.70% <100.00%> (+10.85%) ⬆️

... and 23 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

miner/block.go Outdated Show resolved Hide resolved
Copy link
Contributor

@palango palango left a comment

Choose a reason for hiding this comment

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

Looks good in general, left some comments for your consideration.

core/block_validator.go Outdated Show resolved Hide resolved
consensus/istanbul/backend/backend.go Outdated Show resolved Hide resolved
core/bytesblock.go Outdated Show resolved Hide resolved
core/state_processor_test.go Outdated Show resolved Hide resolved
miner/block.go Show resolved Hide resolved
@gastonponti gastonponti merged commit edbf300 into master Aug 17, 2023
@gastonponti gastonponti deleted the gastonponti/block-size-limit branch August 17, 2023 23:02
gastonponti added a commit that referenced this pull request Aug 22, 2023
* Block Size Limit (5mb, gingerbreadP2)
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.

2 participants