Skip to content

Upgrade VRC25#535

Merged
tungng98 merged 82 commits intoBuildOnViction:pre-releasefrom
vienlnn:vrc25-upgrade-final
Jul 11, 2025
Merged

Upgrade VRC25#535
tungng98 merged 82 commits intoBuildOnViction:pre-releasefrom
vienlnn:vrc25-upgrade-final

Conversation

@vienlnn
Copy link
Copy Markdown
Contributor

@vienlnn vienlnn commented Jun 27, 2025

  • Min cap 1 wei VIC (limit deposit to sponsor for transactions >= 1 wei VIC)
  • Issuers can withdraw the funds deposited.
  • Upgrade tx_pool (validateTx), buyGas function, apply HF block for new logic.
  • Override state for new VRC25 contract.
  • Fix issue validate tomoz transactions on transaction pool.
  • Apply logic when tomoz doesn't have enough gas to sponsor for users, protocol will be sub gas cost from user account.
  • Fix issue override state when issue charge (charge function from VRC25 contract) more funds for VRC25 and user create transaction at the same block with charge transaction -> make feeCap overwritten.
  • Cover cases:
    • If transaction is Tomoz tx
      • Tomoz have enough fund for sponsor, the txpool will allow it to be executed in the EVM.
      • Tomoz have not enough fund for sponsor, drop the transaction if the user has less VIC than required for pay gas.
    • If the transaction is not Tomoz tx
      • then it is a non-TomoZ transaction, and drop the transaction if the user has less VIC than required.

vienlnn and others added 30 commits November 5, 2024 18:12
miner/worker.go Outdated
// validate balance slot, minFee slot for TomoZ
if env.config.IsTomoZEnabled(env.header.Number) && tx.IsTomoZApplyTransaction() {
// validate minFee slot for TomoZ
if tx.IsTomoZApplyTransaction() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please keep the old code

miner/worker.go Outdated
// validate balance slot, minFee slot for TomoZ
if env.config.IsTomoZEnabled(env.header.Number) && tx.IsTomoZApplyTransaction() {
// validate minFee slot for TomoZ
if tx.IsTomoZApplyTransaction() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please keep the old code

@tungng98 tungng98 merged commit 3183100 into BuildOnViction:pre-release Jul 11, 2025
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