Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed Dec 17, 2024
1 parent caa286b commit 89b757c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion block/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ func (m *Manager) loadFraud(path string) error {

// Start starts the block manager.
func (m *Manager) Start(ctx context.Context) error {

m.Ctx, m.Cancel = context.WithCancel(ctx)
// Check if InitChain flow is needed
if m.State.IsGenesis() {
Expand Down
2 changes: 1 addition & 1 deletion block/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (m *Manager) CreateBatch(maxBatchSize uint64, startHeight uint64, endHeight
}

func (m *Manager) SubmitBatch(batch *types.Batch) error {
var daBatch = batch
daBatch := batch
// a little optimized to avoid expensive clone on every batch
// only clone and apply frauds if a fraud is actually specified
// if fraud is specified, it's only for the DA, not for the SL
Expand Down
6 changes: 4 additions & 2 deletions dofraud/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import (
"github.com/dymensionxyz/dymint/types"
)

type FraudVariant = int
type FraudType = int
type (
FraudVariant = int
FraudType = int
)

// Variant
const (
Expand Down
2 changes: 1 addition & 1 deletion dofraud/z_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestGenerateJson(t *testing.T) {
data, err := json.MarshalIndent(examples, "", " ")
require.NoError(t, err)

err = os.WriteFile(fp, data, 0644)
err = os.WriteFile(fp, data, 0o644)
require.NoError(t, err)
}

Expand Down

0 comments on commit 89b757c

Please sign in to comment.