Skip to content

Commit

Permalink
Per reviewer suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeph Grunschlag committed Dec 17, 2021
1 parent 5efca2c commit bb5d4a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions daemon/algod/api/server/v2/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,9 @@ func (v2 *Handlers) AccountInformation(ctx echo.Context, address string, params
return internalError(ctx, err, errFailedLookingUpLedger, v2.Log)
}

latestBlkHdr, err := myLedger.BlockHdr(lastRound)
consensus, err := myLedger.ConsensusParams(lastRound)
if err != nil {
return internalError(ctx, err, errFailedRetrievingLatestBlockHeaderStatus, v2.Log)
}

consensus, ok := config.Consensus[latestBlkHdr.CurrentProtocol]
if !ok {
return internalError(ctx, errors.New(errInternalFailure), "could not retrieve consensus information for current protocol", v2.Log)
return internalError(ctx, err, fmt.Sprintf("could not retrieve consensus information for last round (%d)", lastRound), v2.Log)
}

if handle == protocol.CodecHandle {
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/e2e_subs/min_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def initialize_debugger():
# per userBalance.go::MinBalance() as of Dec 2021:
EXTRA_PAGE_MIN_BALANCE = APP_MIN_BALANCE

TEAL = f"""#pragma version 6
TEAL = f"""#pragma version 5
byte "Hello Min Balance!"
log
Expand Down

0 comments on commit bb5d4a9

Please sign in to comment.