]> git.codecow.com Git - libnemo.git/commitdiff
Documentation.
authorChris Duncan <chris@zoso.dev>
Sat, 16 May 2026 07:29:42 +0000 (00:29 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 16 May 2026 07:29:42 +0000 (00:29 -0700)
src/lib/ledger/index.ts

index aa1a1bdb63ca956d89dac044224f1f88e532b59a..0dd995015a032294deb0f30ee05a80748b27e9ad 100644 (file)
@@ -257,20 +257,21 @@ export class Ledger {
        }
 
        /**
-       * 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) {