Skip to content

feat: add new fork block and precompile contract for BEP294 and BEP299#2047

Merged
unclezoro merged 36 commits intodevelopfrom
bc-fusion
Feb 26, 2024
Merged

feat: add new fork block and precompile contract for BEP294 and BEP299#2047
unclezoro merged 36 commits intodevelopfrom
bc-fusion

Conversation

@unclezoro
Copy link
Copy Markdown
Contributor

Description

This pr is to support

  • BEP-294: BSC Native Staking after BC Fusion
  • BEP-299: Token Migration after BC Fusion

Rationale

See 4. Motivation in BEP-294, BEP-299,

Changes

Notable changes:

  • add new precompile contract verifyDoubleSignEvidence and secp256k1SignatureRecover
  • add new systemTx to parlia to update validatorSet everyday after the fusion fork
  • add upgrade setting

pythonberg1997 and others added 19 commits December 8, 2023 16:20
chore: merge with develop branch
# Conflicts:
#	params/config.go
chore: merge with develop branch
# Conflicts:
#	core/systemcontracts/upgrade.go
#	params/config.go
chore: merge with develop branch
* fix: adjusted the timing of `UpgradeBuildInSystemContract`

* fix review comments

* fix review comments

* fix review comments

* fix review comments

* add `UpgradeBuildInSystemContract` to `traceBlock`

* add `UpgradeBuildInSystemContract` to `traceBlock`

* add `UpgradeBuildInSystemContract` to all trace functions
balance := statedb.GetBalance(consensus.SystemAddress)
if balance.Cmp(common.Big0) > 0 {
statedb.SetBalance(consensus.SystemAddress, big.NewInt(0))
statedb.AddBalance(block.Header().Coinbase, balance)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it ok to move this posa, ok := eth.Engine().(consensus.PoSA) before the loop?

* fix: adjust the timing of initializing Feynman system contracts

* fix test case
Copy link
Copy Markdown
Collaborator

@zzzckck zzzckck left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Collaborator

@zzzckck zzzckck left a comment

Choose a reason for hiding this comment

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

check the latest comments

zzzckck
zzzckck previously approved these changes Feb 6, 2024
@unclezoro unclezoro merged commit 73f27a5 into develop Feb 26, 2024
@fslmultiservice22
Copy link
Copy Markdown

Ottimo.

@WARbitCOIN
Copy link
Copy Markdown

Description

This pr is to support

  • BEP-294: BSC Native Staking after BC Fusion
  • BEP-299: Token Migration after BC Fusion

Rationale

See 4. Motivation in BEP-294, BEP-299,

Changes

Notable changes:

  • add new precompile contract verifyDoubleSignEvidence and secp256k1SignatureRecover
  • add new systemTx to parlia to update validatorSet everyday after the fusion fork
  • add upgrade setting

Copy link
Copy Markdown

@Arashgalaxy60 Arashgalaxy60 left a comment

Choose a reason for hiding this comment

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

منوی ناوبری

کد
مسائل
17
feat: بلوک فورک جدید و قرارداد پیش کامپایل را برای BEP294 و BEP299 اضافه کنید #2047
ادغام شد
عموزورو ادغام شده 36 متعهد می شود توسعه دهید از بی سی فیوژن on Feb 26, 2024
گفتگو 40
متعهد می شود 36
بررسی ها 7
فایلها تغییر کردند 38
فیلتر فایل

ادغام شاخه ردیابی از راه دور 'BNBChain/develop' به bc-fusion

درگیری ها:

cmd/geth/blsaccountcmd.go

params/config.go

بی سی فیوژن (#2048) بیسی-فیوژن-دیو-ستاپ-۲ (#2048) بیسی-فیوژن-دیو-تنظیم-کد (#2048) بیسی-فیوژن-تست (#2048)
@pythonberg1997
پایتونبرگ 1997 متعهد شد on Dec 7, 2023
متعهد شدن 3e9e642
35 تغییر: 6 اضافه و 29 حذف35
cmd/geth/blsaccountcmd.go
شماره خط فایل اصلی شماره خط Diff تغییر خط تفاوت
@@ -29,6 +29,7 @@ import (
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/مشترک"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/داخلی/پرچم"
"github.com/ethereum/go-ethereum/signer/core"
)

@@ -44,9 +45,10 @@ var (
استفاده: "کلید خصوصی BLS12-381 را که در یک فایل فروشگاه کلید رمزگذاری می کنید نشان دهید"
رده: پرچمها رده حساب،
}
blsAccountPasswordFileFlag = &کلی.StringFlag{
نام: "رمز عبور blsaccount"،
استفاده: "مسیر فایل برای رمز عبور حساب BLS، که حاوی رمز عبور برای رمزگذاری کلید خصوصی در فایل فروشگاه کلید برای مدیریت آرا در ویژگی fast_finality است"

@fslmultiservice22
Copy link
Copy Markdown

Ottimo lavoro.

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.

9 participants