@@ -225,24 +225,24 @@ func (f *fetcherMock) fetch(req *proto.RemotePvtDataRequest) ([]*proto.PvtDataEl
225
225
func createPolicyStore (expectedSignedData common.SignedData ) * policyStore {
226
226
return & policyStore {
227
227
expectedSignedData : expectedSignedData ,
228
- policies : make (map [serializedPolicy ]rwset .CollectionCriteria ),
229
- store : make (map [rwset .CollectionCriteria ]serializedPolicy ),
228
+ policies : make (map [serializedPolicy ]common .CollectionCriteria ),
229
+ store : make (map [common .CollectionCriteria ]serializedPolicy ),
230
230
}
231
231
}
232
232
233
233
type policyStore struct {
234
234
expectedSignedData common.SignedData
235
235
acceptsAll bool
236
- store map [rwset .CollectionCriteria ]serializedPolicy
237
- policies map [serializedPolicy ]rwset .CollectionCriteria
236
+ store map [common .CollectionCriteria ]serializedPolicy
237
+ policies map [serializedPolicy ]common .CollectionCriteria
238
238
}
239
239
240
240
func (ps * policyStore ) thatAcceptsAll () * policyStore {
241
241
ps .acceptsAll = true
242
242
return ps
243
243
}
244
244
245
- func (ps * policyStore ) thatAccepts (cc rwset .CollectionCriteria ) * policyStore {
245
+ func (ps * policyStore ) thatAccepts (cc common .CollectionCriteria ) * policyStore {
246
246
sp := serializedPolicy {
247
247
ps : ps ,
248
248
n : util .RandomUInt64 (),
@@ -252,7 +252,7 @@ func (ps *policyStore) thatAccepts(cc rwset.CollectionCriteria) *policyStore {
252
252
return ps
253
253
}
254
254
255
- func (ps * policyStore ) CollectionPolicy (cc rwset .CollectionCriteria ) privdata.SerializedPolicy {
255
+ func (ps * policyStore ) CollectionPolicy (cc common .CollectionCriteria ) privdata.SerializedPolicy {
256
256
if sp , exists := ps .store [cc ]; exists {
257
257
return & sp
258
258
}
@@ -779,7 +779,7 @@ func TestCoordinatorStoreBlock(t *testing.T) {
779
779
// private data from the transient store or peers, and in fact- if it attempts to fetch the data it's not eligible
780
780
// for from the transient store or from peers - the test would fail because the Mock wasn't initialized.
781
781
block = bf .AddTxn ("tx3" , "ns3" , hash , "c3" , "c2" , "c1" ).AddTxn ("tx1" , "ns1" , hash , "c1" ).create ()
782
- ps = createPolicyStore (peerSelfSignedData ).thatAccepts (rwset .CollectionCriteria {
782
+ ps = createPolicyStore (peerSelfSignedData ).thatAccepts (common .CollectionCriteria {
783
783
TxId : "tx3" ,
784
784
Collection : "c3" ,
785
785
Namespace : "ns3" ,
@@ -837,7 +837,7 @@ func TestCoordinatorGetBlocks(t *testing.T) {
837
837
838
838
// Green path - block and private data is returned, but the requester isn't eligible for all the private data,
839
839
// but only to a subset of it.
840
- ps = createPolicyStore (sd ).thatAccepts (rwset .CollectionCriteria {
840
+ ps = createPolicyStore (sd ).thatAccepts (common .CollectionCriteria {
841
841
Namespace : "ns1" ,
842
842
Collection : "c2" ,
843
843
TxId : "tx1" ,
0 commit comments