From 188f557927d64f6efbb3d9c1f79e4927b20720fa Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sat, 18 Jan 2020 20:53:54 -0500 Subject: [PATCH] added Blocked metadata to result --- v2/proto/result.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/v2/proto/result.proto b/v2/proto/result.proto index ffafab3..d0b9e8b 100644 --- a/v2/proto/result.proto +++ b/v2/proto/result.proto @@ -7,6 +7,8 @@ message Outputs { repeated Output extra_txos = 2; uint32 total = 3; uint32 offset = 4; + repeated Blocked blocked = 5; + uint32 blocked_total = 6; } message Output { @@ -45,7 +47,18 @@ message Error { UNKNOWN_CODE = 0; NOT_FOUND = 1; INVALID = 2; + BLOCKED = 3; } Code code = 1; string text = 2; + Blocked blocked = 3; +} + +message Blocked { + uint32 count = 1; + oneof reason { + bytes reposted_in_channel = 2; + bytes in_channel = 3; + string has_tag = 4; + } }