Make jsonrpc attribute non-mandatory
MODIFY
WalletWasabi.Gui/Rpc/JsonRpcRequest.cs
WalletWasabi.Gui/Rpc/JsonRpcRequest.cs
@@ -39,7 +39,7 @@ namespace WalletWasabi.Gui.Rpc
/// <summary>
/// Gets the version of the JSON-RPC protocol. MUST be exactly "2.0".
/// </summary>
- [JsonProperty("jsonrpc", Required = Required.Always)]
+ [JsonProperty("jsonrpc", Required = Required.Default)]
public string JsonRPC { get; }
/// <summary>

MODIFY
WalletWasabi.Tests/RpcTests.cs
WalletWasabi.Tests/RpcTests.cs
@@ -23,7 +23,7 @@ namespace WalletWasabi.Tests
{
"Invalid (missing jsonrpc) request",
Request("1", "substract", 42, 23).Replace("\"jsonrpc\":\"2.0\",", ""),
- Error(null, -32700, "Parse error")
+ Ok("1", 19)
},
new[]
{

Make jsonrpc attribute non-mandatory