Increase RPC-CORE default capacity (#6016)
This commit is contained in:
@@ -123,7 +123,7 @@ export class RpcCore {
|
||||
|
||||
// these are the base keys (i.e. part of jsonrpc)
|
||||
this.sections.push(...sectionNames);
|
||||
this.#storageCache = new LRUCache(DEFAULT_CAPACITY);
|
||||
this.#storageCache = new LRUCache(DEFAULT_CAPACITY * 10 * 10);
|
||||
// decorate all interfaces, defined and user on this instance
|
||||
this.addUserInterfaces(userRpc);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// cache space (depending on the historic queries this would vary, metadata
|
||||
// for Kusama/Polkadot/Substrate falls between 600-750K, 2x for estimate)
|
||||
|
||||
export const DEFAULT_CAPACITY = 64;
|
||||
export const DEFAULT_CAPACITY = 1024;
|
||||
|
||||
class LRUNode {
|
||||
readonly key: string;
|
||||
|
||||
Reference in New Issue
Block a user