Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion state/factory/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,15 @@ func (sdb *stateDB) Height() (uint64, error) {
}

func (sdb *stateDB) newReadOnlyWorkingSet(ctx context.Context, height uint64) (*workingSet, error) {
return sdb.newWorkingSetWithKVStore(ctx, height, &readOnlyKV{sdb.dao.atHeight(height)})
store, err := sdb.createWorkingSetStore(ctx, height, &readOnlyKV{sdb.dao.atHeight(height)})
if err != nil {
return nil, err
}
if err := store.Start(ctx); err != nil {
return nil, err
}

return newWorkingSet(height, sdb.protocolViews, store, sdb), nil
}

func (sdb *stateDB) newWorkingSet(ctx context.Context, height uint64) (*workingSet, error) {
Expand Down