Skip to content

Commit d15d530

Browse files
committed
Syntactical validation of merged ATXs (#6030)
## Motivation Closes #5997 Support handling merged ATXs. Only syntactical validation.
1 parent 5880ade commit d15d530

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3135
-880
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ clear-test-cache:
9797
.PHONY: clear-test-cache
9898

9999
test: get-libs
100-
@$(ULIMIT) CGO_LDFLAGS="$(CGO_TEST_LDFLAGS)" gotestsum -- -race -timeout 5m -p 1 $(UNIT_TESTS)
100+
@$(ULIMIT) CGO_LDFLAGS="$(CGO_TEST_LDFLAGS)" gotestsum -- -race -timeout 8m -p 1 $(UNIT_TESTS)
101101
.PHONY: test
102102

103103
generate: get-libs

activation/activation.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -809,14 +809,14 @@ func (b *Builder) createAtx(
809809
NiPosts: []wire.NiPostsV2{
810810
{
811811
Membership: wire.MerkleProofV2{
812-
Nodes: nipostState.Membership.Nodes,
813-
LeafIndices: []uint64{nipostState.Membership.LeafIndex},
812+
Nodes: nipostState.Membership.Nodes,
814813
},
815814
Challenge: types.Hash32(nipostState.NIPost.PostMetadata.Challenge),
816815
Posts: []wire.SubPostV2{
817816
{
818-
Post: *wire.PostToWireV1(nipostState.Post),
819-
NumUnits: nipostState.NumUnits,
817+
Post: *wire.PostToWireV1(nipostState.Post),
818+
NumUnits: nipostState.NumUnits,
819+
MembershipLeafIndex: nipostState.Membership.LeafIndex,
820820
},
821821
},
822822
},

0 commit comments

Comments
 (0)