Skip to content

Commit

Permalink
Document upgrading polkadot-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdean-digicatapult committed Nov 25, 2024
1 parent 449c995 commit bf0c960
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions Upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,16 @@ A guide on how to upgrade to the latest [release](https://github.com/paritytech/

Based on updating from `release-polkadot-v1.5.0` to `release-polkadot-v1.9.0`. See the [PR](https://github.com/digicatapult/sqnc-node/pull/169/files).

## Upgrade branch version
## Upgrade polkadot-sdk version

In the root `Cargo.toml` bump the dependencies that point to a release branch of the `polkadot-sdk`:
`Polkadot-sdk` (`substrate`) dependencies are upgraded using the tool [`psvm`](https://github.com/paritytech/psvm). Once installed you can update the `polkadot-sdk` with, for example:

For example

```rust
frame-support = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.5.0" }
```

becomes

```rust
frame-support = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.9.0" }
```bash
# upgrade polkadot-sdk to version stable2409-2
psvm -v "stable2409-2"
```

Run `cargo update` to get newer versions of all dependencies.
Available versions are documented on [https://github.com/paritytech/release-registry/](https://github.com/paritytech/release-registry/)

## Debugging techniques

Expand Down

0 comments on commit bf0c960

Please sign in to comment.