Skip to content

Commit

Permalink
Syntactical validation of merged ATXs (#6030)
Browse files Browse the repository at this point in the history
## Motivation
Closes #5997

Support handling merged ATXs. Only syntactical validation.
  • Loading branch information
poszu committed Jul 4, 2024
1 parent 5880ade commit 72bfa8b
Show file tree
Hide file tree
Showing 56 changed files with 3,135 additions and 880 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ clear-test-cache:
.PHONY: clear-test-cache

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

generate: get-libs
Expand Down
8 changes: 4 additions & 4 deletions activation/activation.go
Original file line number Diff line number Diff line change
Expand Up @@ -809,14 +809,14 @@ func (b *Builder) createAtx(
NiPosts: []wire.NiPostsV2{
{
Membership: wire.MerkleProofV2{
Nodes: nipostState.Membership.Nodes,
LeafIndices: []uint64{nipostState.Membership.LeafIndex},
Nodes: nipostState.Membership.Nodes,
},
Challenge: types.Hash32(nipostState.NIPost.PostMetadata.Challenge),
Posts: []wire.SubPostV2{
{
Post: *wire.PostToWireV1(nipostState.Post),
NumUnits: nipostState.NumUnits,
Post: *wire.PostToWireV1(nipostState.Post),
NumUnits: nipostState.NumUnits,
MembershipLeafIndex: nipostState.Membership.LeafIndex,
},
},
},
Expand Down
Loading

0 comments on commit 72bfa8b

Please sign in to comment.