Skip to content

Commit

Permalink
re-add worldstate copy to txpool
Browse files Browse the repository at this point in the history
Signed-off-by: garyschulte <[email protected]>
  • Loading branch information
garyschulte committed Feb 2, 2023
1 parent 6614a5b commit c4274fb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,13 @@ && strictReplayProtectionShouldBeEnforceLocally(chainHeadBlockHeader)
.getWorldStateArchive()
.getMutable(
chainHeadBlockHeader.getStateRoot(), chainHeadBlockHeader.getBlockHash(), false)
.map(
ws -> {
if (!ws.isPersistable()) {
return ws.copy();
}
return ws;
})
.orElseThrow()) {
final Account senderAccount = worldState.get(transaction.getSender());
return new ValidationResultAndAccount(
Expand Down

0 comments on commit c4274fb

Please sign in to comment.