Skip to content

Commit

Permalink
Reset Block reference when consensus context is initialized after blo…
Browse files Browse the repository at this point in the history
…ck persist. (#608)
  • Loading branch information
jsolman authored and vncoelho committed Feb 25, 2019
1 parent 06dc6b9 commit 5d5046c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions neo/Consensus/ConsensusContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ public void Reset(byte viewNumber)
{
if (viewNumber == 0)
{
Block = null;
Snapshot?.Dispose();
Snapshot = Blockchain.Singleton.GetSnapshot();
PrevHash = Snapshot.CurrentBlockHash;
Expand Down

0 comments on commit 5d5046c

Please sign in to comment.