Skip to content

Dynamic difficulty #1

@k7n2g

Description

@k7n2g

Hi been trying to get Dynamic difficulty to work can you show update for this or please point me in the right direction, have added a timestamp and nonce value,
let nonce = 0;

do {
  nonce++;
  timestamp = Date.now().getTime();
  this.hash.substr(-DIFFICULTY) = Block.adjustDifficulty({ genesisBlock: parentBlock, timestamp });
   &&
    this.hash === this._calculateHash())

( In File NewBlockHeader.js )

great job on site and explainer any help appreciated many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions