mirror of
https://github.com/hackku21/loc-chain-backend.git
synced 2024-10-27 20:34:03 +00:00
Comment
This commit is contained in:
parent
a3c60a1951
commit
71b4fefef7
@ -26,6 +26,9 @@ export class Blockchain extends Controller {
|
|||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine whether the current blockchain is valid.
|
||||||
|
*/
|
||||||
public async validate() {
|
public async validate() {
|
||||||
const blocks = (await this.blockchain.read()).map(x => new Block(x))
|
const blocks = (await this.blockchain.read()).map(x => new Block(x))
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user