Update protobuf dependency version.

This commit is contained in:
Kris Nuttycombe 2021-01-19 12:59:18 -07:00
parent 779a5670e0
commit 7f43b05e21
3 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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!(