Unsupported Error when request server stream (#772)

Fixes #773
This commit is contained in:
cyan317
2023-07-14 14:44:40 +01:00
committed by GitHub
parent 4fd6d51d21
commit b83d7478ef
3 changed files with 22 additions and 1 deletions

View File

@@ -163,7 +163,8 @@ CustomValidator SubscribeStreamValidator =
static std::unordered_set<std::string> const validStreams = {
"ledger", "transactions", "transactions_proposed", "book_changes", "manifests", "validations"};
static std::unordered_set<std::string> const reportingNotSupportStreams = {"peer_status", "consensus"};
static std::unordered_set<std::string> const reportingNotSupportStreams = {
"peer_status", "consensus", "server"};
for (auto const& v : value.as_array())
{
if (!v.is_string())