Skip to content

Commit

Permalink
can mine
Browse files Browse the repository at this point in the history
  • Loading branch information
tkstanczak committed Jun 10, 2019
1 parent 17ddba1 commit b0fe283
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async Task Can_mine()

Block block = new Block(header);
EthashSealer ethashSealer = new EthashSealer(new Ethash(LimboLogs.Instance), LimboLogs.Instance);
await ethashSealer.MineAsync(new CancellationTokenSource(TimeSpan.FromSeconds(60)).Token, block, validNonce - 3);
await ethashSealer.MineAsync(new CancellationTokenSource(TimeSpan.FromSeconds(600)).Token, block, validNonce - 3);

Assert.AreEqual(validNonce, block.Header.Nonce);
Assert.AreEqual(new Keccak("0x52b96cf62447129c6bd81f835721ee145b948ae3b05ef6eae454cbf69a5bc05d"), block.Header.MixHash);
Expand Down

0 comments on commit b0fe283

Please sign in to comment.