diff --git a/zcash_client_backend/Cargo.toml b/zcash_client_backend/Cargo.toml index e0ca8ed3e..98dcc9bc7 100644 --- a/zcash_client_backend/Cargo.toml +++ b/zcash_client_backend/Cargo.toml @@ -21,7 +21,7 @@ group = "0.8" hex = "0.4" jubjub = "0.5.1" nom = "5.1.2" -protobuf = "2.15" +protobuf = "2.20" rand_core = "0.5.1" subtle = "2.2.3" time = "0.2" @@ -30,7 +30,7 @@ proptest = { version = "0.10.1", optional = true } percent-encoding = "2.1.0" [build-dependencies] -protobuf-codegen-pure = "2.15" +protobuf-codegen-pure = "2.20" [dev-dependencies] gumdrop = "0.8" diff --git a/zcash_client_sqlite/Cargo.toml b/zcash_client_sqlite/Cargo.toml index f418ae944..793e0f113 100644 --- a/zcash_client_sqlite/Cargo.toml +++ b/zcash_client_sqlite/Cargo.toml @@ -17,7 +17,7 @@ bs58 = { version = "0.3", features = ["check"] } ff = "0.8" group = "0.8" jubjub = "0.5.1" -protobuf = "2.15" +protobuf = "2.20" rand_core = "0.5.1" rusqlite = { version = "0.24", features = ["bundled", "time"] } time = "0.2" diff --git a/zcash_client_sqlite/src/chain.rs b/zcash_client_sqlite/src/chain.rs index cea0c3cba..b60f9ef06 100644 --- a/zcash_client_sqlite/src/chain.rs +++ b/zcash_client_sqlite/src/chain.rs @@ -1,5 +1,5 @@ //! Functions for enforcing chain validity and handling chain reorgs. -use protobuf::parse_from_bytes; +use protobuf::Message; use rusqlite::params; @@ -42,7 +42,7 @@ where for row_result in rows { let cbr = row_result?; - let block: CompactBlock = parse_from_bytes(&cbr.data).map_err(Error::from)?; + let block: CompactBlock = Message::parse_from_bytes(&cbr.data).map_err(Error::from)?; if block.height() != cbr.height { return Err(SqliteClientError::CorruptedData(format!(