diff --git a/daemon/algod/api/server/v2/handlers.go b/daemon/algod/api/server/v2/handlers.go index 757eaa07dd..6541311a34 100644 --- a/daemon/algod/api/server/v2/handlers.go +++ b/daemon/algod/api/server/v2/handlers.go @@ -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 { diff --git a/test/scripts/e2e_subs/min_balance.py b/test/scripts/e2e_subs/min_balance.py index 701b467a62..922c18e9ab 100755 --- a/test/scripts/e2e_subs/min_balance.py +++ b/test/scripts/e2e_subs/min_balance.py @@ -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