File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,10 @@ func (leaf *DagLeaf) VerifyBranch(branch *ClassicTreeBranch) error {
325
325
func (leaf * DagLeaf ) VerifyLeaf () error {
326
326
additionalData := sortMapByKeys (leaf .AdditionalData )
327
327
328
+ if leaf .ClassicMerkleRoot == nil || len (leaf .ClassicMerkleRoot ) <= 0 {
329
+ leaf .ClassicMerkleRoot = []byte {}
330
+ }
331
+
328
332
leafData := struct {
329
333
ItemName string
330
334
Type LeafType
@@ -374,6 +378,10 @@ func (leaf *DagLeaf) VerifyLeaf() error {
374
378
func (leaf * DagLeaf ) VerifyRootLeaf () error {
375
379
additionalData := sortMapByKeys (leaf .AdditionalData )
376
380
381
+ if leaf .ClassicMerkleRoot == nil || len (leaf .ClassicMerkleRoot ) <= 0 {
382
+ leaf .ClassicMerkleRoot = []byte {}
383
+ }
384
+
377
385
leafData := struct {
378
386
ItemName string
379
387
Type LeafType
You can’t perform that action at this time.
0 commit comments