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
c42447df
Commit
c42447df
authored
3 years ago
by
Adam Tucker
Committed by
ValarDragon
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
epoch num added to log
parent
e409ad5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x/epochs/abci.go
+2
-2
x/epochs/abci.go
with
2 additions
and
2 deletions
+2
-2
x/epochs/abci.go
+
2
-
2
View file @
c42447df
...
...
@@ -29,11 +29,11 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
epochInfo
.
EpochCountingStarted
=
true
epochInfo
.
CurrentEpoch
=
1
epochInfo
.
CurrentEpochStartTime
=
epochInfo
.
StartTime
logger
.
Info
(
fmt
.
Sprintf
(
"Starting new epoch with identifier %s"
,
epochInfo
.
Identifier
))
logger
.
Info
(
fmt
.
Sprintf
(
"Starting new epoch with identifier %s
epoch number %d
"
,
epochInfo
.
Identifier
,
epochInfo
.
CurrentEpoch
))
}
else
{
epochInfo
.
CurrentEpoch
+=
1
epochInfo
.
CurrentEpochStartTime
=
epochInfo
.
CurrentEpochStartTime
.
Add
(
epochInfo
.
Duration
)
logger
.
Info
(
fmt
.
Sprintf
(
"Starting epoch with identifier %s"
,
epochInfo
.
Identifier
))
logger
.
Info
(
fmt
.
Sprintf
(
"Starting epoch with identifier %s
epoch number %d
"
,
epochInfo
.
Identifier
,
epochInfo
.
CurrentEpoch
))
ctx
.
EventManager
()
.
EmitEvent
(
sdk
.
NewEvent
(
types
.
EventTypeEpochEnd
,
...
...
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