From a590507073e8bd5a0c8a224fea14727567c06206 Mon Sep 17 00:00:00 2001 From: classicalliu Date: Tue, 9 Aug 2022 10:10:32 +0800 Subject: [PATCH 1/2] feat: Add rpc `gw_get_pending_tx_hashes` --- packages/api-server/src/methods/modules/gw.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/api-server/src/methods/modules/gw.ts b/packages/api-server/src/methods/modules/gw.ts index aee5e31b..8c8cf23b 100644 --- a/packages/api-server/src/methods/modules/gw.ts +++ b/packages/api-server/src/methods/modules/gw.ts @@ -104,6 +104,10 @@ export class Gw { this.is_request_in_queue.bind(this), 0 ); + this.get_pending_tx_hashes = middleware( + this.get_pending_tx_hashes.bind(this), + 0 + ); } async ping(args: any[]) { @@ -676,6 +680,15 @@ export class Gw { parseGwRpcError(error); } } + + async get_pending_tx_hashes(args: any[]) { + try { + const result = await this.readonlyRpc.gw_get_pending_tx_hashes(...args); + return result; + } catch (error) { + parseGwRpcError(error); + } + } } function formatHexNumber( From c8b0f2a03c45838b06f9090a2ba54af228cb8c1b Mon Sep 17 00:00:00 2001 From: Flouse Date: Mon, 29 Aug 2022 16:09:01 +0800 Subject: [PATCH 2/2] chore: use default GODWOKEN_PREBUILD_IMAGE_NAME in integration-test --- .github/workflows/godwoken-tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/godwoken-tests.yml b/.github/workflows/godwoken-tests.yml index 2cffc16f..8ae5ee54 100644 --- a/.github/workflows/godwoken-tests.yml +++ b/.github/workflows/godwoken-tests.yml @@ -17,4 +17,3 @@ jobs: MANUAL_BUILD_WEB3_INDEXER=true WEB3_GIT_URL=https://github.com/${{ github.repository }} WEB3_GIT_CHECKOUT=${{ github.ref }} - GODWOKEN_PREBUILD_IMAGE_NAME=ghcr.io/nervosnetwork/godwoken-prebuilds:1.4.2-rc2-202207211420