Skip to content

Commit 8a9ed49

Browse files
fix to permissions change update
1 parent 5e47818 commit 8a9ed49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pc/request.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2319,13 +2319,14 @@ void price::update( T *res )
23192319

23202320
// update publishers and publisher prices
23212321
lamports_ = res->get_lamports();
2322+
uint32_t cnum = std::max( cnum_, pupd->num_ );
23222323
if ( PC_UNLIKELY( cnum_ != pupd->num_ ) ) {
23232324
cnum_ = pupd->num_;
23242325
log_update( "modify_publisher" );
23252326
}
23262327
manager *mgr = get_manager();
23272328
bool upd_pub = false;
2328-
for( unsigned i=0; i != cnum_; ++i ) {
2329+
for( unsigned i=0; i != cnum; ++i ) {
23292330
cprice_[i] = pupd->comp_[i].agg_;
23302331
if ( PC_UNLIKELY( !pc_pub_key_equal(
23312332
&cpub_[i], &pupd->comp_[i].pub_ ) ) ){

0 commit comments

Comments
 (0)