4.5.1 (#3390)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api",
|
||||
"version": "4.4.2-7",
|
||||
"version": "4.5.0",
|
||||
"type": "module",
|
||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||
"main": "index.js",
|
||||
@@ -17,13 +17,13 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/api-derive": "4.4.2-7",
|
||||
"@polkadot/api-derive": "4.5.0",
|
||||
"@polkadot/keyring": "^6.1.1",
|
||||
"@polkadot/metadata": "4.4.2-7",
|
||||
"@polkadot/rpc-core": "4.4.2-7",
|
||||
"@polkadot/rpc-provider": "4.4.2-7",
|
||||
"@polkadot/types": "4.4.2-7",
|
||||
"@polkadot/types-known": "4.4.2-7",
|
||||
"@polkadot/metadata": "4.5.0",
|
||||
"@polkadot/rpc-core": "4.5.0",
|
||||
"@polkadot/rpc-provider": "4.5.0",
|
||||
"@polkadot/types": "4.5.0",
|
||||
"@polkadot/types-known": "4.5.0",
|
||||
"@polkadot/util": "^6.1.1",
|
||||
"@polkadot/util-crypto": "^6.1.1",
|
||||
"@polkadot/x-rxjs": "^6.1.1",
|
||||
|
||||
@@ -21,7 +21,7 @@ import { map, switchMap } from '@polkadot/x-rxjs/operators';
|
||||
import { detectedCapabilities } from './capabilities';
|
||||
import { Decorate } from './Decorate';
|
||||
|
||||
const KEEPALIVE_INTERVAL = 15000;
|
||||
const KEEPALIVE_INTERVAL = 10000;
|
||||
const DEFAULT_BLOCKNUMBER = { unwrap: () => BN_ZERO };
|
||||
|
||||
const l = logger('api/init');
|
||||
@@ -321,7 +321,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
}
|
||||
|
||||
this.#healthTimer = setInterval((): void => {
|
||||
this._rpcCore.system.health().toPromise().catch(() => null);
|
||||
this._rpcCore.system.health().toPromise().catch((error) => l.warn(`Health keepalive check failed: ${(error as Error).message}`));
|
||||
}, KEEPALIVE_INTERVAL);
|
||||
} catch (_error) {
|
||||
const error = new Error(`FATAL: Unable to initialize the API: ${(_error as Error).message}`);
|
||||
|
||||
Reference in New Issue
Block a user