diff options
| author | Ross Nicoll <[email protected]> | 2018-01-10 14:20:31 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2018-09-19 21:09:16 +0100 |
| commit | 4d5e53e7b21c8c2301dc45fc5ab6a3630ae20bca (patch) | |
| tree | 2f23bcedfda1892d13f9387978fd67a5fcd50c63 /src | |
| parent | Bring 1.14 fees in line with 1.10 (#1425) (diff) | |
| download | discoin-4d5e53e7b21c8c2301dc45fc5ab6a3630ae20bca.tar.xz discoin-4d5e53e7b21c8c2301dc45fc5ab6a3630ae20bca.zip | |
Initialise left/right consensus branches to null (#1435)
Strictly speaking the left/right consensus branches haven't been initialised so contain random values.
Most of the time these happen to be null, but sometimes causes client crashes (at least it does in 1.15, but fixing in earlier versions to be sure).
Diffstat (limited to 'src')
| -rw-r--r-- | src/consensus/params.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h index 98c744149..250441b2e 100644 --- a/src/consensus/params.h +++ b/src/consensus/params.h @@ -82,8 +82,8 @@ struct Params { /** Height-aware consensus parameters */ uint32_t nHeightEffective; // When these parameters come into use - struct Params *pLeft; // Left hand branch - struct Params *pRight; // Right hand branch + struct Params *pLeft = nullptr; // Left hand branch + struct Params *pRight = nullptr; // Right hand branch const Consensus::Params *GetConsensus(uint32_t nTargetHeight) const; }; } // namespace Consensus |