Skip to content

Commit 40afae3

Browse files
authored
Merge pull request #1976 from irisnet/release0.15
R4R: Release version v0.15.2
2 parents f068e70 + c236fa3 commit 40afae3

File tree

7 files changed

+19
-15
lines changed

7 files changed

+19
-15
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.15.2
4+
5+
*Sep 11th, 2019*
6+
7+
### Application
8+
* [\#1940](https://github.com/irisnet/irishub/pull/1940) Do not update gov params when network not equal mainnet
9+
* [\#1945](https://github.com/irisnet/irishub/pull/1945) Fix protocol loading on replay-last-block
10+
311
## 0.15.1
412

513
*Aug 22th, 2019*

app/app.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"strings"
1010

1111
"github.com/irisnet/irishub/app/protocol"
12-
"github.com/irisnet/irishub/app/v0"
13-
"github.com/irisnet/irishub/app/v1"
12+
v0 "github.com/irisnet/irishub/app/v0"
13+
v1 "github.com/irisnet/irishub/app/v1"
1414
"github.com/irisnet/irishub/codec"
1515
"github.com/irisnet/irishub/modules/auth"
1616
"github.com/irisnet/irishub/store"
@@ -61,13 +61,6 @@ func NewIrisApp(logger log.Logger, db dbm.DB, config *cfg.InstrumentationConfig,
6161
if viper.GetBool(FlagReplay) {
6262
lastHeight := Replay(app.Logger)
6363
err = app.LoadVersion(lastHeight, protocol.KeyMain, true)
64-
65-
// If reset to another protocol version, should reload Protocol and reset txDecoder
66-
loaded, current := app.Engine.LoadCurrentProtocol(app.GetKVStore(protocol.KeyMain))
67-
if !loaded {
68-
cmn.Exit(fmt.Sprintf("Your software doesn't support the required protocol (version %d)!", current))
69-
}
70-
app.BaseApp.txDecoder = auth.DefaultTxDecoder(app.Engine.GetCurrentProtocol().GetCodec())
7164
} else {
7265
err = app.LoadLatestVersion(protocol.KeyMain)
7366
} // app is now sealed

app/v1/gov/keeper.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,5 +832,8 @@ func (keeper Keeper) HasReachedTheMaxProposalNum(ctx sdk.Context, p ProposalLeve
832832
}
833833

834834
func (keeper Keeper) Init(ctx sdk.Context) {
835+
if sdk.NetworkType != sdk.Mainnet {
836+
return
837+
}
835838
keeper.SetParamSet(ctx, DefaultParams())
836839
}

docs/software/How-to-install-irishub.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## Latest Version
44

5-
The Latest version of IRIShub is [v0.15.1](https://github.com/irisnet/irishub/releases/latest)
5+
The Latest version of IRIShub is [v0.15.2](https://github.com/irisnet/irishub/releases/latest)
66

77
::: tip
8-
Please replace <latest_iris_version> below with v0.15.1
8+
Please replace <latest_iris_version> below with v0.15.2
99
:::
1010

1111
## Configure Your Server

docs/zh/software/How-to-install-irishub.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## 最新版本
44

5-
当前IRIShub最新版本为 [v0.15.1](https://github.com/irisnet/irishub/releases/latest)
5+
当前IRIShub最新版本为 [v0.15.2](https://github.com/irisnet/irishub/releases/latest)
66

77
::: tip
8-
请将下文中的 <latest_iris_version> 替换为 v0.15.1
8+
请将下文中的 <latest_iris_version> 替换为 v0.15.2
99
:::
1010

1111
## 服务器配置要求

lite/swagger-ui/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
description: >-
55
A REST interface for state queries, transaction generation and
66
broadcast.
7-
version: "0.15.1"
7+
version: "0.15.2"
88
title: IRISLCD Swagger-UI
99
termsOfService: 'https://www.irisnet.org'
1010
contact:

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
// Version - Iris Version
1212
const ProtocolVersion = 1
13-
const Version = "0.15.1"
13+
const Version = "0.15.2"
1414

1515
// GitCommit set by build flags
1616
var GitCommit = ""

0 commit comments

Comments
 (0)