From d7b0c7d4dee6e7f244802993e288104a1e1cb984 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 18 Aug 2022 19:10:07 -0400 Subject: [PATCH] *Update force to bypassCache --- src/rpcNetwork.ts | 14 +++++++------- src/types.ts | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/rpcNetwork.ts b/src/rpcNetwork.ts index 122414c..e740140 100644 --- a/src/rpcNetwork.ts +++ b/src/rpcNetwork.ts @@ -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, }); } } diff --git a/src/types.ts b/src/types.ts index 703c9dc..6449ece 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,5 @@ export interface RPCRequest { - force: boolean; + bypassCache: boolean; chain: string; query: string; data: any;