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_Sync
Commits
6ebe3b48
Commit
6ebe3b48
authored
3 years ago
by
ValarDragon
Browse files
Options
Download
Email Patches
Plain Diff
Fix that init genesis logger line
parent
fa7faa9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x/lockup/genesis.go
+3
-1
x/lockup/genesis.go
with
3 additions
and
1 deletion
+3
-1
x/lockup/genesis.go
+
3
-
1
View file @
6ebe3b48
package
lockup
import
(
"fmt"
sdk
"github.com/cosmos/cosmos-sdk/types"
"github.com/osmosis-labs/osmosis/x/lockup/keeper"
"github.com/osmosis-labs/osmosis/x/lockup/types"
...
...
@@ -12,7 +14,7 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState)
k
.
SetLastLockID
(
ctx
,
genState
.
LastLockId
)
for
i
,
lock
:=
range
genState
.
Locks
{
if
i
%
10000
==
0
{
ctx
.
Logger
()
.
Info
(
"lock number %d, entry %d
\n
"
,
lock
.
ID
,
i
)
ctx
.
Logger
()
.
Info
(
fmt
.
Sprintf
(
"lock number %d, entry %d
\n
"
,
lock
.
ID
,
i
)
)
}
// reset lock's main operation is to store reference queues for iteration
if
err
:=
k
.
ResetLock
(
ctx
,
lock
);
err
!=
nil
{
...
...
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