Skip to content

Commit

Permalink
added more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersuweijie committed Mar 14, 2024
1 parent 38bee1d commit b49e62b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion block_feed/aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (ags *AggregateSubscription) Subscribe(rpcIndex int) (chan *BlockResult, er
}
}

log.Printf("[block_feed/aggregate] switching to ws...")
log.Printf("[block_feed/aggregate] switching to ws at height %d...", ags.lastKnownBlock)

// patch ws to aggregate
for {
Expand All @@ -106,6 +106,7 @@ func (ags *AggregateSubscription) Subscribe(rpcIndex int) (chan *BlockResult, er
} else {
// if block feeder got upto this point,
// it is relatively safe that mantle is synced
log.Printf("[block_feed/aggregate] received block at height %d...", r.Block.Height)
ags.setSyncState(true)
ags.aggregateBlockChannel <- r
ags.lastKnownBlock = r.Block.Height
Expand Down

0 comments on commit b49e62b

Please sign in to comment.