feat: add up event
This commit is contained in:
parent
f7690a5d89
commit
b2ea01c32e
|
@ -142,8 +142,12 @@ func (c *ClientWithFallback) setIsConnected(value bool) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
c.consecutiveFailureCount = 0
|
c.consecutiveFailureCount = 0
|
||||||
|
|
||||||
if !c.IsConnected {
|
if !c.IsConnected {
|
||||||
c.IsConnected = true
|
c.IsConnected = true
|
||||||
|
if c.WalletNotifier != nil {
|
||||||
|
c.WalletNotifier(c.ChainID, "up")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue