(List<ProposalOrRef> proposals, LeafIndex sender)
| 2335 | } |
| 2336 | |
| 2337 | private List<CachedProposal> mustResolve(List<ProposalOrRef> proposals, LeafIndex sender) |
| 2338 | { |
| 2339 | List<CachedProposal> out = new ArrayList<CachedProposal>(); |
| 2340 | for (ProposalOrRef id : proposals) |
| 2341 | { |
| 2342 | switch (id.getType()) |
| 2343 | { |
| 2344 | case PROPOSAL: |
| 2345 | out.add(new CachedProposal(new byte[0], id.getProposal(), sender)); |
| 2346 | break; |
| 2347 | case REFERENCE: |
| 2348 | for (CachedProposal cached : pendingProposals) |
| 2349 | { |
| 2350 | if (Arrays.areEqual(cached.proposalRef, id.getReference())) |
| 2351 | { |
| 2352 | out.add(cached); |
| 2353 | break; |
| 2354 | } |
| 2355 | } |
| 2356 | break; |
| 2357 | } |
| 2358 | } |
| 2359 | return out; |
| 2360 | } |
| 2361 | |
| 2362 | private GroupContext getGroupContext() |
| 2363 | throws Exception |
no test coverage detected