Published on: 2016-05-23T21:26:00+00:00
Pierre expresses his satisfaction with the newly implemented protocol and hopes that it will suit everyone. He shares that he was able to independently implement a toy version of the protocol and pass Rusty's scripted tests, indicating that there are no obvious issues. Pierre suggests that this could be the first step towards a Lightning Network non-regression test set. Rusty agrees with Pierre and mentions that eventually he would like to have some "canned conversations" to go with the BOLTs for testing against. Pierre then asks Rusty about the "nocommitwait" and why he makes it optional in his test. Rusty explains that it is simpler if you don't let yourself do multiple in-flight commits. This code ensures that only one set of outstanding changes is needed. Rusty then defines YA as "Yet Another." He found a good description on Wikipedia which states that among programmers, yet another is an idiomatic qualifier in the name of a computer program, organization, or event that is unoriginal.The author of the 02-wire-protocol.md draft has created a protocol simulator to test the draft and ensure its reasonableness. The simulator also generates timing diagrams as a bonus. The author concludes that we don't need acknowledgement numbers because the revocation reply provides everything necessary. The revocation reply is when incoming changes are added to the other side as "acked". The author states that this process seems to work well in all corner cases, and it's wire-optimal. For those interested in a layman's write-up, the author has provided one at https://medium.com/@rusty_lightning/lightning-inter-node-protocol-a-primer-c642816c8b8#.8skw6hfar. The full spec can be found on GitHub at https://github.com/rustyrussell/lightning-rfc/blob/master/bolts/02-wire-protocol.md, and tests are available at https://github.com/ElementsProject/lightning/blob/test-protocol/test/test_protocol.c and https://github.com/ElementsProject/lightning/tree/test-protocol/test/commits. Feedback is welcomed by the author, Rusty.
Updated on: 2023-07-31T19:00:36.721938+00:00