From b4df5202e417ffe2345377b091b1af20ebeb1830 Mon Sep 17 00:00:00 2001 From: Ivan S Date: Fri, 6 Dec 2024 12:52:05 +0800 Subject: [PATCH] kusama staking processor debug info --- .../src/modules/PolkadotStakingProcessor/helpers/polkadot.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/src/modules/PolkadotStakingProcessor/helpers/polkadot.ts b/main/src/modules/PolkadotStakingProcessor/helpers/polkadot.ts index e16d1ce0..dad65930 100644 --- a/main/src/modules/PolkadotStakingProcessor/helpers/polkadot.ts +++ b/main/src/modules/PolkadotStakingProcessor/helpers/polkadot.ts @@ -325,8 +325,9 @@ export class PolkadotStakingProcessorPolkadotHelper { } async getBlockHashByHeight(height: number): Promise { - this.logger.info(`this.polkadotApi.rpc.chain.getBlockHash(${height})`); - return this.polkadotApi.rpc.chain.getBlockHash(height) + const hash = this.polkadotApi.rpc.chain.getBlockHash(height) + this.logger.info(`getBlockHashByHeight: this.polkadotApi.rpc.chain.getBlockHash(${height}): ${hash}`); + return hesh; } async getBlockTime(blockHash: TBlockHash): Promise {