We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8f50eb + 3e3d534 commit fa53a22Copy full SHA for fa53a22
code/go/0chain.net/blobbercore/allocation/entity.go
@@ -9,6 +9,7 @@ import (
9
10
"github.com/0chain/blobber/code/go/0chain.net/blobbercore/datastore"
11
"github.com/0chain/blobber/code/go/0chain.net/core/common"
12
+ "github.com/0chain/common/core/encryption"
13
"github.com/0chain/common/core/util/wmpt"
14
"gorm.io/gorm/clause"
15
@@ -93,7 +94,7 @@ func (Allocation) TableName() string {
93
94
func (a *Allocation) GetTrie() *wmpt.WeightedMerkleTrie {
95
trie := Repo.getTrie(a.ID)
96
if trie == nil {
- if a.FileMetaRoot == "" {
97
+ if a.FileMetaRoot == "" || a.FileMetaRoot == encryption.EmptyHash {
98
trie = wmpt.New(nil, datastore.GetBlockStore())
99
} else {
100
decodedRoot, _ := hex.DecodeString(a.FileMetaRoot)
0 commit comments