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;