*add support for bypassCache in wisdom query

This commit is contained in:
Derrick Hammer 2022-12-04 05:39:09 -05:00
parent 5e1c52352e
commit fc63e98557
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 14 additions and 0 deletions

View File

@ -60,6 +60,20 @@ export default class WisdomRpcQuery extends RpcQueryBase {
throw new Error(ERR_NO_RELAYS); throw new Error(ERR_NO_RELAYS);
} }
if (this._query.bypassCache) {
delete this._query.bypassCache;
const clearCacheQuery = this._network.clearCacheQuery(
relays,
this._query.method,
this._query.module,
this._query.data
);
await clearCacheQuery.result;
}
if ("bypassCache" in this._query) {
delete this._query.bypassCache;
}
return this.queryRpc(activeRelay, { return this.queryRpc(activeRelay, {
module: "rpc", module: "rpc",
method: "broadcast_request", method: "broadcast_request",