Skip to content

Commit

Permalink
Merge branch 'develop' into bump_chainlink_relay_c686b4d48672d0eb818b…
Browse files Browse the repository at this point in the history
…eafcff90ad4e33ea5db3
  • Loading branch information
samsondav authored Nov 1, 2023
2 parents 618724d + 08c9f89 commit 20b5a6d
Show file tree
Hide file tree
Showing 25 changed files with 4,110 additions and 137 deletions.
22 changes: 22 additions & 0 deletions common/chains/client/models.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package client

import (
"fmt"
)

type SendTxReturnCode int

// SendTxReturnCode is a generalized client error that dictates what should be the next action, depending on the RPC error response.
Expand All @@ -15,3 +19,21 @@ const (
ExceedsMaxFee // Attempt's fee was higher than the node's limit and got rejected.
FeeOutOfValidRange // This error is returned when we use a fee price suggested from an RPC, but the network rejects the attempt due to an invalid range(mostly used by L2 chains). Retry by requesting a new suggested fee price.
)

type NodeTier int

const (
Primary = NodeTier(iota)
Secondary
)

func (n NodeTier) String() string {
switch n {
case Primary:
return "primary"
case Secondary:
return "secondary"
default:
return fmt.Sprintf("NodeTier(%d)", n)
}
}
Loading

0 comments on commit 20b5a6d

Please sign in to comment.