Integrate test.Client in coordinator_test

This commit is contained in:
Eduard S
2020-09-15 12:47:00 +02:00
parent 852cd762d3
commit c6c50f8f6a
7 changed files with 104 additions and 83 deletions

View File

@@ -52,30 +52,3 @@ func (bi *BatchInfo) SetServerProof(serverProof ServerProofInterface) {
func (bi *BatchInfo) SetProof(proof *Proof) {
bi.proof = proof
}
// // BatchQueue implements a FIFO queue of BatchInfo
// type BatchQueue struct {
// queue []*BatchInfo
// }
//
// // NewBatchQueue returns a new *BatchQueue
// func NewBatchQueue() *BatchQueue {
// return &BatchQueue{
// queue: []*BatchInfo{},
// }
// }
//
// // Push adds the given BatchInfo to the BatchQueue
// func (bq *BatchQueue) Push(b *BatchInfo) {
// bq.queue = append(bq.queue, b)
// }
//
// // Pop pops the first BatchInfo from the BatchQueue
// func (bq *BatchQueue) Pop() *BatchInfo {
// if len(bq.queue) == 0 {
// return nil
// }
// b := bq.queue[0]
// bq.queue = bq.queue[1:]
// return b
// }