Add Coordinator goroutines & channels processes

Add Coordinator goroutines & channels processes
- Add Coordinator goroutines & channels
- Add Coordinator test to debug batches
- Add MakeCheckpoint call after BatchBuilder BuildBatch process
- Update ethClient BlockByNumber to return hermez/common.Block instead of go-ethereum/core/types.Block
This commit is contained in:
arnaucube
2020-08-26 18:32:03 +02:00
parent 9309722dfc
commit 26dbb16618
8 changed files with 257 additions and 72 deletions

View File

@@ -10,7 +10,7 @@ type Proof struct {
// BatchInfo contans the Batch information
type BatchInfo struct {
batchNum uint64
batchNum common.BatchNum
serverProof *ServerProofInfo
zkInputs *common.ZKInputs
proof *Proof
@@ -22,7 +22,7 @@ type BatchInfo struct {
// NewBatchInfo creates a new BatchInfo with the given batchNum &
// ServerProofInfo
func NewBatchInfo(batchNum uint64, serverProof *ServerProofInfo) BatchInfo {
func NewBatchInfo(batchNum common.BatchNum, serverProof *ServerProofInfo) BatchInfo {
return BatchInfo{
batchNum: batchNum,
serverProof: serverProof,