Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

Commit 66db78e

Browse files
authored
fix: update blueprint repo and fix gh actions (#1017)
* fix: update blueprint repo and fix gh actions * fix: cleanup * chore: format * chore: remove integrity failure
1 parent a161d05 commit 66db78e

5 files changed

Lines changed: 62 additions & 19 deletions

File tree

.github/workflows/pre-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
id: commit_info
2121
run: |
2222
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
23-
echo "commit_message='$(git log -1 --pretty=%B)'" >> $GITHUB_OUTPUT
23+
echo "commit_message<<EOF" >> $GITHUB_OUTPUT
24+
git log -1 --pretty=%B >> $GITHUB_OUTPUT
25+
echo "EOF" >> $GITHUB_OUTPUT
2426
2527
# Generating a GitHub token, so that tags created by the action
2628
# triggers the other workflows

Cargo.lock

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

node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ sc-consensus-slots = { workspace = true }
115115
sc-consensus-manual-seal = { workspace = true }
116116
sp-consensus = { workspace = true }
117117
sp-transaction-storage-proof = { workspace = true }
118-
118+
dirs = { version = "6.0.0", default-features = false }
119119
tangle-crypto-primitives = { workspace = true }
120120
tangle-primitives = { workspace = true, features = ["std"] }
121121
tangle-runtime = { workspace = true, features = ["std"] }

node/src/blueprint_service.rs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ use blueprint_manager::{
88
use blueprint_runner::config::BlueprintEnvironment;
99
use sc_keystore::LocalKeystore;
1010
use sc_service::error::Error as ServiceError;
11+
use std::path::PathBuf;
12+
13+
fn default_cache_dir() -> PathBuf {
14+
match dirs::cache_dir() {
15+
Some(dir) => dir.join("blueprint-manager"),
16+
None => PathBuf::from("./blueprint-manager-cache"),
17+
}
18+
}
1119

1220
/// Runs the blueprint manager service.
1321
pub async fn create_blueprint_manager_service<P: AsRef<Path>>(
@@ -20,12 +28,19 @@ pub async fn create_blueprint_manager_service<P: AsRef<Path>>(
2028
let base_dir = data_dir.parent().ok_or_else(|| {
2129
ServiceError::Application("Failed to get parent directory for keystore".into())
2230
})?;
31+
2332
let config = BlueprintManagerConfig {
2433
keystore_uri: base_dir.join("keystore").to_path_buf().to_string_lossy().into(),
2534
data_dir,
2635
verbose: 2,
2736
test_mode,
28-
..Default::default()
37+
instance_id: None,
38+
allow_unchecked_attestations: false,
39+
preferred_source: SourceType::default(),
40+
podman_host: DEFAULT_DOCKER_HOST.clone(),
41+
cache_dir: default_cache_dir(),
42+
pretty: true,
43+
blueprint_config: None,
2944
};
3045
let mut env = BlueprintEnvironment::default();
3146

tangle-subxt/src/lib.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
#![deny(
2-
trivial_casts,
3-
trivial_numeric_casts,
4-
stable_features,
5-
non_shorthand_field_patterns,
6-
renamed_and_removed_lints,
7-
unsafe_code
8-
)]
1+
#![deny(stable_features, non_shorthand_field_patterns, renamed_and_removed_lints, unsafe_code)]
92

103
pub use parity_scale_codec;
114
pub use scale_info;

0 commit comments

Comments
 (0)