Skip to content

Commit 1db3fbb

Browse files
committed
Improve logs
1 parent f6ac680 commit 1db3fbb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

rocketpool/watchtower/submit-network-balances.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,15 @@ func (t *submitNetworkBalances) run(state *state.NetworkState) error {
159159
targetBlockNumber := targetBlockHeader.Number.Uint64()
160160

161161
if targetBlockNumber > state.ElBlockNumber || targetBlockNumber == lastSubmissionBlock {
162-
// No submission needed: target block in the future
162+
if targetBlockNumber > state.ElBlockNumber {
163+
// No submission needed: Target block in the future
164+
t.log.Println("not enough time has passed for the next price/balances submission")
165+
return nil
166+
}
167+
if targetBlockNumber == lastSubmissionBlock {
168+
// No submission needed: Already submitted for this block
169+
t.log.Println("balances have already been submitted for this block")
170+
}
163171
return nil
164172
}
165173

0 commit comments

Comments
 (0)