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

Port the block limit per fee currency #119

Merged
merged 4 commits into from
Jun 4, 2024
Merged

Port the block limit per fee currency #119

merged 4 commits into from
Jun 4, 2024

Conversation

ezdac
Copy link

@ezdac ezdac commented May 7, 2024

Closes #65

This implements the block-limit per fee-currency feature.
Some parts of this have been directly ported from celo-blockchain
(celo-org/celo-blockchain@dc45bdc00).

@ezdac ezdac force-pushed the ezdac/issue-65 branch 6 times, most recently from 80c41f9 to 7107f13 Compare May 7, 2024 14:12
core/celo_multi_gaspool.go Outdated Show resolved Hide resolved
@ezdac ezdac requested a review from carterqw2 May 7, 2024 14:39
@ezdac ezdac marked this pull request as ready for review May 7, 2024 14:39
core/celo_multi_gaspool_test.go Outdated Show resolved Hide resolved
core/celo_multi_gaspool_test.go Show resolved Hide resolved
miner/celo_defaults.go Outdated Show resolved Hide resolved
core/celo_multi_gaspool.go Outdated Show resolved Hide resolved
core/celo_multi_gaspool.go Outdated Show resolved Hide resolved
@ezdac ezdac force-pushed the ezdac/issue-65 branch 2 times, most recently from 705ee56 to 1f2b47f Compare May 13, 2024 15:47
@ezdac ezdac requested a review from carterqw2 May 16, 2024 12:02
ezdac added 3 commits June 3, 2024 10:32
Closes #65

This implements the block-limit per fee-currency feature.
Some parts of this have been directly ported from celo-blockchain
(celo-org/celo-blockchain@dc45bdc00).

However there is a small difference:

The `MultiGasPool` does not consider the currency whitelist here because
fee-currency validity will be checked by the transaction-validation
logic upon adding transactions to the tx-pool.
This means that the `GetPool` method will create a GasPool on the
fly, if it is not memoized in the internal map yet, no matter
if the feeCurrency is whitelisted or not.
In practice, this will never happen for non-whitelisted
currencies, because those transactions will not make it to
the tx-pool.
@ezdac ezdac changed the base branch from celo4 to celo5 June 3, 2024 08:35
miner/worker.go Outdated Show resolved Hide resolved
@ezdac ezdac merged commit a4c7872 into celo5 Jun 4, 2024
6 checks passed
@ezdac ezdac deleted the ezdac/issue-65 branch June 4, 2024 08:27
carterqw2 pushed a commit that referenced this pull request Jun 11, 2024
* Port the block limit per fee currency feature

Closes #65

This implements the block-limit per fee-currency feature.
Some parts of this have been directly ported from celo-blockchain
(celo-org/celo-blockchain@dc45bdc00).

* Copy MultiGasPool in miner environment

* Add USDT and USDC to block-limit per currency defaults

* Initialize MultiGasPool with currency whitelist
karlb pushed a commit that referenced this pull request Jul 10, 2024
* Port the block limit per fee currency feature

Closes #65

This implements the block-limit per fee-currency feature.
Some parts of this have been directly ported from celo-blockchain
(celo-org/celo-blockchain@dc45bdc00).

* Copy MultiGasPool in miner environment

* Add USDT and USDC to block-limit per currency defaults

* Initialize MultiGasPool with currency whitelist
karlb pushed a commit that referenced this pull request Jul 10, 2024
* Port the block limit per fee currency feature

Closes #65

This implements the block-limit per fee-currency feature.
Some parts of this have been directly ported from celo-blockchain
(celo-org/celo-blockchain@dc45bdc00).

* Copy MultiGasPool in miner environment

* Add USDT and USDC to block-limit per currency defaults

* Initialize MultiGasPool with currency whitelist
karlb pushed a commit that referenced this pull request Jul 12, 2024
* Port the block limit per fee currency feature

Closes #65

This implements the block-limit per fee-currency feature.
Some parts of this have been directly ported from celo-blockchain
(celo-org/celo-blockchain@dc45bdc00).

* Copy MultiGasPool in miner environment

* Add USDT and USDC to block-limit per currency defaults

* Initialize MultiGasPool with currency whitelist
karlb pushed a commit that referenced this pull request Aug 20, 2024
* Port the block limit per fee currency feature

Closes #65

This implements the block-limit per fee-currency feature.
Some parts of this have been directly ported from celo-blockchain
(celo-org/celo-blockchain@dc45bdc00).

* Copy MultiGasPool in miner environment

* Add USDT and USDC to block-limit per currency defaults

* Initialize MultiGasPool with currency whitelist
karlb pushed a commit that referenced this pull request Aug 26, 2024
* Port the block limit per fee currency feature

Closes #65

This implements the block-limit per fee-currency feature.
Some parts of this have been directly ported from celo-blockchain
(celo-org/celo-blockchain@dc45bdc00).

* Copy MultiGasPool in miner environment

* Add USDT and USDC to block-limit per currency defaults

* Initialize MultiGasPool with currency whitelist
karlb pushed a commit that referenced this pull request Aug 30, 2024
* Port the block limit per fee currency feature

Closes #65

This implements the block-limit per fee-currency feature.
Some parts of this have been directly ported from celo-blockchain
(celo-org/celo-blockchain@dc45bdc00).

* Copy MultiGasPool in miner environment

* Add USDT and USDC to block-limit per currency defaults

* Initialize MultiGasPool with currency whitelist
karlb pushed a commit that referenced this pull request Oct 11, 2024
* Port the block limit per fee currency feature

Closes #65

This implements the block-limit per fee-currency feature.
Some parts of this have been directly ported from celo-blockchain
(celo-org/celo-blockchain@dc45bdc00).

* Copy MultiGasPool in miner environment

* Add USDT and USDC to block-limit per currency defaults

* Initialize MultiGasPool with currency whitelist
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.

Port the block limit per fee currency feature
3 participants