Permalink
Browse files

lint

  • Loading branch information...
wanderer committed Feb 5, 2016
1 parent 2f55511 commit a0c2ca2daa8bff02927b45fa664576b48ce0f264
Showing with 3 additions and 2 deletions.
  1. +3 −2 benchmarks/random.js
View
@@ -1,4 +1,4 @@
//https://github.com/ethereum/wiki/wiki/Benchmarks
// https://github.com/ethereum/wiki/wiki/Benchmarks
'use strict'
const Trie = require('../')
const ethUtil = require('ethereumjs-util')
@@ -20,7 +20,7 @@ run(() => {
function run (cb) {
let i = 0
async.whilst(
() => {
() => {
i++
return i <= ROUNDS
},
@@ -32,6 +32,7 @@ function run (cb) {
let val = ethUtil.sha3(seed)
trie.put(seed, val, genRoot)
}
function genRoot () {
if (i % ERA_SIZE === 0) {
seed = trie.root

0 comments on commit a0c2ca2

Please sign in to comment.