Skip to content

Commit

Permalink
Merge pull request #5960 from onetechnical/relbeta3.23.1
Browse files Browse the repository at this point in the history
  • Loading branch information
algojohnlee authored Mar 16, 2024
2 parents 58fea01 + ef9a857 commit 5604f7f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RUN /dist/files/build/install.sh \
-b "${BRANCH}" \
-s "${SHA}"

FROM debian:bookworm-20230703-slim as final
FROM debian:bookworm-20240311-slim as final

ENV PATH="/node/bin:${PATH}" ALGOD_PORT="8080" KMD_PORT="7833" ALGORAND_DATA="/algod/data"

Expand Down
2 changes: 1 addition & 1 deletion buildnumber.dat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0
1
2 changes: 2 additions & 0 deletions catchup/catchpointService.go
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,8 @@ func (cs *CatchpointCatchupService) checkLedgerDownload() error {
if err == nil {
return nil
}
// a non-nil error means that the catchpoint is not available, so we should rank it accordingly
cs.blocksDownloadPeerSelector.rankPeer(psp, peerRankNoCatchpointForRound)
}
return fmt.Errorf("checkLedgerDownload(): catchpoint '%s' unavailable from peers: %s", cs.stats.CatchpointLabel, err)
}
4 changes: 4 additions & 0 deletions catchup/peerSelector.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ const (
// This indicates a peer is either behind or a block has not happened yet, or does not have a block that is old enough.
peerRankNoBlockForRound = 2000

// peerRankNoCatchpointForRound is used for responses failed because of no catchpoint for round
// This indicates a peer is either behind or a catchpoint has not been produced, or this node did not retain this catchpoint (aged out).
peerRankNoCatchpointForRound = 2000

// peerRankDownloadFailed is used for responses which could be temporary, such as missing files, or such that we don't
// have clear resolution
peerRankDownloadFailed = 10000
Expand Down

0 comments on commit 5604f7f

Please sign in to comment.