Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
03409f61
Commit
03409f61
authored
4 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[lint] Use duplicating duniterpy.api.bma.network.PEERING_SCHEMA
parent
7185e8f1
No related branches found
No related tags found
2 merge requests
!128
Release 0.62.0
,
!123
#147: Support pylint v2.7.1 R0801 rule
Pipeline
#11090
waiting for manual action
Stage: checks
Stage: tests
Stage: release
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
duniterpy/api/bma/ws.py
+2
-12
2 additions, 12 deletions
duniterpy/api/bma/ws.py
with
2 additions
and
12 deletions
duniterpy/api/bma/ws.py
+
2
−
12
View file @
03409f61
...
...
@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import
logging
from
duniterpy.api.bma.blockchain
import
BLOCK_SCHEMA
from
duniterpy.api.bma.network
import
PEERING_SCHEMA
from
duniterpy.api.client
import
Client
,
WSConnection
logger
=
logging
.
getLogger
(
"
duniter/ws
"
)
...
...
@@ -25,18 +26,7 @@ logger = logging.getLogger("duniter/ws")
MODULE
=
"
ws
"
WS_BLOCK_SCHEMA
=
BLOCK_SCHEMA
WS_PEER_SCHEMA
=
{
"
type
"
:
"
object
"
,
"
properties
"
:
{
"
version
"
:
{
"
type
"
:
"
number
"
},
"
currency
"
:
{
"
type
"
:
"
string
"
},
"
pubkey
"
:
{
"
type
"
:
"
string
"
},
"
endpoints
"
:
{
"
type
"
:
"
array
"
,
"
items
"
:
{
"
type
"
:
"
string
"
}},
"
signature
"
:
{
"
type
"
:
"
string
"
},
},
"
required
"
:
[
"
version
"
,
"
currency
"
,
"
pubkey
"
,
"
endpoints
"
,
"
signature
"
],
}
WS_PEER_SCHEMA
=
PEERING_SCHEMA
async
def
block
(
client
:
Client
)
->
WSConnection
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment