Skip to content

Commit

Permalink
Merge pull request #937 from bnb-chain/develop
Browse files Browse the repository at this point in the history
release: draft the release v0.10.10
  • Loading branch information
unclezoro authored Apr 13, 2023
2 parents c39a325 + 1f0f73a commit bcab486
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.10.10
FEATURES
* [\#936](https://github.com/bnb-chain/node/pull/936) [BEP]: enable bep171 upgrade on mainnet #936

## v0.10.9

BUG FIX
Expand Down
22 changes: 8 additions & 14 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,6 @@ func (app *BinanceChain) initStaking() {
if sdkErr != nil {
panic(sdkErr.Error())
}
crossStakeApp := cStake.NewCrossStakeApp(app.stakeKeeper)
err := app.scKeeper.RegisterChannel(sTypes.CrossStakeChannel, sTypes.CrossStakeChannelID, crossStakeApp)
if err != nil {
panic(err)
}
})
upgrade.Mgr.RegisterBeginBlocker(sdk.BEP159, func(ctx sdk.Context) {
stake.MigrateValidatorDistributionAddr(ctx, app.stakeKeeper)
Expand All @@ -589,12 +584,11 @@ func (app *BinanceChain) initStaking() {
app.stakeKeeper.SubscribeBCParamChange(app.ParamHub)
app.stakeKeeper = app.stakeKeeper.WithHooks(app.slashKeeper.Hooks())

if sdk.IsUpgrade(sdk.BEP153) {
crossStakeApp := cStake.NewCrossStakeApp(app.stakeKeeper)
err := app.scKeeper.RegisterChannel(sTypes.CrossStakeChannel, sTypes.CrossStakeChannelID, crossStakeApp)
if err != nil {
panic(err)
}
// register cross stake channel
crossStakeApp := cStake.NewCrossStakeApp(app.stakeKeeper)
err := app.scKeeper.RegisterChannel(sTypes.CrossStakeChannel, sTypes.CrossStakeChannelID, crossStakeApp)
if err != nil {
panic(err)
}
}

Expand Down Expand Up @@ -938,8 +932,8 @@ func (app *BinanceChain) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) a
fees.Pool.Clear()
// just clean it, no matter use it or not.
pub.Pool.Clean()
//match may end with transaction failure, which is better to save into
//the EndBlock response. However, current cosmos doesn't support this.
// match may end with transaction failure, which is better to save into
// the EndBlock response. However, current cosmos doesn't support this.
return abci.ResponseEndBlock{
ValidatorUpdates: validatorUpdates,
Events: ctx.EventManager().ABCIEvents(),
Expand Down Expand Up @@ -1191,7 +1185,7 @@ func (app *BinanceChain) publish(tradesToPublish []*pub.Trade, proposalsToPublis
accountsToPublish,
latestPriceLevels,
blockFee,
app.DexKeeper.RoundOrderFees, //only use DexKeeper RoundOrderFees
app.DexKeeper.RoundOrderFees, // only use DexKeeper RoundOrderFees
transferToPublish,
blockToPublish)

Expand Down
2 changes: 2 additions & 0 deletions asset/mainnet/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ BEP153Height = 284376000
#Block height of BEP173 upgrade
BEP173Height = 284376000
FixDoubleSignChainIdHeight = 9223372036854775807
# Block height of BEP171 upgrade
BEP171Height = 310182000

[addr]
# Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var (
Version string
)

const NodeVersion = "v0.10.9"
const NodeVersion = "v0.10.10"

func init() {
Version = fmt.Sprintf("BNB Beacon Chain Release: %s;", NodeVersion)
Expand Down

0 comments on commit bcab486

Please sign in to comment.