Commit 8059e5a0 authored by Hugo Trentesaux's avatar Hugo Trentesaux Committed by Éloïs

[ref] ws2pv2: remove accepted v1 messages

parent 7bc48c13
......@@ -717,16 +717,6 @@ peer_cards := see [definition of binary peer card](#peer-card-binary-format)
## WS2Pv2 Messages
### List of accepted v1 messages
Some WS2Pv1 messages are accepted within WS2Pv2 connections, here is the exhaustive list :
* document messages
* v1 requests
* responses to v1 requests
WARNING : Exception with the ABF api feature : In a WS2P connection between two nodes that both support ABF api feature, any WS2Pv1 message are rejected !
### REQUESTS
| data name | size in bytes | data type |
......@@ -937,14 +927,14 @@ HEAD v3 PEG grammar :
hexa_upper = @{ ASCII_DIGIT | 'A'..'F' }
base58 = { !("O" | "I" | "l") ~ ASCII_ALPHANUMERIC }
base64 = { ASCII_ALPHANUMERIC | "+" | "/" }
// Numbers rules
tens = @{ '1'..'9' ~ ASCII_DIGIT }
u8_hundreds = @{ ("2" ~ ('0'..'4' ~ ASCII_DIGIT | ('0'..'5'){2})) | ("1" ~ ASCII_DIGIT{2}) }
u8 = @{ u8_hundreds | tens | ASCII_DIGIT }
no_zero_u_int = @{ '1'..'9' ~ ASCII_DIGIT* }
u_int = @{ "0" | no_zero_u_int }
// Usefull types rules
currency = @{ ASCII_ALPHA ~ (ASCII_ALPHANUMERIC | "-" | "_"){,255} }
block_id = @{ u_int }
......@@ -952,7 +942,7 @@ HEAD v3 PEG grammar :
pubkey = @{ base58{43,44} }
blockstamp = ${ block_id ~ "-" ~ hash }
ed25519_sig = @{ base64{88} | (base64{87} ~ "=") | (base64{86} ~ "==") }
// HEADv3 rules
api_outgoing_conf = @{ u8 }
api_incoming_conf = @{ u8 }
......@@ -961,7 +951,7 @@ HEAD v3 PEG grammar :
software = @{ ASCII_ALPHA ~ ASCII_ALPHANUMERIC* }
soft_version = @{ ASCII_DIGIT ~ "." ~ ASCII_DIGIT ~ "." ~ ASCII_DIGIT ~ ("-" ~ ("a" | "b" | "rc") ~ ASCII_DIGIT ~ ("." ~ ASCII_DIGIT){0,2})? }
step = @{ u_int }
head_v3 = ${
"3:" ~ currency ~ ":" ~
api_outgoing_conf ~ ":" ~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment