This commit is contained in:
maciejhirsz
2018-07-14 11:31:55 +02:00
parent 5c8a159588
commit 4f3e72d506
+1 -1
View File
@@ -82,7 +82,7 @@ export default class Chain {
const { height, blockTimestamp } = node;
if (this.blockTimestamp) {
this.blockTimes[height * BLOCK_TIME_HISTORY] = blockTimestamp - this.blockTimestamp;
this.blockTimes[height % BLOCK_TIME_HISTORY] = blockTimestamp - this.blockTimestamp;
}
this.height = height;