Skip to content

Commit 806bbb9

Browse files
authored
chore: Releasing version 0.11.0 (#490)
1 parent 570c7b5 commit 806bbb9

File tree

6 files changed

+175
-3
lines changed

6 files changed

+175
-3
lines changed

CHANGELOG.md

+42
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
11
# Changelog
2+
3+
## [0.11.0](https://github.com/pactus-project/pactus/compare/v0.10.0...v0.11.0) (2023-05-29)
4+
5+
### Fix
6+
7+
- **gui**: showing the total number of validators (#474)
8+
- **network**: fixing relay connection issue (#475)
9+
- **consensus**: rejecting vote with round numbers exceeding the limit (#466)
10+
- increase failed counter when stream got error
11+
- boosting syncing process (#482)
12+
- waiting for proposal in pre-commit phase (#486)
13+
- retrieving public key from wallet for bond transactions (#485)
14+
- restoring config file to the default (#484)
15+
- defining ChainType in genesis to detect the type of network (#483)
16+
- reducing the default Argon2d to consume less memory (#480)
17+
- adding password option to the start commands (#473)
18+
19+
### Refactor
20+
21+
- rename send to transfer. (#469)
22+
23+
## [0.10.0](https://github.com/pactus-project/pactus/compare/v0.9.0...v0.10.0) (2023-05-09)
24+
25+
### Feat
26+
27+
- removing address from account (#454)
28+
- supporting multiple consensus instances (#450)
29+
- adding sortition interval to the parameters (#442)
30+
31+
### Fix
32+
33+
- **gui**: check if the node has an active consensus instance (#458)
34+
- wallet path as argument (#455)
35+
- adding reward addresses to config (#453)
36+
- removing committers from the certificate hash (#444)
37+
- prevent data race conditions in committee (#452)
38+
- using 2^256 for the vrf denominator (#445)
39+
- updating tla+ readme (#443)
40+
41+
## 0.9.0 (2022-09-05)
42+
43+
No changelog

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A full-node implementation of the Pactus blockchain in Go.
1010

1111
## Install
1212

13-
Please check the [INSTALL](./INSTALL.md) document to build and run the Pactus blockchain.
13+
Please check the [INSTALL](./docs/install.md) document to build and run the Pactus blockchain.
1414

1515
## Contribution
1616

config/config.go

+10-1
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,19 @@ func SaveTestnetConfig(path string, numValidators int) error {
9999
conf.Network.Name = "pactus-testnet"
100100
conf.Network.Listens = []string{"/ip4/0.0.0.0/tcp/21777", "/ip6/::/tcp/21777"}
101101
conf.Network.Bootstrap.Addresses = []string{
102+
"/ip4/94.101.184.118/tcp/21777/p2p/12D3KooWCwQZt8UriVXobQHPXPR8m83eceXVoeT6brPNiBHomebc",
102103
"/ip4/172.104.46.145/tcp/21777/p2p/12D3KooWNYD4bB82YZRXv6oNyYPwc5ozabx2epv75ATV3D8VD3Mq",
103-
"/ip4/94.101.184.118/tcp/21777/p2p/12D3KooWCwQZt8UriVXobQHPXPR8m83eceXVoeT6brPNiBHomebc"}
104+
"/ip4/163.172.178.141/tcp/21777/p2p/12D3KooWDF8a4goNCHriP1y922y4jagaPwHdX4eSrG5WtQpjzS6k",
105+
"/ip4/13.230.117.134/tcp/21777/p2p/12D3KooWBGNEH8NqdK1UddSnPV1yRHGLYpaQUcnujC24s7YNWPiq",
106+
"/ip6/2400:8901::f03c:93ff:fe1c:c3ec/tcp/21777/p2p/12D3KooWNYD4bB82YZRXv6oNyYPwc5ozabx2epv75ATV3D8VD3Mq"}
104107
conf.Network.Bootstrap.MinThreshold = 4
105108
conf.Network.Bootstrap.MaxThreshold = 8
109+
conf.Network.EnableRelay = true
110+
conf.Network.RelayAddrs = []string{
111+
"/ip4/172.104.46.145/tcp/4002/p2p/12D3KooWNR79jqHVVNhNVrqnDbxbJJze4VjbEsBjZhz6mkvinHAN",
112+
"/ip6/2400:8901::f03c:93ff:fe1c:c3ec/tcp/4002/p2p/12D3KooWNR79jqHVVNhNVrqnDbxbJJze4VjbEsBjZhz6mkvinHAN",
113+
"/ip4/94.101.184.118/tcp/4002/p2p/12D3KooWCRHn8vjrKNBEQcut8uVCYX5q77RKidPaE6iMK31qEVHb",
114+
}
106115
conf.GRPC.Enable = true
107116
conf.GRPC.Listen = "[::]:9090"
108117
conf.GRPC.Gateway.Enable = true

INSTALL.md docs/install.md

File renamed without changes.

docs/releasing.md

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# Releasing
2+
3+
Before releasing and publishing the Pactus software, there are a few important steps that need to be followed.
4+
Please follow the instructions below:
5+
6+
1. Get the latest code
7+
8+
```bash
9+
git checkout main
10+
git pull
11+
```
12+
13+
2. Updating Windows DLLS
14+
15+
To ensure that the GUI can find the required dependency DLLs in Windows, we may need to update them.
16+
Follow these commands in the project's root directory, using[MSYS2](https://www.msys2.org/):
17+
18+
```bash
19+
git pull
20+
pacman -Suyyy
21+
.github/releasers/releaser_gui_windows.sh
22+
```
23+
24+
Wait for the build to finish. If everything is okay, proceed to the next step.
25+
Otherwise, update the dependency DLLs inside `.github/releasers/releaser_gui_windows.sh` and
26+
run the above command again.
27+
28+
3. Check the config
29+
30+
Double-check the config files to ensure they are up to date.
31+
32+
4. Creating Environment Variables
33+
34+
Let's create environment variables for the release version.
35+
For the rest of this document, we will use these environment variables in the commands.
36+
37+
```bash
38+
VERSION="0.11.0"
39+
TAG_NAME="v${VERSION}"
40+
TAG_MESSAGE="Version ${VERSION}"
41+
```
42+
43+
For the rest of this document, we will use these environment variables in commands.
44+
45+
5. Update Changelog
46+
47+
Use [Commitizen](https://github.com/commitizen-tools/commitizen) to update the CHANGELOG.
48+
Run the following command:
49+
50+
```bash
51+
cz changelog --incremental --unreleased-version $VERSION
52+
```
53+
54+
Sometimes you may need to amend the changelog manually.
55+
Create a comparison link for the changelog header, like:
56+
57+
```text
58+
## [0.11.0](https://github.com/pactus-project/pactus/compare/v0.10.0...v0.11.0)
59+
```
60+
61+
6. Create release PR
62+
63+
Create a new PR against the `main` branch:
64+
65+
```bash
66+
git checkout -b releasing_$VERSION
67+
git commit -a -m "chore: Releasing version $VERSION"
68+
git push origin HEAD
69+
```
70+
71+
Wait for the PR to be approved and merged into the `main` branch.
72+
73+
7. Tagging
74+
75+
Create a git tag:
76+
77+
```bash
78+
git checkout main
79+
git pull
80+
git tag -s -a $TAG_NAME -m $TAG_MESSAGE
81+
```
82+
83+
check the tag info:
84+
85+
```bash
86+
git show $TAG_NAME
87+
```
88+
89+
8. Push the tag
90+
91+
Now you can push the tag to the repository:
92+
93+
```bash
94+
git push origin $TAG_NAME
95+
```
96+
97+
Pushing the tag will automatically create a release tag and build the binaries.
98+
99+
9. Bumping version
100+
101+
Update the version inside the `version/version.go` to `0.12.0`
102+
Also update the version inside this document in step 3 and 4 to `0.12.0`
103+
104+
Create a new PR against `main` branch:
105+
106+
```bash
107+
git checkout -b bumping_0.12.0
108+
git commit -a -m "chore: bumping version to 0.12.0"
109+
git push origin HEAD
110+
```
111+
112+
Wait for the PR to be approved and merged into the `main` branch.
113+
114+
10. Update the website
115+
116+
Create a new announcement post in the [blog](https://pactus.org/blog/) and
117+
update the [Road Map](https://pactus.org/about/roadmap/).
118+
Additionally, draft a new release on the
119+
[GitHub Releases](https://github.com/pactus-project/pactus/releases) page.
120+
121+
11. Celebrate 🎉

version/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
// These constants follow the semantic versioning 2.0.0 spec (http://semver.org/)
88
const (
99
major uint = 0
10-
minor uint = 10
10+
minor uint = 11
1111
patch uint = 0
1212
meta string = "beta"
1313
)

0 commit comments

Comments
 (0)