File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package db
22
33import (
44 "errors"
5+ "time"
56
67 "gorm.io/gorm"
78)
@@ -18,7 +19,7 @@ type CLStakingEvent struct {
1819
1920type CLSuccessfulStakingEvent struct {
2021 CLStakingEvent
21- BlockTime int64 `gorm:"not null;column:block_time"`
22+ BlockTime time. Time `gorm:"not null;column:block_time"`
2223}
2324
2425func (CLStakingEvent ) TableName () string {
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ func (c *CLTotalStakeHistIndexer) index() error {
116116 for blkno , amt := range blk2StakeChange {
117117 scs = append (scs , & stakeChange {
118118 BlockHeight : blkno ,
119- BlockTime : events [blkno ].BlockTime ,
119+ BlockTime : events [blkno ].BlockTime . Unix () ,
120120 StakeChangeAmount : amt ,
121121 })
122122 }
You can’t perform that action at this time.
0 commit comments