1- use std:: { collections:: BTreeSet , time:: Duration } ;
1+ use std:: { collections:: BTreeSet , sync :: Arc , time:: Duration } ;
22
33use ledger:: scan_state:: transaction_logic:: valid;
44use mina_p2p_messages:: v2;
@@ -81,7 +81,7 @@ pub enum BlockProducerCurrentState {
8181 /// `protocol_state.blockchain_state.body_reference`
8282 diff_hash : v2:: ConsensusBodyReferenceStableV1 ,
8383 staged_ledger_hash : v2:: MinaBaseStagedLedgerHashStableV1 ,
84- emitted_ledger_proof : Option < Box < v2:: LedgerProofProdStableV2 > > ,
84+ emitted_ledger_proof : Option < Arc < v2:: LedgerProofProdStableV2 > > ,
8585 pending_coinbase_update : v2:: MinaBasePendingCoinbaseUpdateStableV1 ,
8686 pending_coinbase_witness : v2:: MinaBasePendingCoinbaseWitnessStableV2 ,
8787 stake_proof_sparse_ledger : v2:: MinaBaseSparseLedgerBaseStableV2 ,
@@ -91,7 +91,7 @@ pub enum BlockProducerCurrentState {
9191 won_slot : BlockProducerWonSlot ,
9292 /// Chain that we are extending.
9393 chain : Vec < AppliedBlock > ,
94- emitted_ledger_proof : Option < Box < v2:: LedgerProofProdStableV2 > > ,
94+ emitted_ledger_proof : Option < Arc < v2:: LedgerProofProdStableV2 > > ,
9595 pending_coinbase_update : v2:: MinaBasePendingCoinbaseUpdateStableV1 ,
9696 pending_coinbase_witness : v2:: MinaBasePendingCoinbaseWitnessStableV2 ,
9797 stake_proof_sparse_ledger : v2:: MinaBaseSparseLedgerBaseStableV2 ,
@@ -103,7 +103,7 @@ pub enum BlockProducerCurrentState {
103103 won_slot : BlockProducerWonSlot ,
104104 /// Chain that we are extending.
105105 chain : Vec < AppliedBlock > ,
106- emitted_ledger_proof : Option < Box < v2:: LedgerProofProdStableV2 > > ,
106+ emitted_ledger_proof : Option < Arc < v2:: LedgerProofProdStableV2 > > ,
107107 pending_coinbase_update : v2:: MinaBasePendingCoinbaseUpdateStableV1 ,
108108 pending_coinbase_witness : v2:: MinaBasePendingCoinbaseWitnessStableV2 ,
109109 stake_proof_sparse_ledger : v2:: MinaBaseSparseLedgerBaseStableV2 ,
@@ -117,7 +117,7 @@ pub enum BlockProducerCurrentState {
117117 chain : Vec < AppliedBlock > ,
118118 block : BlockWithoutProof ,
119119 block_hash : v2:: StateHash ,
120- proof : Box < v2:: MinaBaseProofStableV2 > ,
120+ proof : Arc < v2:: MinaBaseProofStableV2 > ,
121121 } ,
122122 Produced {
123123 time : redux:: Timestamp ,
0 commit comments