Skip to content

Commit a0a9a37

Browse files
author
Matthew Pendrey
committed
logs
1 parent 4a0a544 commit a0a9a37

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

offchainreporting2plus/internal/managed/track_config.go

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (state *trackConfigState) checkLatestConfigDetails() (
9393
defer cancel()
9494

9595
state.logger.Info("Here we are again", commontypes.LogFields{
96-
"error": "oohhere1",
96+
"error": "oohhere2",
9797
})
9898

9999
blockheight, err := state.configTracker.LatestBlockHeight(ctx)
@@ -106,6 +106,19 @@ func (state *trackConfigState) checkLatestConfigDetails() (
106106

107107
fmt.Printf("Type of configTracker: %T\n", state.configTracker)
108108

109+
changedInBlockl, latestConfigDigestl, err1 := state.configTracker.LatestConfigDetails(ctx)
110+
latestBlockHeight, err2 := state.configTracker.LatestBlockHeight(ctx)
111+
config, err3 := state.configTracker.LatestConfig(ctx, 0)
112+
113+
fmt.Printf("changedInBlock: %v\n", changedInBlockl)
114+
fmt.Printf("latestConfigDigest: %v\n", latestConfigDigestl)
115+
if err1 != nil || err2 != nil || err3 != nil {
116+
fmt.Printf("Error in TrackConfig: %v, %v, %v\n", err1, err2, err3)
117+
}
118+
119+
fmt.Printf("LatestBlockHeight from configTracker: %d\n", latestBlockHeight)
120+
fmt.Printf("Config from configTracker: %+v\n", config)
121+
109122
changedInBlock, latestConfigDigest, err := state.configTracker.LatestConfigDetails(ctx)
110123
if err != nil {
111124
state.logger.ErrorIfNotCanceled("TrackConfig: error during LatestConfigDetails()", ctx, commontypes.LogFields{

0 commit comments

Comments
 (0)