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

feat(statesync): extract app version from snapshot #3871

Merged
merged 18 commits into from
Oct 2, 2024

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Sep 12, 2024

Closes #3818
Blocked on celestiaorg/celestia-core#1477

I had to bump the celestia-core depedency to get a feature that I wanted. That implied upgrading Go and cosmos-sdk versions.

Testing

I verified that logs added in this PR show up when state syncing on Mocha. The logs show that the app version provided in the OfferSnapshot ABCI method was plumbed through correctly.

./scripts/mocha.sh
...
2:44PM INF Offering snapshot to ABCI app format=2 hash="$�ڢ�\x1b� �zΊ\x15���`��왹\b^G:\x03+ߢޯ" height=2782000 module=statesync
2:44PM INF offering snapshot app_version=2 height=2782000
2:44PM INF mounting keys for snapshot app_version=2

@rootulp rootulp self-assigned this Sep 12, 2024
@rootulp
Copy link
Collaborator Author

rootulp commented Sep 26, 2024

This will be ready for review after celestiaorg/celestia-core#1477 merges, I cut a release, bump to it here. 🤞 that fixes golangci-lint too.

@rootulp rootulp added the warn:blocked item is not currently being worked on but is still blocked label Sep 30, 2024
@rootulp rootulp removed the warn:blocked item is not currently being worked on but is still blocked label Oct 1, 2024
@rootulp rootulp added the forwardport:main Forward-port to main label Oct 1, 2024
@rootulp
Copy link
Collaborator Author

rootulp commented Oct 1, 2024

Docker-security-build is failing:

69.21 /go/pkg/mod/github.com/ethereum/[email protected]/crypto/signature_nocgo.go:91:14: assignment mismatch: 2 variables but btc_ecdsa.SignCompact returns 1 value
99.97 make: *** [Makefile:30: build] Error 1

Going to try bumping the go-ethereum version. cc: @rach-id

@rach-id
Copy link
Member

rach-id commented Oct 1, 2024

oing to try bumping the go-ethereum

bumping go-ethereum would require also bumping btcd in core. would cool if you could do it 👍

@rootulp rootulp marked this pull request as ready for review October 1, 2024 19:25
@rootulp rootulp requested review from rach-id, evan-forbes and a team as code owners October 1, 2024 19:25
@rootulp
Copy link
Collaborator Author

rootulp commented Oct 1, 2024

Yep bumped it in celestiaorg/celestia-core@65c778d so now it works here

Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shippit:

app/test/state_sync_test.go Show resolved Hide resolved
app/app.go Show resolved Hide resolved
@rootulp rootulp merged commit 73793b9 into celestiaorg:v2.x Oct 2, 2024
32 checks passed
@rootulp rootulp deleted the rp/state-sync-app-version branch October 2, 2024 13:21
mergify bot pushed a commit that referenced this pull request Oct 2, 2024
Closes #3818
~~Blocked on celestiaorg/celestia-core#1477

I had to bump the celestia-core depedency to get a feature that I
wanted. That implied upgrading Go and cosmos-sdk versions.

## Testing

I verified that logs added in this PR show up when state syncing on
Mocha. The logs show that the app version provided in the
`OfferSnapshot` ABCI method was plumbed through correctly.

```
./scripts/mocha.sh
...
2:44PM INF Offering snapshot to ABCI app format=2 hash="$�ڢ�\x1b� �zΊ\x15���`��왹\b^G:\x03+ߢޯ" height=2782000 module=statesync
2:44PM INF offering snapshot app_version=2 height=2782000
2:44PM INF mounting keys for snapshot app_version=2
```

(cherry picked from commit 73793b9)

# Conflicts:
#	.github/workflows/lint.yml
#	Makefile
#	docker/txsim/Dockerfile
#	go.mod
#	go.sum
rootulp added a commit that referenced this pull request Oct 4, 2024
…3936)

Closes #3818
~~Blocked on celestiaorg/celestia-core#1477

I had to bump the celestia-core depedency to get a feature that I
wanted. That implied upgrading Go and cosmos-sdk versions.

## Testing

I verified that logs added in this PR show up when state syncing on
Mocha. The logs show that the app version provided in the
`OfferSnapshot` ABCI method was plumbed through correctly.

```
./scripts/mocha.sh
...
2:44PM INF Offering snapshot to ABCI app format=2 hash="$�ڢ�\x1b� �zΊ\x15���`��왹\b^G:\x03+ߢޯ" height=2782000 module=statesync
2:44PM INF offering snapshot app_version=2 height=2782000
2:44PM INF mounting keys for snapshot app_version=2
```<hr>This is an automatic backport of pull request #3871 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Rootul P <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport:main Forward-port to main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants