Skip to content

Commit

Permalink
Merge pull request #1875 from OffchainLabs/das-warn-to-err
Browse files Browse the repository at this point in the history
Add DAS error when 1 error away from failure
  • Loading branch information
Tristan-Wilson committed Sep 21, 2023
2 parents b359dbc + 0979ae8 commit b5c02f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions das/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ func (a *Aggregator) Store(ctx context.Context, message []byte, timeout uint64,
cd.aggSignersMask = aggSignersMask
certDetailsChan <- cd
returned = true
if a.maxAllowedServiceStoreFailures > 0 && // Ignore the case where AssumedHonest = 1, probably a testnet
storeFailures+1 > a.maxAllowedServiceStoreFailures {
log.Error("das.Aggregator: storing the batch data succeeded to enough DAS commitee members to generate the Data Availability Cert, but if one more had failed then the cert would not have been able to be generated. Look for preceding logs with \"Error from backend\"")
}
} else if storeFailures > a.maxAllowedServiceStoreFailures {
cd := certDetails{}
cd.err = fmt.Errorf("aggregator failed to store message to at least %d out of %d DASes (assuming %d are honest). %w", a.requiredServicesForStore, len(a.services), a.config.AssumedHonest, BatchToDasFailed)
Expand Down

0 comments on commit b5c02f9

Please sign in to comment.