Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Faulty Tolly committed Sep 17, 2024
1 parent 427abd7 commit 32fb103
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"

"github.com/dymensionxyz/dymint/fraud"

errorsmod "cosmossdk.io/errors"
Expand Down
1 change: 1 addition & 0 deletions block/fraud.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package block

import (
"context"

"github.com/dymensionxyz/dymint/node/events"
uevent "github.com/dymensionxyz/dymint/utils/event"
)
Expand Down
3 changes: 2 additions & 1 deletion block/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"context"
"errors"
"fmt"
"github.com/dymensionxyz/dymint/fraud"
"sync"
"sync/atomic"

"github.com/dymensionxyz/dymint/fraud"

"github.com/dymensionxyz/gerr-cosmos/gerrc"
"golang.org/x/sync/errgroup"

Expand Down
7 changes: 4 additions & 3 deletions types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package types
import (
"errors"
"fmt"

"github.com/dymensionxyz/dymint/fraud"

"github.com/dymensionxyz/gerr-cosmos/gerrc"
Expand Down Expand Up @@ -35,7 +36,7 @@ func NewErrFraudHeightMismatch(expected uint64, actual uint64, block *Block) err
}

func (e ErrFraudHeightMismatch) Error() string {
return fmt.Sprintf("possible fraud detected on height %d, with header hash %X, emited by sequencer %X:"+
return fmt.Sprintf("possible fraud detected on height %d, with header hash %X, emitted by sequencer %X:"+
" height mismatch: state expected %d, got %d", e.headerHeight, e.headerHash, e.proposer, e.expected, e.actual)
}

Expand All @@ -60,7 +61,7 @@ func NewErrFraudAppHashMismatch(expected [32]byte, actual [32]byte, block *Block
}

func (e ErrFraudAppHashMismatch) Error() string {
return fmt.Sprintf("possible fraud detected on height %d, with header hash %X, emited by sequencer %X:"+
return fmt.Sprintf("possible fraud detected on height %d, with header hash %X, emitted by sequencer %X:"+
" AppHash mismatch: state expected %X, got %X", e.headerHeight, e.headerHash, e.proposer, e.expected, e.headerHash)
}

Expand All @@ -87,7 +88,7 @@ func NewErrLastResultsHashMismatch(expected [32]byte, block *Block) error {
}

func (e ErrLastResultsHashMismatch) Error() string {
return fmt.Sprintf("possible fraud detected on height %d, with header hash %X, emited by sequencer %X:"+
return fmt.Sprintf("possible fraud detected on height %d, with header hash %X, emitted by sequencer %X:"+
" LastResultsHash mismatch: state expected %X, got %X", e.headerHeight, e.headerHash, e.proposer, e.expected, e.lastResultHash)
}

Expand Down

0 comments on commit 32fb103

Please sign in to comment.