Skip to content

Commit

Permalink
fix: differentiate between quicknode geth vs quicknode reth metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 committed Jul 15, 2024
1 parent a2f06b7 commit 8b4bc58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rpc/UniJsonRpcProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,11 @@ export class UniJsonRpcProvider extends StaticJsonRpcProvider {
case CALL_METHOD_NAME:
// if it's eth_call, then we know the response data type is string, so we can compare directly
if (providerResponse !== evaluatedProviderResponse) {
// create a bogus error object to get the call stack
const error = new Error()
this.log.error(
{ methodName, args },
`Provider response mismatch: ${providerResponse} from ${selectedProvider.providerId} vs ${evaluatedProviderResponse} from ${otherProvider.providerId}`
`Provider response mismatch: ${providerResponse} from ${selectedProvider.providerId} vs ${evaluatedProviderResponse} from ${otherProvider.providerId}. Call stack ${error.stack}`
)
selectedProvider.logRpcResponseMismatch(methodName, otherProvider)
} else {
Expand Down

0 comments on commit 8b4bc58

Please sign in to comment.