Skip to content

Commit

Permalink
Improve multiple rpcs (#40)
Browse files Browse the repository at this point in the history
* fix ci

* update lock

* Add check CI

* use helixconf default rpcs
  • Loading branch information
fewensa authored Oct 9, 2024
1 parent e2126f9 commit 7acc1f1
Show file tree
Hide file tree
Showing 3 changed files with 578 additions and 391 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check

on:
pull_request:

jobs:

check-relayer:
name: Release relayer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v4
with:
node-version: '18'

- name: Check
run: |
yarn install
yarn build
2 changes: 1 addition & 1 deletion src/relayer/relayer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class RelayerService implements OnModuleInit {
);
return null;
}
const rpcs = [...rpcnode.rpcs, chainInfo.rpc];
const rpcs = [...(rpcnode.rpcs || []), ...chainInfo.rpcs];
const provider = new EthereumProvider(rpcs);
const lendMarket = rpcnode.lendMarket?.map((market) => {
switch (market.protocol) {
Expand Down
Loading

0 comments on commit 7acc1f1

Please sign in to comment.