Skip to content

Commit 99d3514

Browse files
committed
Only add one pending update per batch transaction
1 parent d2646c5 commit 99d3514

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pc/request.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -815,12 +815,12 @@ bool price::send( price *prices[], const unsigned n )
815815
}
816816
else {
817817
p->get_rpc_client()->send( &upds_[ 0 ], upds_.size() );
818+
p->tvec_.emplace_back(
819+
std::string( 100, '\0' ), p->preq_->get_sent_time()
820+
);
821+
p->preq_->get_signature()->enc_base58( p->tvec_.back().first );
818822
for ( unsigned k = j; k <= i; ++k ) {
819823
price *const p1 = prices[ k ];
820-
p1->tvec_.emplace_back(
821-
std::string( 100, '\0' ), p1->preq_->get_sent_time()
822-
);
823-
p1->preq_->get_signature()->enc_base58( p1->tvec_.back().first );
824824
PC_LOG_DBG( "sent price update" )
825825
.add( "secondary", mgr->get_is_secondary() )
826826
.add( "price_account", *p1->get_account() )

0 commit comments

Comments
 (0)