@leofcoin/chain 1.4.19 → 1.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/chain.js +1 -1
package/package.json
CHANGED
package/src/chain.js
CHANGED
|
@@ -296,7 +296,7 @@ export default class Chain extends Contract {
|
|
|
296
296
|
const end = this.#blocks.length
|
|
297
297
|
const start = (this.#blocks.length - blocksSynced) - 1
|
|
298
298
|
await this.#loadBlocks(this.blocks.slice(start))
|
|
299
|
-
await this.#updateState(this.#blocks[this.#blocks.length - 1])
|
|
299
|
+
await this.#updateState(new BlockMessage(this.#blocks[this.#blocks.length - 1]))
|
|
300
300
|
this.#chainSyncing = false
|
|
301
301
|
}
|
|
302
302
|
}
|