Adjust LRU historic size (clarify isCachable flag) (#4419)

This commit is contained in:
Jaco
2022-01-06 09:31:13 +02:00
committed by GitHub
parent 3a6c4a524a
commit 392d447b99
4 changed files with 14 additions and 1 deletions
+2
View File
@@ -204,6 +204,8 @@ export class RpcCore {
? await this.#getBlockRegistry(u8aToU8a(blockHash))
: { registry: this.#registryDefault };
const params = this._formatInputs(registry, null, def, values);
// only cache .at(<blockHash>) queries, e.g. where valid blockHash was supplied
const result = await this.provider.send<AnyJson>(rpcName, params.map((p) => p.toJSON()), !!blockHash);
return this._formatResult(isScale, registry, blockHash, method, def, params, result);