(remainingStates []byte, currentState byte, id types.LedgerRecordID, reverse bool)
| 239 | } |
| 240 | |
| 241 | func (qs Querier) encodeLedgerNextKey(remainingStates []byte, currentState byte, id types.LedgerRecordID, reverse bool) ([]byte, error) { |
| 242 | pkBuf := make([]byte, LedgerRecordIDKey.Size(id)) |
| 243 | if _, err := LedgerRecordIDKey.Encode(pkBuf, id); err != nil { |
| 244 | return nil, err |
| 245 | } |
| 246 | var unsolicited []byte |
| 247 | if reverse { |
| 248 | unsolicited = []byte{1} |
| 249 | } |
| 250 | return query.EncodePaginationKey(remainingStates, []byte{currentState}, pkBuf, unsolicited) |
| 251 | } |
no test coverage detected