Skip to content

Commit

Permalink
Fix accepting own prepare request (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsolman authored and erikzhang committed Feb 21, 2019
1 parent 2c56c07 commit 2311524
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions neo/Consensus/ConsensusContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,6 @@ private static ulong GetNonce()

public bool VerifyRequest()
{
if (!State.HasFlag(ConsensusState.RequestReceived))
return false;
if (!Blockchain.GetConsensusAddress(Snapshot.GetValidators(Transactions.Values).ToArray()).Equals(NextConsensus))
return false;
Transaction minerTx = Transactions.Values.FirstOrDefault(p => p.Type == TransactionType.MinerTransaction);
Expand Down

0 comments on commit 2311524

Please sign in to comment.