mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-09 14:08:03 -05:00
feat(blob-uploader): upload blob once proposed (#1759)
Co-authored-by: yiweichi <yiweichi@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
|||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
)
|
)
|
||||||
|
|
||||||
var tag = "v4.7.1"
|
var tag = "v4.7.2"
|
||||||
|
|
||||||
var commit = func() string {
|
var commit = func() string {
|
||||||
if info, ok := debug.ReadBuildInfo(); ok {
|
if info, ok := debug.ReadBuildInfo(); ok {
|
||||||
|
|||||||
@@ -242,10 +242,12 @@ func (b *BlobUploader) GetFirstUnuploadedBatchByPlatform(ctx context.Context, st
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(batch.CommitTxHash) == 0 {
|
// disable this check to upload blobs before it's committed. This is to
|
||||||
log.Debug("got batch not committed for blob uploading", "batch_index", batchIndex, "platform", platform.String())
|
// alleviate the case nodes try to fetch the blob from s3 before its uploaded.
|
||||||
return nil, nil
|
// if len(batch.CommitTxHash) == 0 {
|
||||||
}
|
// log.Debug("got batch not committed for blob uploading", "batch_index", batchIndex, "platform", platform.String())
|
||||||
|
// return nil, nil
|
||||||
|
// }
|
||||||
|
|
||||||
return batch, nil
|
return batch, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user