Skip to content

Commit

Permalink
Updating Unknown to Policy Fail (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
vncoelho authored and igormcoelho committed Jan 7, 2019
1 parent 40ec6b2 commit c16475e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion neo/Ledger/Blockchain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ private RelayResultReason OnNewTransaction(Transaction transaction)
if (!transaction.Verify(currentSnapshot, GetMemoryPool()))
return RelayResultReason.Invalid;
if (!Plugin.CheckPolicy(transaction))
return RelayResultReason.Unknown;
return RelayResultReason.PolicyFail;

if (!mem_pool.TryAdd(transaction.Hash, transaction))
return RelayResultReason.OutOfMemory;
Expand Down
1 change: 1 addition & 0 deletions neo/Ledger/RelayResultReason.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public enum RelayResultReason : byte
OutOfMemory,
UnableToVerify,
Invalid,
PolicyFail,
Unknown
}
}

0 comments on commit c16475e

Please sign in to comment.