Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pc/user.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,12 @@ void user::parse_sub_price_sched( uint32_t tok, uint32_t itok )
if ( 0 == (ntok = jp_.find_val( ptok, "account" ) ) ) break;
pub_key pkey;
pkey.init_from_text( jp_.get_str( ntok ) );

// Check to see if the price exists in either the primary or the secondary manager
price *sptr = sptr_->get_price( pkey );
if ( !sptr && sptr_->has_secondary() ) {
sptr = sptr_->get_secondary()->get_price( pkey );
};
if ( PC_UNLIKELY( !sptr ) ) { add_unknown_symbol(itok); return; }

// add subscription
Expand Down