@@ -722,6 +722,7 @@ void price::update_no_send(
722722 , const symbol_status st, const bool is_agg
723723)
724724{
725+ preq_->set_slot ( get_manager ()->get_slot () );
725726 preq_->set_price ( price, conf, st, is_agg );
726727}
727728
@@ -777,8 +778,6 @@ bool price::send( price *prices[], const unsigned n )
777778 .add ( " price_type" , price_type_to_str ( p->get_price_type () ) ).end ();
778779 continue ;
779780 }
780- const uint64_t slot = mgr->get_slot ();
781- p->preq_ ->set_slot ( slot );
782781 p->preq_ ->set_block_hash ( mgr->get_recent_block_hash () );
783782 upds_.emplace_back ( p->preq_ );
784783
@@ -817,7 +816,7 @@ bool price::send( price *prices[], const unsigned n )
817816 .add ( " symbol" , p1->get_symbol () )
818817 .add ( " price_type" , price_type_to_str ( p1->get_price_type () ) )
819818 .add ( " sig" , p1->tvec_ .back ().first )
820- .add ( " pub_slot" , slot )
819+ .add ( " pub_slot" , p1-> preq_ -> get_slot () )
821820 .end ();
822821 if ( PC_UNLIKELY ( p1->tvec_ .size () >= 100 ) ) {
823822 PC_LOG_WRN ( " too many unacked price update transactions" )
0 commit comments