Skip to content

Commit 96ab817

Browse files
committed
fix: default genesis func in oracle module
1 parent a560b0a commit 96ab817

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

x/oracle/types/v1/genesis.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package v1
22

3-
func NewGenesisState() *GenesisState {
3+
func NewGenesisState(params Params) *GenesisState {
44
return &GenesisState{
5-
Params: Params{
6-
BlockInterval: 50,
7-
},
5+
Params: params,
86
}
97
}
108

119
func DefaultGenesisState() *GenesisState {
12-
return NewGenesisState()
10+
return NewGenesisState(
11+
DefaultParams(),
12+
)
1313
}
1414

1515
func (m *GenesisState) Validate() error {

x/oracle/types/v1/params.go

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

88
// Default parameter values for the Params struct
99
var (
10-
DefaultBlockInterval int64 = 10 // Default block interval in block numbers
10+
DefaultBlockInterval int64 = 100 // Default block interval in block numbers
1111
DefaultChannelID = "" // Default IBC channel ID
1212
DefaultPortID = "" // Default IBC port ID
1313
DefaultTimeout = 1 * time.Minute // Default timeout duration

0 commit comments

Comments
 (0)