mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-06 19:06:42 +01:00
Fix synchronizer, add verifier index config param
- eth
- In EventsByBlock calls ignore blockNum if blockHash != nil. This fixes
the issue where a blockNumber and blockHash was being passed, which the
eth events query function doesn't allow, causing the synchronizer to fail
at every iteration.
- Node/Config
- Add Coordinator.Debug.RollupVerifierIndex to force choosing a particular
verifier by index in the Rollup smart contract.
This commit is contained in:
@@ -90,7 +90,6 @@ type Coordinator struct {
|
||||
} `validate:"required"`
|
||||
ServerProofs []ServerProof `validate:"required"`
|
||||
Circuit struct {
|
||||
// VerifierIdx uint8 `validate:"required"`
|
||||
// MaxTx is the maximum number of txs supported by the circuit
|
||||
MaxTx int64 `validate:"required"`
|
||||
// NLevels is the maximum number of merkle tree levels
|
||||
@@ -132,6 +131,10 @@ type Coordinator struct {
|
||||
// LightScrypt if set, uses light parameters for the ethereum
|
||||
// keystore encryption algorithm.
|
||||
LightScrypt bool
|
||||
// RollupVerifierIndex is the index of the verifier to use in
|
||||
// the Rollup smart contract. The verifier chosen by index
|
||||
// must match with the Circuit parameters.
|
||||
RollupVerifierIndex *int
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user