Skip to content

Commit 65d42c0

Browse files
committed
x
1 parent 432a73c commit 65d42c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

api/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (api *Server) GetAccount(ctx context.Context, in *iotexapi.GetAccountReques
170170
in.Address = in.Address[:41]
171171
}
172172

173-
if in.Address == address.RewardingPoolAddr || (in.Address == address.StakingBucketPoolAddr && height < 100) {
173+
if in.Address == address.RewardingPoolAddr || (in.Address == address.StakingBucketPoolAddr) {
174174
return api.getProtocolAccount(ctx, height, in.Address)
175175
}
176176

state/factory/historyfactory.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,7 @@ func (hReader *historyStateReader) States(opts ...protocol.StateOption) (uint64,
4646

4747
// ReadView reads the view
4848
func (hReader *historyStateReader) ReadView(name string) (uint64, interface{}, error) {
49-
return hReader.sf.ReadView(name)
49+
//return hReader.sf.ReadView(name)
50+
_, view, err := hReader.sf.ReadView(name)
51+
return hReader.height, view, err
5052
}

0 commit comments

Comments
 (0)