Skip to content

Commit

Permalink
Fix GetAccount 500 error
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyilong committed Jan 24, 2023
1 parent de284ee commit cf48aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (t *ThetaRPCService) GetAccount(args *GetAccountArgs, result *GetAccountRes
blocks := t.chain.FindBlocksByHeight(height)
if len(blocks) == 0 {
result.Account = nil
return nil
return fmt.Errorf("Historical data at given height is not available on current node")
}

deliveredView, err := t.ledger.GetDeliveredSnapshot()
Expand Down

0 comments on commit cf48aab

Please sign in to comment.