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 504dc12 commit 39c9f30Copy full SHA for 39c9f30
pc/user.cpp
@@ -243,7 +243,13 @@ void user::parse_sub_price( uint32_t tok, uint32_t itok )
243
if ( 0 == (ntok = jp_.find_val( ptok, "account" ) ) ) break;
244
pub_key pkey;
245
pkey.init_from_text( jp_.get_str( ntok ) );
246
+
247
+ // Check to see if the price exists in either the primary or the secondary manager
248
price *sptr = sptr_->get_price( pkey );
249
+ if ( !sptr && sptr_->has_secondary() ) {
250
+ sptr = sptr_->get_secondary()->get_price( pkey );
251
+ };
252
253
if ( PC_UNLIKELY( !sptr ) ) { add_unknown_symbol(itok); return; }
254
255
// add subscription
0 commit comments