Skip to content

Commit

Permalink
fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
ssd04 committed May 9, 2024
1 parent 5edf104 commit 4acca74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (

// ConvertFirstCommitableBlocks will convert first commitable blocks map
func ConvertFirstCommitableBlocks(blocks []config.FirstCommitableBlock) (map[uint32]uint64, error) {
newBlocks := make(map[uint32]uint64)
newBlocks := make(map[uint32]uint64, len(blocks))

for _, firstCommitableBlock := range blocks {
shardID, err := core.ConvertShardIDToUint32(firstCommitableBlock.ShardID)
Expand Down
3 changes: 2 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ type WebSocketConfig struct {
Version uint32
}

// DataPoolConfig will map data poil configuration
// DataPoolConfig will map data pool configuration
type DataPoolConfig struct {
MaxDelta uint64
PruningWindow uint64
NumPersistersToKeep int
FirstCommitableBlocks []FirstCommitableBlock
}

// FirstCommitableBlock will map first commitable block configuration
type FirstCommitableBlock struct {
ShardID string
Nonce uint64
Expand Down

0 comments on commit 4acca74

Please sign in to comment.