*Update force to bypassCache

This commit is contained in:
Derrick Hammer 2022-08-18 19:10:07 -04:00
parent ef62888c31
commit d7b0c7d4de
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 8 additions and 8 deletions

View File

@ -68,14 +68,14 @@ export default class RpcNetwork {
return this._ready;
}
private _force: boolean = false;
private _bypassCache: boolean = false;
get force(): boolean {
return this._force;
get bypassCache(): boolean {
return this._bypassCache;
}
set force(value: boolean) {
this._force = value;
set bypassCache(value: boolean) {
this._bypassCache = value;
}
public addRelay(pubkey: string): void {
@ -102,13 +102,13 @@ export default class RpcNetwork {
query: string,
chain: string,
data: object | any[] = {},
force: boolean = false
bypassCache: boolean = false
): RpcQuery {
return new RpcQuery(this, {
query,
chain,
data,
force: force || this._force,
bypassCache: bypassCache || this._bypassCache,
});
}
}

View File

@ -1,5 +1,5 @@
export interface RPCRequest {
force: boolean;
bypassCache: boolean;
chain: string;
query: string;
data: any;