}
/**
- * Update cache from raw block data. Suitable for offline use.
- *
- * @param {number} index - Account number
- * @param {object} block - JSON-formatted block data
- */
+ * Update frontier block cached in device memory from raw block data. Suitable
+ * for offline use.
+ *
+ * @param {number} index - Account number
+ * @param {object} block - JSON-formatted block data
+ */
static async updateCache (index: number, block: Block): Promise<LedgerResponse>
/**
- * Update cache from a block hash by calling out to a node. Suitable for online
- * use only.
- *
- * @param {number} index - Account number
- * @param {string} hash - Hexadecimal block hash
- * @param {Rpc} rpc - Rpc class object with a node URL
- */
+ * Update frontier block cached in device memory from a block hash by calling
+ * out to a node. Suitable for online use only.
+ *
+ * @param {number} index - Account number
+ * @param {string} hash - Hexadecimal block hash
+ * @param {Rpc} rpc - Rpc class object with a node URL
+ */
static async updateCache (index: number, hash: string, rpc: Rpc): Promise<LedgerResponse>
static async updateCache (index: number, input: any, node?: Rpc): Promise<LedgerResponse> {
if (typeof input === 'string' && node instanceof Rpc) {