Skip to content

Commit

Permalink
build: regenerate api routes and resolve merge error in catchup (algo…
Browse files Browse the repository at this point in the history
  • Loading branch information
algorandskiy authored Nov 8, 2023
1 parent 03efd42 commit 3605084
Show file tree
Hide file tree
Showing 9 changed files with 425 additions and 420 deletions.
6 changes: 4 additions & 2 deletions catchup/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ func (s *Service) fetchAndWrite(ctx context.Context, r basics.Round, prevFetchCo
return false
}
failureRank := peerRankDownloadFailed
if err == errNoBlockForRound {
var nbfe noBlockForRoundError
if errors.As(err, &nbfe) {
failureRank = peerRankNoBlockForRound
// remote peer doesn't have the block, try another peer
// quit if the the same peer peer encountered errNoBlockForRound more than errNoBlockForRoundThreshold times
Expand Down Expand Up @@ -731,7 +732,8 @@ func (s *Service) fetchRound(cert agreement.Certificate, verifier *agreement.Asy
default:
}
failureRank := peerRankDownloadFailed
if err == errNoBlockForRound {
var nbfe noBlockForRoundError
if errors.As(err, &nbfe) {
failureRank = peerRankNoBlockForRound
// If a peer does not have the block after few attempts it probably has not persisted the block yet.
// Give it some time to persist the block and try again.
Expand Down
3 changes: 2 additions & 1 deletion daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7192,5 +7192,6 @@
{
"name": "private"
}
]
],
"x-original-swagger-version": "2.0"
}
4 changes: 2 additions & 2 deletions daemon/algod/api/server/v2/generated/data/routes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

408 changes: 204 additions & 204 deletions daemon/algod/api/server/v2/generated/experimental/routes.go

Large diffs are not rendered by default.

414 changes: 207 additions & 207 deletions daemon/algod/api/server/v2/generated/nonparticipating/private/routes.go

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion data/transactions/logic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fields_string.go: fields.go
go generate

README.md: TEAL_opcodes.md README_in.md
python merge.py > README.md
python3 merge.py > README.md
@if [ -e $(SPECS)/dev/TEAL.md ]; then \
sed '/^$$/q' $(SPECS)/dev/TEAL.md | cat - README.md > teal.spec; \
mv teal.spec $(SPECS)/dev/TEAL.md; \
Expand Down

0 comments on commit 3605084

Please sign in to comment.