*RPCCache.data now returns NodeCache

This commit is contained in:
Derrick Hammer 2022-11-28 02:21:57 -05:00
parent 33b87a1075
commit ae10937bb8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@
"@lumeweb/cfg": "https://github.com/LumeWeb/bcfg.git",
"@types/node": "^18.7.16",
"express": "^4.18.1",
"loglevel": "^1.8.0"
"loglevel": "^1.8.0",
"node-cache": "^5.1.2"
}
}

View File

@ -1,4 +1,5 @@
import type EventEmitter from "events";
import type NodeCache from "node-cache";
export interface RPCRequest {
module: string;
@ -54,7 +55,7 @@ export declare class RPCServer extends EventEmitter {
public static hashQuery(query: RPCRequest): string;
}
export declare class RPCCache extends EventEmitter {
get data(): RPCCacheData;
get data(): NodeCache;
constructor(server: RPCServer);
public signResponse(item: RPCCacheItem): any;
public verifyResponse(pubkey: Buffer, item: RPCCacheItem): boolean | Buffer;