mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-08 03:46:52 +01:00
Fix forging L1Batch too early
When scheduling an L1Batch, make sure the previous L1Batch has been synchronized. Otherwise, an L1Batch will be forged that may not contain all the L1UserTxs that are supposed to be included.
This commit is contained in:
@@ -98,7 +98,7 @@ func (b *BatchInfo) DebugStore(storePath string) error {
|
||||
// nolint reason: hardcoded 1_000_000 is the number of nanoseconds in a
|
||||
// millisecond
|
||||
//nolint:gomnd
|
||||
filename := fmt.Sprintf("%08d-%v.%v.json", b.BatchNum,
|
||||
filename := fmt.Sprintf("%08d-%v.%03d.json", b.BatchNum,
|
||||
b.Debug.StartTimestamp.Unix(), b.Debug.StartTimestamp.Nanosecond()/1_000_000)
|
||||
// nolint reason: 0640 allows rw to owner and r to group
|
||||
//nolint:gosec
|
||||
|
||||
Reference in New Issue
Block a user