File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ export class BlockMonitor {
8686 this . unwatch = undefined
8787 }
8888
89+ // Delay block monitor restart by 500ms
90+ // This prevents an infinite loop of rapid restarts
91+ // when the blockchain node is unresponsive or down
8992 setTimeout ( ( ) => {
9093 context . with ( ROOT_CONTEXT , ( ) => {
9194 this . start ( )
Original file line number Diff line number Diff line change 11import { unknownToError } from "@happy.tech/common"
22import { context , trace } from "@opentelemetry/api"
33
4- export const blockMonitorTracer = trace . getTracer ( "txm.block-monitor" )
5- export const transactionCollectorTracer = trace . getTracer ( "txm.transaction-collector" )
6- export const transactionSubmitterTracer = trace . getTracer ( "txm.transaction-submitter" )
7-
84export function TraceMethod ( spanName ?: string ) {
95 return ( _target : unknown , propertyKey : string , descriptor : PropertyDescriptor ) => {
106 const originalMethod = descriptor . value
You can’t perform that action at this time.
0 commit comments