Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix(forking): Make sure we use the same timestamp as the target… (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Oct 9, 2019
1 parent 51e635b commit b25eb01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/blockchain_double.js
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,9 @@ BlockchainDouble.prototype.processTransactionTrace = async function(hash, params
return callback(err);
}

// make sure we use the same timestamp as the target block
block.header.timestamp = targetBlock.header.timestamp;

for (var i = 0; i < targetBlock.transactions.length; i++) {
var tx = targetBlock.transactions[i];
block.transactions.push(tx);
Expand Down

0 comments on commit b25eb01

Please sign in to comment.