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

Commit

Permalink
Synchronize getEncoded() to prevent race conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
ESchouten committed Mar 27, 2019
1 parent a56e562 commit be80cf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public byte[] getEncodedRaw() {
return rlpRaw;
}

public byte[] getEncoded() {
public synchronized byte[] getEncoded() {

if (rlpEncoded != null) return rlpEncoded;

Expand Down

0 comments on commit be80cf8

Please sign in to comment.