1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-05-12 12:03:29 +00:00

- Replace UNKNOWN_TYPE with UNKNOWN_MESSAGE_TYPE

This commit is contained in:
Matt David 2016-07-28 15:13:32 -07:00
parent f7e08aa1a7
commit 6559767e03
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ message InvoiceRequest {
This enum is used in the newly defined [[#ProtocolMessage|ProtocolMessage]] and [[#EncryptedProtocolMessage|EncryptedProtocolMessage]] messages to define the serialized message type. The '''ProtocolMessageType''' enum is defined in an extensible way to allow for new message type additions to the Payment Protocol. This enum is used in the newly defined [[#ProtocolMessage|ProtocolMessage]] and [[#EncryptedProtocolMessage|EncryptedProtocolMessage]] messages to define the serialized message type. The '''ProtocolMessageType''' enum is defined in an extensible way to allow for new message type additions to the Payment Protocol.
<pre> <pre>
enum ProtocolMessageType { enum ProtocolMessageType {
UNKNOWN_TYPE = 0; UNKNOWN_MESSAGE_TYPE = 0;
INVOICE_REQUEST = 1; INVOICE_REQUEST = 1;
PAYMENT_REQUEST = 2; PAYMENT_REQUEST = 2;
PAYMENT = 3; PAYMENT = 3;

View File

@ -57,7 +57,7 @@ message InvoiceRequest {
} }
enum ProtocolMessageType { enum ProtocolMessageType {
UNKNOWN_TYPE = 0; UNKNOWN_MESSAGE_TYPE = 0;
INVOICE_REQUEST = 1; INVOICE_REQUEST = 1;
PAYMENT_REQUEST = 2; PAYMENT_REQUEST = 2;
PAYMENT = 3; PAYMENT = 3;