Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Syntactical validation of merged ATXs #6030

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8263c09
Syntactical validation of merged ATX
poszu Jun 11, 2024
4371095
Test publishing merged ATX by another ID
poszu Jun 12, 2024
6414f3d
Allow sharing nipostchallenge in merged ATX
poszu Jun 13, 2024
b51d401
Test emergency split
poszu Jun 13, 2024
29301a2
Marry using reference ATX from the same epoch
poszu Jun 19, 2024
7d0e2c6
Calculate and persist ATX weight in DB
poszu Jun 20, 2024
72f8ec3
Review feedback
poszu Jun 20, 2024
568a5a1
Fix atxs weight migration
poszu Jun 23, 2024
5f079aa
Merge remote-tracking branch 'origin/develop' into atx-handler-v2/syn…
poszu Jun 26, 2024
cdda582
review feedback
poszu Jun 28, 2024
032e082
Merge remote-tracking branch 'origin/develop' into atx-handler-v2/syn…
poszu Jul 1, 2024
ee1d0bc
use fast poet in merged-atx e2e test
poszu Jul 1, 2024
68e191c
Persist actual PoST units of every ATX member in DB across a checkpoint
poszu Jun 26, 2024
9bdaf94
Add unit tests for checkpointed previous ATX
poszu Jun 26, 2024
752b5d4
Cleanup unused methods
poszu Jun 26, 2024
b7cba29
in-code migration to fill posts table
poszu Jun 28, 2024
f8445a9
Merge pull request #6074 from spacemeshos/atxmerge/checkpoint/persist…
poszu Jul 1, 2024
7fcfedc
remove redundant helper
poszu Jul 1, 2024
a3e7920
avoid underflow
poszu Jul 1, 2024
8899c8e
small cleanups
poszu Jul 1, 2024
69d7e58
increase migration 21 batch size to 1M ATXs
poszu Jul 1, 2024
6bf6bd2
update checkpoint JSON schema
poszu Jul 1, 2024
a7089fb
review feedback
poszu Jul 2, 2024
8f09fb4
Simpify code around poet membership proof validation
poszu Jul 2, 2024
7ec6602
review feedback
poszu Jul 3, 2024
edd549e
Merge remote-tracking branch 'origin/develop' into atx-handler-v2/syn…
poszu Jul 3, 2024
eddbd13
Fix after merge with develop
poszu Jul 3, 2024
f7454c3
small cleanup of test
poszu Jul 4, 2024
ec6e1d5
don't modify released migration
poszu Jul 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading