File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ use mina_p2p_messages::{
77 MinaStateProtocolStateValueStableV2 as MinaProtocolState ,
88 } ,
99} ;
10- ///! Consensus chain selection algorithms. The [`official specification`] was taken as a reference.
11- ///
12- ///! [`official specification`]: https://github.com/MinaProtocol/mina/blob/develop/docs/specs/consensus/README.md
1310use std:: cmp:: { max, min, Ordering } ;
1411
1512const GRACE_PERIOD_END : u32 = 1440 ;
@@ -135,7 +132,7 @@ fn hash_last_vrf(chain: &MinaProtocolState) -> String {
135132 hasher. update ( chain. body . consensus_state . last_vrf_output . as_slice ( ) ) ;
136133 let digest = hasher. finalize ( ) . to_vec ( ) ;
137134
138- hex:: encode ( & digest)
135+ hex:: encode ( digest)
139136}
140137
141138fn hash_state ( chain : & MinaProtocolState ) -> String {
Original file line number Diff line number Diff line change 1+ /// Consensus chain selection algorithms. The [`official specification`] was taken as a reference.
2+ ///
3+ /// [`official specification`]: https://github.com/MinaProtocol/mina/blob/develop/docs/specs/consensus/README.md
14mod consensus_state;
5+ mod verifier_index;
26
37use mina_bridge_core:: proof:: state_proof:: { MinaStateProof , MinaStatePubInputs } ;
48
@@ -13,8 +17,6 @@ use mina_tree::proofs::verification::verify_block;
1317use mina_tree:: verifier:: get_srs;
1418use verifier_index:: deserialize_blockchain_vk;
1519
16- mod verifier_index;
17-
1820lazy_static ! {
1921 static ref VERIFIER_INDEX : VerifierIndex <GroupAffine <PallasParameters >> =
2022 deserialize_blockchain_vk( ) . unwrap( ) ;
You can’t perform that action at this time.
0 commit comments