Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/mantlenetworkio/mantle i…
Browse files Browse the repository at this point in the history
…nto feature/change-add-metrics
  • Loading branch information
guoshijiang committed Jul 7, 2023
2 parents 3d7a265 + 9ede15c commit 5b02064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ Mantle's modular architecture helps achieve greater network efficiency for resou

Different parts of the Mantle tech stack are specialized to tackle specific issues.

- [**Decentralized Sequencer**](https://docs.mantle.xyz/introducing-mantle/a-gentle-introduction/decentralized-sequencer): A permissionless set of L2 block producers
- [**Data Availability**](https://docs.mantle.xyz/introducing-mantle/a-gentle-introduction/solving-data-availability): Implementing EigenDA, an innovative re-staking solution that leverages Ethereum's validator network to bring the security of L1 to L2
- [**EVM-level Fraud Proofs**](https://docs.mantle.xyz/introducing-mantle/a-gentle-introduction/fraud-proofs): Improved fraud proofs that are evaluated using EVM-level instructions

Expand Down
4 changes: 4 additions & 0 deletions tss/ws/client/tm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const (
defaultWriteWait = 0
defaultReadWait = 0
defaultPingPeriod = 0
defaultMaxSleepTime = 3600 * time.Second
)

// WSClient is a JSON-RPC client, which uses WebSocket for communication with
Expand Down Expand Up @@ -282,6 +283,9 @@ func (c *WSClient) reconnect() error {

for {
backoffDuration := (1 << uint(attempt)) * time.Second
if backoffDuration > defaultMaxSleepTime {
backoffDuration = defaultMaxSleepTime
}
c.Logger.Info("reconnecting", "attempt", attempt+1, "backoff_duration", backoffDuration)
time.Sleep(backoffDuration)

Expand Down

0 comments on commit 5b02064

Please sign in to comment.