UNPKG

godprotocol

Version:
18 lines (13 loc) 331 B
class Block { constructor(meta, chain) { this.content = meta.content; this.chain = chain; this.index = chain.blocks.length; } sync = async () => { this.address = `${this.chain.physical_address}:${this.index}`; await this.generate_hash(); }; generate_hash = async () => {}; } export default Block;