Skip to content
Snippets Groups Projects
Commit 1a2726c7 authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] #58 fix package api.ws2p after rebase

parent 4805d0b6
No related branches found
No related tags found
No related merge requests found
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Authors:
# Caner Candan <caner@candan.fr>, http://caner.candan.fr
# Inso <insomniak.fr at gmail.com>
import logging
from . import network, requests
__all__ = ["network", "requests"]
PROTOCOL_VERSION = 1
logger = logging.getLogger("duniter")
import json import json
import re import re
from typing import Optional
from duniterpy.helpers import get_ws2p_challenge
from duniterpy.api.bma.blockchain import BLOCK_SCHEMA, BLOCKS_SCHEMA from duniterpy.api.bma.blockchain import BLOCK_SCHEMA, BLOCKS_SCHEMA
ERROR_RESPONSE_SCHEMA = { ERROR_RESPONSE_SCHEMA = {
...@@ -96,7 +93,7 @@ REQUIREMENTS_SCHEMA = { ...@@ -96,7 +93,7 @@ REQUIREMENTS_SCHEMA = {
}, },
"pendingCerts": { "pendingCerts": {
"type": "array", "type": "array",
"items" : { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
"block": {"type": "number"}, "block": {"type": "number"},
...@@ -118,7 +115,7 @@ REQUIREMENTS_SCHEMA = { ...@@ -118,7 +115,7 @@ REQUIREMENTS_SCHEMA = {
}, },
"pendingMemberships": { "pendingMemberships": {
"type": "array", "type": "array",
"items" : { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
"block": {"type": "string"}, "block": {"type": "string"},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment