MCPcopy Create free account
hub / github.com/Savjee/SavjeeCoin / constructor

Method constructor

src/blockchain.js:142–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140
141class Blockchain {
142 constructor() {
143 this.chain = [this.createGenesisBlock()];
144 this.difficulty = 2;
145 this.pendingTransactions = [];
146 this.miningReward = 100;
147 }
148
149 /**
150 * @returns {Block}

Callers

nothing calls this directly

Calls 1

createGenesisBlockMethod · 0.95

Tested by

no test coverage detected