Repository navigation
spec(mempool/dog): Add spec of Flood gossip protocol - #4476
Conversation
+ spells
…ename network.qnt to p2p.qnt
…t sender to disable a route
|
Regarding Quint <-> markdown, we have currently two options and I'm happy to work on improving them or setting up something new that would be useful for this kind of thing.
|
|
Thanks @bugarela! I like your literate spec example and I will give it a try. I couldn't find the qnt files it imports (hashes, tree, etc.). Where are those? And, do you keep the generated quint file somewhere in the repo? I tried |
This is all under a private repo for now, we only sent that
Yes, it only considers docstrings, which in Quint are triple-slashed comments before top level definitions/modules (copied from rust) /// foo is bla bla
val foo = 1
/// my def is cool
pure def f(x) = {
// This comment cannot be triple slash as it does not come before a top-level definition
x + 1
} |
|
I changed the Quint files for Markdown files with Quint code snippets. I think this format is much better. @bugarela check out how I structured all the Quint code at the end of the md files using macros. In this way I don't have to insert line breaks in html comments and as a result the md file is much cleaner. Also, indentation is not lost on the generated Quint file. |
|
I considered using that! I like how it solves indentation, but I don't like not having a line between each definition. If I were to use this format, I'd still keep my line break comments 😅 |
This renders the code super hard to read indeed. |
|
Obviously line breaks between definitions is better, and even some comments would help when reading the code, but the quint code in this spec is not to read, now that we have the markdown files. I hope by the time we need to expand the specs with tests, models, etc. (not planned for the moment) there will be a |
Ok, I would say we merge this PR as it is, but can you add this follow-up work to the existing issue or a new one? |
Solves #4318 Based on #4476 [README.md](https://github.com/cometbft/cometbft/tree/hvanz/dog-spec-4318/spec/mempool/gossip) --------- Co-authored-by: Andy Nogueira <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Contributes to cometbft#4318 The DOG spec is based on Flood's spec (cometbft#4477) [README.md](https://github.com/cometbft/cometbft/tree/hvanz/flood-spec-4318/spec/mempool/gossip/) --------- Co-authored-by: Andy Nogueira <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Solves cometbft#4318 Based on cometbft#4476 [README.md](https://github.com/cometbft/cometbft/tree/hvanz/dog-spec-4318/spec/mempool/gossip) --------- Co-authored-by: Andy Nogueira <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Contributes to cometbft#4318 The DOG spec is based on Flood's spec (cometbft#4477) [README.md](https://github.com/cometbft/cometbft/tree/hvanz/flood-spec-4318/spec/mempool/gossip/) --------- Co-authored-by: Andy Nogueira <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Solves cometbft#4318 Based on cometbft#4476 [README.md](https://github.com/cometbft/cometbft/tree/hvanz/dog-spec-4318/spec/mempool/gossip) --------- Co-authored-by: Andy Nogueira <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Contributes to #4318
The DOG spec is based on Flood's spec (#4477)
README.md