Skip to content

Commit

Permalink
Policy filter GetRelayResult message (neo-project#543)
Browse files Browse the repository at this point in the history
* Policy filter GetRelayResult message

* adding fixed numbering for return codes

* Removed enum fixed values
  • Loading branch information
vncoelho authored and rodoufu committed Mar 3, 2019
1 parent 2c440be commit 5c2b39b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions neo/Network/RPC/RpcServer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
Expand Down Expand Up @@ -127,8 +127,10 @@ private static JObject GetRelayResult(RelayResultReason reason)
throw new RpcException(-503, "The block cannot be validated.");
case RelayResultReason.Invalid:
throw new RpcException(-504, "Block or transaction validation failed.");
case RelayResultReason.PolicyFail:
throw new RpcException(-505, "One of the Policy filters failed.");
default:
throw new RpcException(-500, "Unkown error.");
throw new RpcException(-500, "Unknown error.");
}
}

Expand Down

0 comments on commit 5c2b39b

Please sign in to comment.