Skip to content

Commit

Permalink
fix(proto): align crypto.Proof serialization with go tendermint
Browse files Browse the repository at this point in the history
  • Loading branch information
zvolin committed Aug 30, 2024
1 parent 5d5e424 commit 76608a3
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 14 deletions.
2 changes: 0 additions & 2 deletions proto/src/prost/v0_34/tendermint.crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Proof {
#[prost(int64, tag = "1")]
#[serde(with = "crate::serializers::from_str")]
pub total: i64,
#[prost(int64, tag = "2")]
#[serde(with = "crate::serializers::from_str")]
pub index: i64,
#[prost(bytes = "vec", tag = "3")]
#[serde(with = "crate::serializers::bytes::base64string")]
Expand Down
2 changes: 0 additions & 2 deletions proto/src/prost/v0_37/tendermint.crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Proof {
#[prost(int64, tag = "1")]
#[serde(with = "crate::serializers::from_str")]
pub total: i64,
#[prost(int64, tag = "2")]
#[serde(with = "crate::serializers::from_str")]
pub index: i64,
#[prost(bytes = "vec", tag = "3")]
#[serde(with = "crate::serializers::bytes::base64string")]
Expand Down
2 changes: 1 addition & 1 deletion proto/src/tendermint/v0_34.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ pub mod version {

pub mod meta {
pub const REPOSITORY: &str = "https://github.com/celestiaorg/celestia-core";
pub const COMMITISH: &str = "v0.34.x-celestia";
pub const COMMITISH: &str = "a1b07a1e6c77595466da9c61b37c83b4769b47e7";
}
8 changes: 1 addition & 7 deletions tendermint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@
#![no_std]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(
warnings,
trivial_casts,
trivial_numeric_casts,
unused_import_braces,
unused_qualifications
)]
#![deny(warnings, trivial_casts, trivial_numeric_casts, unused_import_braces)]
#![forbid(unsafe_code)]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/informalsystems/tendermint-rs/master/img/logo-tendermint-rs_3961x4001.png"
Expand Down
2 changes: 0 additions & 2 deletions tools/proto-compiler/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,6 @@ pub static CUSTOM_FIELD_ATTRIBUTES: &[(&str, &str)] = &[
),
(".tendermint.types.TxProof.data", BASE64STRING),
(".tendermint.types.TxProof.root_hash", HEXSTRING),
(".tendermint.crypto.Proof.index", QUOTED),
(".tendermint.crypto.Proof.total", QUOTED),
(".tendermint.crypto.Proof.aunts", VEC_BASE64STRING),
(".tendermint.crypto.Proof.leaf_hash", BASE64STRING),
];

0 comments on commit 76608a3

Please sign in to comment.