From 36c3a605bda43daac0a17c173c18ceea8132f064 Mon Sep 17 00:00:00 2001 From: Afroz quraishi <43930348+Afroz78692@users.noreply.github.com> Date: Fri, 11 Oct 2019 02:44:20 +0530 Subject: [PATCH] fgf --- Block.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Block.js b/Block.js index 760f5e1..794c1ed 100644 --- a/Block.js +++ b/Block.js @@ -1,14 +1,4 @@ -class Block { - constructor (index, previousHash, timestamp, data, hash, nonce) { - this.index = index; - this.previousHash = previousHash; - this.timestamp = timestamp; - this.data = data; - this.hash = hash; - this.nonce = nonce; - } - - static get genesis() { +enesis() { return new Block( 0, "0", @@ -20,4 +10,4 @@ class Block { } } -module.exports = Block; \ No newline at end of file +module.exports = Block;