init: base structure

This commit is contained in:
2024-04-01 17:32:10 +08:00
commit 89aa11326d
18 changed files with 1484 additions and 0 deletions

13
internal/queue/queue.go Normal file
View File

@@ -0,0 +1,13 @@
package queue
import (
"github.com/celo-org/celo-blockchain/core/types"
"github.com/ef-ds/deque/v2"
)
type (
Queue struct {
BlocksQueue *deque.Deque[types.Block]
BatchQueue *deque.Deque[uint64]
}
)