diff options
author | Vehorny <153144728+vehorny@users.noreply.github.com> | 2023-12-07 02:13:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 02:13:58 +0100 |
commit | 682fd8bc588df7d71476420f7bc9ed1cbacabd05 (patch) | |
tree | 45751c9c60ad02c4ed57cfff4a474ad0de40d4fc /bip-0060.mediawiki | |
parent | e918b50731397872ad2922a1b08a5a4cd1d6d546 (diff) |
Update bip-0060.mediawiki
Diffstat (limited to 'bip-0060.mediawiki')
-rw-r--r-- | bip-0060.mediawiki | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bip-0060.mediawiki b/bip-0060.mediawiki index 8e9f289..626a039 100644 --- a/bip-0060.mediawiki +++ b/bip-0060.mediawiki @@ -23,14 +23,14 @@ The implementation is problematic because the RelayTransactions flag is an optio One property of Bitcoin messages is their fixed number of fields. This keeps the format simple and easily understood. Adding optional fields to messages will cause deserialisation issues when other fields come after the optional one. -As an example, the length of version messages might be checked to ensure the byte stream is consistent. With optional fields, this checking is no longer possible. This is desirable to check for consistency inside internal deserialization code, and proper formatting of version messages originating from other nodes. In the future with diversification of the Bitcoin network, it will become desirable to enforce this kind of strict adherance to standard messages with field length compliance with every protocol version. +As an example, the length of version messages might be checked to ensure the byte stream is consistent. With optional fields, this checking is no longer possible. This is desirable to check for consistency inside internal deserialization code, and proper formatting of version messages originating from other nodes. In the future with diversification of the Bitcoin network, it will become desirable to enforce this kind of strict adherence to standard messages with field length compliance with every protocol version. Another property of fixed-length field messages is the ability to pass stream operators around for deserialization. This property is also lost, as now the deserialisation code must know the remaining length of bytes to parse. The parser now requires an additional piece of information (remaining size of the stream) for parsing instead of being a dumb reader. ==Specification== === version === -When a node creates an outgoing connection, it will immediately advertise its version. The remote node will respond with its version. No futher communication is possible until both peers have exchanged their version. +When a node creates an outgoing connection, it will immediately advertise its version. The remote node will respond with its version. No further communication is possible until both peers have exchanged their version. Payload: |