We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58d8ca6 commit fb17694Copy full SHA for fb17694
1 file changed
dag/leaves.go
@@ -325,6 +325,10 @@ func (leaf *DagLeaf) VerifyBranch(branch *ClassicTreeBranch) error {
325
func (leaf *DagLeaf) VerifyLeaf() error {
326
additionalData := sortMapByKeys(leaf.AdditionalData)
327
328
+ if leaf.ClassicMerkleRoot == nil || len(leaf.ClassicMerkleRoot) <= 0 {
329
+ leaf.ClassicMerkleRoot = []byte{}
330
+ }
331
+
332
leafData := struct {
333
ItemName string
334
Type LeafType
@@ -374,6 +378,10 @@ func (leaf *DagLeaf) VerifyLeaf() error {
374
378
func (leaf *DagLeaf) VerifyRootLeaf() error {
375
379
376
380
381
382
383
384
377
385
386
387
0 commit comments