Skip to content

Commit acb64cb

Browse files
authored
Use improved error propagation branch (#97)
* feat: update rust-toolchain to 1.70.0 * feat: update encode_into api usage to latest * feat: update to latest proofs
1 parent 13c9def commit acb64cb

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

Cargo.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ bincode = "1.1.2"
1515
blstrs = "0.7"
1616
lazy_static = "1.2"
1717
serde = "1.0.104"
18-
filecoin-proofs-v1 = { package = "filecoin-proofs", version = "~16.1.0", default-features = false }
19-
filecoin-hashers = { version = "~11.1.0", default-features = false, features = ["poseidon", "sha256"] }
20-
fr32 = { version = "~9.1.0", default-features = false }
21-
storage-proofs-core = { version = "~16.1.0", default-features = false }
18+
#filecoin-proofs-v1 = { package = "filecoin-proofs", version = "~16.1.0", default-features = false }
19+
#filecoin-hashers = { version = "~11.1.0", default-features = false, features = ["poseidon", "sha256"] }
20+
#fr32 = { version = "~9.1.0", default-features = false }
21+
#storage-proofs-core = { version = "~16.1.0", default-features = false }
22+
filecoin-proofs-v1 = { package = "filecoin-proofs", git = "https://github.com/filecoin-project/rust-fil-proofs", default-features = false }
23+
filecoin-hashers = { git = "https://github.com/filecoin-project/rust-fil-proofs", default-features = false, features = ["poseidon", "sha256"] }
24+
fr32 = { git = "https://github.com/filecoin-project/rust-fil-proofs", default-features = false }
25+
storage-proofs-core = { git = "https://github.com/filecoin-project/rust-fil-proofs", default-features = false }
2226

2327
[features]
2428
default = ["opencl", "cuda"]

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.67.1
1+
1.70.0

src/update.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ fn empty_sector_update_encode_into_inner<Tree: 'static + MerkleTreeTrait<Hasher
2626
"unusupported version"
2727
);
2828

29-
let config = registered_proof.as_v1_config();
29+
let porep_config = registered_proof.as_v1_config();
30+
let config = SectorUpdateConfig::from_porep_config(&porep_config);
3031

3132
filecoin_proofs_v1::encode_into::<Tree>(
3233
&config,

0 commit comments

Comments
 (0)