Skip to content

Commit 9f7bf25

Browse files
committed
x
1 parent dae01f2 commit 9f7bf25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/api.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ func (api *Server) GetAccount(ctx context.Context, in *iotexapi.GetAccountReques
178178
if height != 0 {
179179
sr = factory.NewHistoryStateReader(api.sf, height)
180180
}
181-
fmt.Println(height, in.Address)
182181
//factory.NewHistoryStateReader(api.sf, rp.GetEpochHeight(inputEpochNum)
183182
state, tipHeight, err := accountutil.AccountStateWithHeight(sr, in.Address)
184183
if err != nil {
@@ -499,7 +498,7 @@ func (api *Server) ReadState2(ctx context.Context, in *iotexapi.ReadStateRequest
499498
}
500499
rsh := fmt.Sprintf("%d", readStateHeight)
501500
if rsh != in.GetHeight() {
502-
fmt.Println("input height", in.GetHeight(), " rsh", rsh)
501+
log.L().Info("input height", zap.String("readStateHeight", rsh), zap.String("in.GetHeight()", in.GetHeight()))
503502
return nil, status.Error(codes.NotFound, "xxxxx")
504503
}
505504
blkHash, err := api.dao.GetBlockHash(readStateHeight)

0 commit comments

Comments
 (0)