diff --git a/Cargo.lock b/Cargo.lock index 1e89963b..7f1f6481 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -194,8 +194,7 @@ dependencies = [ [[package]] name = "bp-consensus" version = "0.10.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d7b87840e5fc65bcbcd3881e0a0150ecef4a9b18b1356eb7a8a9adc85280c63" +source = "git+https://github.com/BP-WG/bp-core?branch=v0.11#13b1a425cb1998dc8f335fa885cc89d73f9b8c07" dependencies = [ "amplify", "chrono", @@ -209,8 +208,7 @@ dependencies = [ [[package]] name = "bp-core" version = "0.10.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a8b5219d96064b5d277c166fd5321ce6ee3e8a74e50bf2281d47726f365ead4" +source = "git+https://github.com/BP-WG/bp-core?branch=v0.11#13b1a425cb1998dc8f335fa885cc89d73f9b8c07" dependencies = [ "amplify", "bp-consensus", @@ -226,8 +224,7 @@ dependencies = [ [[package]] name = "bp-dbc" version = "0.10.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e265b111f61acb39cf36778c4da9a3d3c49fcc7a7e4116fd40ab250d598b1280" +source = "git+https://github.com/BP-WG/bp-core?branch=v0.11#13b1a425cb1998dc8f335fa885cc89d73f9b8c07" dependencies = [ "amplify", "base85", @@ -241,8 +238,7 @@ dependencies = [ [[package]] name = "bp-seals" version = "0.10.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb60735209233ece5927a5c66355037af8479104b5ff55371ae4a0f53c96b2" +source = "git+https://github.com/BP-WG/bp-core?branch=v0.11#13b1a425cb1998dc8f335fa885cc89d73f9b8c07" dependencies = [ "amplify", "baid58", @@ -299,8 +295,7 @@ dependencies = [ [[package]] name = "commit_encoding_derive" version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00033f14d67c4169d588f085ea2faeb7b610cf03a74d42ea09eeba31abef2047" +source = "git+https://github.com/LNP-BP/client_side_validation?branch=v0.11#5d1e05803158dc6a59599dcf43657d31ff6911e8" dependencies = [ "amplify", "amplify_syn", @@ -311,9 +306,8 @@ dependencies = [ [[package]] name = "commit_verify" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91d9d6e86f6cec8d4af19a0e418bac9cb266a6dc70660bcdcdac1e0fa924e0d1" +version = "0.11.0-beta.1" +source = "git+https://github.com/LNP-BP/client_side_validation?branch=v0.11#5d1e05803158dc6a59599dcf43657d31ff6911e8" dependencies = [ "amplify", "commit_encoding_derive", @@ -756,9 +750,8 @@ dependencies = [ [[package]] name = "single_use_seals" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed7655b4b597fca10d2cf7579d3dfee1987a45342bdeecf90cab5affec1c7197" +version = "0.11.0-beta.1" +source = "git+https://github.com/LNP-BP/client_side_validation?branch=v0.11#5d1e05803158dc6a59599dcf43657d31ff6911e8" dependencies = [ "amplify_derive", ] diff --git a/Cargo.toml b/Cargo.toml index 8b9f2d99..41de31c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,8 +26,8 @@ amplify = "~4.5.0" strict_encoding = "~2.6.1" strict_types = "~1.6.3" aluvm = { version = "~0.10.6", features = ["std"] } -commit_verify = { version = "~0.10.6", features = ["rand", "derive"] } -single_use_seals = "~0.10.1" +commit_verify = { version = "~0.11.0-beta.1", features = ["rand", "derive"] } +single_use_seals = "~0.11.0-beta.1" bp-core = { version = "~0.10.11" } secp256k1-zkp = { version = "0.9.2", features = ["rand", "rand-std", "global-context"] } baid58 = "~0.4.4" @@ -59,3 +59,11 @@ wasm-bindgen-test = "0.3" [package.metadata.docs.rs] features = [ "all" ] + +[patch.crates-io] +commit_verify = { git = "https://github.com/LNP-BP/client_side_validation", branch = "v0.11" } +single_use_seals = { git = "https://github.com/LNP-BP/client_side_validation", branch = "v0.11" } +bp-consensus = { git = "https://github.com/BP-WG/bp-core", branch = "v0.11" } +bp-dbc = { git = "https://github.com/BP-WG/bp-core", branch = "v0.11" } +bp-seals = { git = "https://github.com/BP-WG/bp-core", branch = "v0.11" } +bp-core = { git = "https://github.com/BP-WG/bp-core", branch = "v0.11" } diff --git a/src/validation/status.rs b/src/validation/status.rs index 5d38dc94..68ccd830 100644 --- a/src/validation/status.rs +++ b/src/validation/status.rs @@ -319,8 +319,6 @@ pub enum Failure { /// transition {0} doesn't close seal with the witness transaction {1}. /// Details: {2} SealInvalid(OpId, Txid, seals::txout::VerifyError), - /// transition {0} is not committed in the witness transaction {1}. - AnchorNotCommitted(OpId, Txid), /// transition {0} is not properly anchored to the witness transaction {1}. /// Details: {2} AnchorInvalid(OpId, Txid, anchor::VerifyError), diff --git a/src/validation/validator.rs b/src/validation/validator.rs index 4246ad3e..d4b0e008 100644 --- a/src/validation/validator.rs +++ b/src/validation/validator.rs @@ -451,12 +451,6 @@ impl<'consignment, 'resolver, C: ConsignmentApi, R: ResolveTx> // [VALIDATION]: Checking anchor deterministic bitcoin commitment match anchor.verify(self.contract_id, message, &witness.tx) { - Ok(false) => { - // The operation is not committed to bitcoin transaction graph! - // Ultimate failure. But continuing to detect the rest (after reporting it). - self.status - .add_failure(Failure::AnchorNotCommitted(opid, txid)); - } Err(err) => { // The operation is not committed to bitcoin transaction graph! // Ultimate failure. But continuing to detect the rest (after reporting it).