Skip to content

Commit aa2bb15

Browse files
committed
Merge branch 'grim' into ci
# Conflicts: # .github/workflows/publish-ghcr.yaml.yml
2 parents c628798 + 3787881 commit aa2bb15

File tree

25 files changed

+598
-346
lines changed

25 files changed

+598
-346
lines changed

.github/workflows/cd.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
macos-release-x86:
3131
name: macOS Release - x86_64
32-
runs-on: macos-latest
32+
runs-on: macos-15-intel
3333
steps:
3434
- name: Install Rust Target
3535
run: rustup target add x86_64-apple-darwin
@@ -38,17 +38,17 @@ jobs:
3838
- name: Build
3939
run: cargo build --release --target x86_64-apple-darwin
4040
- name: Archive
41-
working-directory: target/release
41+
working-directory: target/x86_64-apple-darwin/release
4242
run: tar -czvf grin-${{ github.ref_name }}-macos-x86_64.tar.gz grin
4343
- name: Create Checksum
44-
working-directory: target/release
44+
working-directory: target/x86_64-apple-darwin/release
4545
run: openssl sha256 grin-${{ github.ref_name }}-macos-x86_64.tar.gz > grin-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
4646
- name: Release
4747
uses: softprops/action-gh-release@v1
4848
with:
4949
files: |
50-
target/release/grin-${{ github.ref_name }}-macos-x86_64.tar.gz
51-
target/release/grin-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
50+
target/x86_64-apple-darwin/release/grin-${{ github.ref_name }}-macos-x86_64.tar.gz
51+
target/x86_64-apple-darwin/release/grin-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
5252
5353
macos-release-arm64:
5454
name: macOS Release - arm64

Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grin"
3-
version = "5.4.0-alpha.0"
3+
version = "5.4.0"
44
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
55
description = "Simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
66
license = "Apache-2.0"
@@ -34,15 +34,15 @@ serde_json = "1"
3434
log = "0.4"
3535
term = "0.6"
3636

37-
grin_api = { path = "./api", version = "5.4.0-alpha.0" }
38-
grin_config = { path = "./config", version = "5.4.0-alpha.0" }
39-
grin_chain = { path = "./chain", version = "5.4.0-alpha.0" }
40-
grin_core = { path = "./core", version = "5.4.0-alpha.0" }
41-
grin_keychain = { path = "./keychain", version = "5.4.0-alpha.0" }
42-
grin_p2p = { path = "./p2p", version = "5.4.0-alpha.0" }
43-
grin_servers = { path = "./servers", version = "5.4.0-alpha.0" }
44-
grin_util = { path = "./util", version = "5.4.0-alpha.0" }
45-
grin_store = { path = "./store", version = "5.4.0-alpha.0" }
37+
grin_api = { path = "./api", version = "5.4.0" }
38+
grin_config = { path = "./config", version = "5.4.0" }
39+
grin_chain = { path = "./chain", version = "5.4.0" }
40+
grin_core = { path = "./core", version = "5.4.0" }
41+
grin_keychain = { path = "./keychain", version = "5.4.0" }
42+
grin_p2p = { path = "./p2p", version = "5.4.0" }
43+
grin_servers = { path = "./servers", version = "5.4.0" }
44+
grin_util = { path = "./util", version = "5.4.0" }
45+
grin_store = { path = "./store", version = "5.4.0" }
4646

4747
[dependencies.cursive]
4848
version = "0.21"
@@ -53,5 +53,5 @@ features = ["pancurses-backend"]
5353
built = { version = "0.8.0", features = ["git2"]}
5454

5555
[dev-dependencies]
56-
grin_chain = { path = "./chain", version = "5.4.0-alpha.0" }
57-
grin_store = { path = "./store", version = "5.4.0-alpha.0" }
56+
grin_chain = { path = "./chain", version = "5.4.0" }
57+
grin_store = { path = "./store", version = "5.4.0" }

api/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grin_api"
3-
version = "5.4.0-alpha.0"
3+
version = "5.4.0"
44
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
55
description = "APIs for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
66
license = "Apache-2.0"
@@ -32,9 +32,9 @@ async-stream = "0.3"
3232
url = "2.1"
3333
bytes = "1"
3434

35-
grin_core = { path = "../core", version = "5.4.0-alpha.0" }
36-
grin_chain = { path = "../chain", version = "5.4.0-alpha.0" }
37-
grin_p2p = { path = "../p2p", version = "5.4.0-alpha.0" }
38-
grin_pool = { path = "../pool", version = "5.4.0-alpha.0" }
39-
grin_store = { path = "../store", version = "5.4.0-alpha.0" }
40-
grin_util = { path = "../util", version = "5.4.0-alpha.0" }
35+
grin_core = { path = "../core", version = "5.4.0" }
36+
grin_chain = { path = "../chain", version = "5.4.0" }
37+
grin_p2p = { path = "../p2p", version = "5.4.0" }
38+
grin_pool = { path = "../pool", version = "5.4.0" }
39+
grin_store = { path = "../store", version = "5.4.0" }
40+
grin_util = { path = "../util", version = "5.4.0" }

chain/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grin_chain"
3-
version = "5.4.0-alpha.0"
3+
version = "5.4.0"
44
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
55
description = "Chain implementation for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
66
license = "Apache-2.0"
@@ -23,10 +23,10 @@ chrono = "0.4.11"
2323
lru-cache = "0.1"
2424
lazy_static = "1"
2525

26-
grin_core = { path = "../core", version = "5.4.0-alpha.0" }
27-
grin_keychain = { path = "../keychain", version = "5.4.0-alpha.0" }
28-
grin_store = { path = "../store", version = "5.4.0-alpha.0" }
29-
grin_util = { path = "../util", version = "5.4.0-alpha.0" }
26+
grin_core = { path = "../core", version = "5.4.0" }
27+
grin_keychain = { path = "../keychain", version = "5.4.0" }
28+
grin_store = { path = "../store", version = "5.4.0" }
29+
grin_util = { path = "../util", version = "5.4.0" }
3030

3131
[dev-dependencies]
3232
env_logger = "0.7"

chain/src/pibd_params.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ pub const SEGMENT_REQUEST_TIMEOUT_SECS: i64 = 20;
4343
/// will always be requested first)
4444
pub const SEGMENT_REQUEST_COUNT: usize = 15;
4545

46+
/// How many blocks behind the tip a PIBD peer may be and still be considered usable.
47+
pub const PIBD_PEER_HEIGHT_SLACK_BLOCKS: u64 = 2;
48+
4649
/// If the syncer hasn't seen a max work peer that supports PIBD in this number of seconds
4750
/// give up and revert back to the txhashset.zip download method
4851
pub const TXHASHSET_ZIP_FALLBACK_TIME_SECS: i64 = 60;

0 commit comments

Comments
 (0)