'use strict';
const MAX_BLOCK_COUNT = 9;
const Block = require('../types/block');
const Chain = require('../types/chain');
const genesis = require('../assets/genesis');
async function main () {
const chain = new Chain();
const origin = new Block(genesis);
await chain.append(origin);
for (let i = 0; i < MAX_BLOCK_COUNT; i++) {