forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebf5a40
commit 562218d
Showing
2 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
package baseapp | ||
|
||
import ( | ||
"time" | ||
|
||
abci "github.com/cometbft/cometbft/abci/types" | ||
) | ||
|
||
type StreamEvents struct { | ||
Events []abci.Event | ||
Height uint64 | ||
Flush bool | ||
Events []abci.Event | ||
Height uint64 | ||
BlockTime time.Time | ||
Flush bool | ||
} | ||
|
||
func (app *BaseApp) AddStreamEvents(height int64, events []abci.Event, flush bool) { | ||
func (app *BaseApp) AddStreamEvents(height int64, blockTime time.Time, events []abci.Event, flush bool) { | ||
if app.EnableStreamer { | ||
app.StreamEvents <- StreamEvents{ | ||
Events: events, | ||
Height: uint64(height), | ||
Flush: flush, | ||
Events: events, | ||
Height: uint64(height), | ||
BlockTime: blockTime, | ||
Flush: flush, | ||
} | ||
} | ||
} |