mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-30 03:21:23 +00:00
NetworkParameters: Make double-checked locking on defaultSerializer safe with volatile keyword.
This commit is contained in:
committed by
Andreas Schildbach
parent
9d1cff1de1
commit
be40b7a3e5
@@ -107,7 +107,7 @@ public abstract class NetworkParameters {
|
||||
protected int[] addrSeeds;
|
||||
protected HttpDiscovery.Details[] httpSeeds = {};
|
||||
protected Map<Integer, Sha256Hash> checkpoints = new HashMap<>();
|
||||
protected transient MessageSerializer defaultSerializer = null;
|
||||
protected volatile transient MessageSerializer defaultSerializer = null;
|
||||
|
||||
protected NetworkParameters() {
|
||||
alertSigningKey = SATOSHI_KEY;
|
||||
|
Reference in New Issue
Block a user