File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1645,6 +1645,11 @@ export class FillerMultithreaded {
16451645 logger . error ( `Error simulating tx: ${ error } ` ) ;
16461646 return ;
16471647 }
1648+ if ( simResult . simError ) {
1649+ logger . error (
1650+ `Error simulating tx result: ${ simResult . simError . toString ( ) } `
1651+ ) ;
1652+ }
16481653
16491654 this . simulateTxHistogram ?. record ( simResult . simTxDuration , {
16501655 type : 'multiMakerFill' ,
Original file line number Diff line number Diff line change @@ -158,24 +158,30 @@ export class PythLazerSubscriber {
158158 }
159159
160160 async getLatestPriceMessage ( feedIds : number [ ] ) : Promise < string | undefined > {
161+ console . log ( `pythLazer getLatestPriceMessage: ${ feedIds } ` ) ;
161162 if ( this . useHttpRequests ) {
162163 if ( feedIds . length === 1 && this . redisClient ) {
163164 const priceMessage = ( await this . redisClient . get (
164165 `pythLazerData:${ feedIds [ 0 ] } `
165166 ) ) as { data : string ; ts : number } | undefined ;
166167 if ( priceMessage ?. data && Date . now ( ) - priceMessage . ts < 5000 ) {
168+ console . log ( `pythLazer price: redis: ${ priceMessage } ` ) ;
167169 return priceMessage . data ;
168170 }
169171 }
170172 for ( const url of this . httpEndpoints ) {
171173 const priceMessage = await this . fetchLatestPriceMessage ( url , feedIds ) ;
172174 if ( priceMessage ) {
175+ console . log ( `pythLazer price: HTTP: ${ priceMessage } ` ) ;
173176 return priceMessage ;
174177 }
175178 }
179+ console . log ( `pythLazer price undefined` ) ;
176180 return undefined ;
177181 }
178- return this . feedIdChunkToPriceMessage . get ( this . hash ( feedIds ) ) ;
182+ const res = this . feedIdChunkToPriceMessage . get ( this . hash ( feedIds ) ) ;
183+ console . log ( `pythLazer price: feedIdChunkToPriceMessage: ${ res } ` ) ;
184+ return res ;
179185 }
180186
181187 async fetchLatestPriceMessage (
You can’t perform that action at this time.
0 commit comments