Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
osmosis
Commits
83a386aa
Unverified
Commit
83a386aa
authored
2 years ago
by
Nicolas Lara
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fixed signature and calls (#3002)
parent
f54942a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/export.go
+2
-2
app/export.go
cmd/osmosisd/cmd/root.go
+2
-2
cmd/osmosisd/cmd/root.go
with
4 additions
and
4 deletions
+4
-4
app/export.go
+
2
-
2
View file @
83a386aa
...
...
@@ -16,7 +16,7 @@ import (
// ExportAppStateAndValidators exports the state of the application for a genesis
// file.
func
(
app
*
OsmosisApp
)
ExportAppStateAndValidators
(
forZeroHeight
bool
,
jailAllowedAddrs
[]
string
,
forZeroHeight
bool
,
jailAllowedAddrs
[]
string
,
modulesToExport
[]
string
,
)
(
servertypes
.
ExportedApp
,
error
)
{
// as if they could withdraw from the start of the next block
ctx
:=
app
.
NewContext
(
true
,
tmproto
.
Header
{
Height
:
app
.
LastBlockHeight
()})
...
...
@@ -29,7 +29,7 @@ func (app *OsmosisApp) ExportAppStateAndValidators(
app
.
prepForZeroHeightGenesis
(
ctx
,
jailAllowedAddrs
)
}
genState
:=
app
.
mm
.
ExportGenesis
(
ctx
,
app
.
a
ppCodec
)
genState
:=
app
.
mm
.
ExportGenesis
(
ctx
,
app
.
A
ppCodec
(),
modulesToExport
)
appState
,
err
:=
json
.
MarshalIndent
(
genState
,
""
,
" "
)
if
err
!=
nil
{
return
servertypes
.
ExportedApp
{},
err
...
...
This diff is collapsed.
Click to expand it.
cmd/osmosisd/cmd/root.go
+
2
-
2
View file @
83a386aa
...
...
@@ -288,7 +288,7 @@ func newApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts serverty
// createOsmosisAppAndExport creates and exports the new Osmosis app, returns the state of the new Osmosis app for a genesis file.
func
createOsmosisAppAndExport
(
logger
log
.
Logger
,
db
dbm
.
DB
,
traceStore
io
.
Writer
,
height
int64
,
forZeroHeight
bool
,
jailWhiteList
[]
string
,
appOpts
servertypes
.
AppOptions
,
appOpts
servertypes
.
AppOptions
,
modulesToExport
[]
string
,
)
(
servertypes
.
ExportedApp
,
error
)
{
encCfg
:=
osmosis
.
MakeEncodingConfig
()
// Ideally, we would reuse the one created by NewRootCmd.
encCfg
.
Marshaler
=
codec
.
NewProtoCodec
(
encCfg
.
InterfaceRegistry
)
...
...
@@ -303,5 +303,5 @@ func createOsmosisAppAndExport(
app
=
osmosis
.
NewOsmosisApp
(
logger
,
db
,
traceStore
,
true
,
map
[
int64
]
bool
{},
""
,
uint
(
1
),
appOpts
,
osmosis
.
GetWasmEnabledProposals
(),
osmosis
.
EmptyWasmOpts
)
}
return
app
.
ExportAppStateAndValidators
(
forZeroHeight
,
jailWhiteList
)
return
app
.
ExportAppStateAndValidators
(
forZeroHeight
,
jailWhiteList
,
modulesToExport
)
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets