Skip to content

Commit

Permalink
add some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Jun 26, 2024
1 parent 17cc141 commit 675b98a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion zetaclient/chains/interfaces/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ type ZetacoreClient interface {
GetKeys() keyinterfaces.ObserverKeys
GetKeyGen() (*observertypes.Keygen, error)
GetBlockHeight() (int64, error)
GetLastBlockHeightByChain(chain chains.Chain) (*crosschaintypes.LastBlockHeight, error)
ListPendingCctx(chainID int64) ([]*crosschaintypes.CrossChainTx, uint64, error)
ListPendingCctxWithinRatelimit() ([]*crosschaintypes.CrossChainTx, uint64, int64, string, bool, error)
GetRateLimiterInput(window int64) (crosschaintypes.QueryRateLimiterInputResponse, error)
Expand Down
7 changes: 0 additions & 7 deletions zetaclient/testutils/mocks/zetacore_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,6 @@ func (m *MockZetacoreClient) GetBlockHeight() (int64, error) {
return 0, nil
}

func (m *MockZetacoreClient) GetLastBlockHeightByChain(_ chains.Chain) (*crosschaintypes.LastBlockHeight, error) {
if m.paused {
return nil, errors.New(ErrMsgPaused)
}
return &crosschaintypes.LastBlockHeight{}, nil
}

func (m *MockZetacoreClient) GetRateLimiterInput(_ int64) (crosschaintypes.QueryRateLimiterInputResponse, error) {
if m.paused {
return crosschaintypes.QueryRateLimiterInputResponse{}, errors.New(ErrMsgPaused)
Expand Down
2 changes: 1 addition & 1 deletion zetaclient/tss/tss_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ func combineDigests(digestList []string) []byte {
}

// wasNodePartOfTss checks if the node was part of the TSS
// it checks whether a pubkey is part of the list used to generate the TSS , Every TSS generated on the network has its own list of associated public keys
// it checks whether a pubkey is part of the list used to generate the TSS , Every TSS generated on the network has its own list of associated public keys
func wasNodePartOfTss(granteePubKey32 string, granteeList []string) bool {
for _, grantee := range granteeList {
if granteePubKey32 == grantee {
Expand Down

0 comments on commit 675b98a

Please sign in to comment.