Skip to content

Commit

Permalink
fix(sync): set last support version to 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
themantre committed Oct 1, 2024
1 parent e749315 commit 3d9a230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions sync/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ func DefaultConfig() *Config {
BlockPerMessage: 60,
PruneWindow: 86_400, // Default retention blocks in prune mode
Firewall: firewall.DefaultConfig(),
// v1.5.0 is the hard-fork for Ed25519 support.
LatestSupportingVer: version.Version{
Major: 1,
Minor: 1,
Patch: 8,
Minor: 5,
Patch: 0,
},
}
}
Expand Down
4 changes: 2 additions & 2 deletions sync/handler_blocks_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ func (handler *blocksRequestHandler) ParseMessage(m message.Message, pid peer.ID
height := msg.From
count := msg.Count
for {
blockToRead := util.Min(handler.config.BlockPerMessage, count)
blocksData := handler.prepareBlocks(height, blockToRead)
blockCount := util.Min(handler.config.BlockPerMessage, count)
blocksData := handler.prepareBlocks(height, blockCount)
if len(blocksData) == 0 {
break
}
Expand Down

0 comments on commit 3d9a230

Please sign in to comment.