We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e47818 commit 8a9ed49Copy full SHA for 8a9ed49
pc/request.cpp
@@ -2319,13 +2319,14 @@ void price::update( T *res )
2319
2320
// update publishers and publisher prices
2321
lamports_ = res->get_lamports();
2322
+ uint32_t cnum = std::max( cnum_, pupd->num_ );
2323
if ( PC_UNLIKELY( cnum_ != pupd->num_ ) ) {
2324
cnum_ = pupd->num_;
2325
log_update( "modify_publisher" );
2326
}
2327
manager *mgr = get_manager();
2328
bool upd_pub = false;
- for( unsigned i=0; i != cnum_; ++i ) {
2329
+ for( unsigned i=0; i != cnum; ++i ) {
2330
cprice_[i] = pupd->comp_[i].agg_;
2331
if ( PC_UNLIKELY( !pc_pub_key_equal(
2332
&cpub_[i], &pupd->comp_[i].pub_ ) ) ){
0 commit comments