]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add note in CONTRIBUTING.md that some structs need prefix/suffixes
authorMatt Corallo <git@bluematt.me>
Thu, 20 May 2021 20:09:29 +0000 (20:09 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 24 May 2021 22:25:04 +0000 (22:25 +0000)
CONTRIBUTING.md

index 9ddd792b238c57dae399b19d0d1a7abf86e12181..189f2b8777920a8a762869b456a4b6c60489fcc5 100644 (file)
@@ -113,6 +113,13 @@ rustup component add clippy
 cargo clippy
 ```
 
+Significant structures which users serialize and store should generally always be prefixed with
+`write_ver_prefix!()`/`read_ver_prefix!()` calls, and suffixed with
+`write_tlv_fields!()`/`read_tlv_fields!()` calls.
+
+Updates to the serialized format which has implications for backwards or forwards compatibility
+must be included in release notes.
+
 Security
 --------