Skip to content

Commit

Permalink
fix: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tzdybal committed Apr 7, 2022
1 parent 8a758cb commit eb2e87c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion block/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/celestiaorg/optimint/types"
)

// defaultDABlockTime is used only if DABlockTime is not configured for manager
const defaultDABlockTime = 30 * time.Second

// Manager is responsible for aggregating transactions into blocks.
Expand Down Expand Up @@ -212,7 +213,6 @@ func (m *Manager) SyncLoop(ctx context.Context) {
delete(m.syncCache, currentHeight+1)
}
case <-ctx.Done():
m.logger.Debug("exiting SyncLoop")
return
}
}
Expand Down
4 changes: 3 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ type NodeConfig struct {

// BlockManagerConfig consists of all parameters required by BlockManagerConfig
type BlockManagerConfig struct {
BlockTime time.Duration `mapstructure:"block_time"`
// BlockTime defines how often new blocks are produced
BlockTime time.Duration `mapstructure:"block_time"`
// DABlockTime informs about block time of underlying data availability layer
DABlockTime time.Duration `mapstructure:"da_block_time"`
NamespaceID [8]byte `mapstructure:"namespace_id"`
}
Expand Down

0 comments on commit eb2e87c

Please sign in to comment.