feat(blob-uploader): upload blob once proposed (#1759)

Co-authored-by: yiweichi <yiweichi@users.noreply.github.com>
This commit is contained in:
Morty
2025-11-25 14:07:08 +08:00
committed by GitHub
parent 9dceae1ca2
commit 0ede0cd41f
2 changed files with 7 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ import (
"runtime/debug"
)
var tag = "v4.7.1"
var tag = "v4.7.2"
var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {

View File

@@ -242,10 +242,12 @@ func (b *BlobUploader) GetFirstUnuploadedBatchByPlatform(ctx context.Context, st
break
}
if len(batch.CommitTxHash) == 0 {
log.Debug("got batch not committed for blob uploading", "batch_index", batchIndex, "platform", platform.String())
return nil, nil
}
// disable this check to upload blobs before it's committed. This is to
// alleviate the case nodes try to fetch the blob from s3 before its uploaded.
// 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
}