Improve log and remove rpc for ethereum

This commit is contained in:
julian merlo 2024-02-14 10:10:19 -03:00
parent 4fb7d9d86e
commit 969cae4534
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,6 @@
"ethereum": {
"network": "mainnet",
"rpcs": [
"https://rpc.flashbots.net/fast",
"https://api.securerpc.com/v1",
"https://rpc.mevblocker.io/noreverts",
"https://rpc.notadegen.com/eth"

View File

@ -56,7 +56,9 @@ export class InstrumentedHttpProvider {
});
} catch (e: AxiosError | any) {
this.logger.error(
`[${chain}][${body?.method}] Got error from ${this.url} rpc. ${e?.message ?? `${e}`}`
`[${chain}][${body?.method ?? body[0]?.method}] Got error from ${this.url} rpc. ${
e?.message ?? `${e}`
}`
);
// Connection / timeout error: