-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rfc(0017): revise since RFC #226
Conversation
fb4e33e
to
d4ebbe8
Compare
c9ed69e
to
a0ae3ab
Compare
- Use more precise description. - Add diagrams and remove codes. - Fix errors: * The timestamp is in the unit milliseconds but not seconds. * There are many errors where `<=` is expected but `<` is used or vise versa. * The Rust code base implementation has many gotchas and must be considered as the part of consensus.
Co-authored-by: busyforking <[email protected]>
Co-authored-by: busyforking <[email protected]>
Co-authored-by: busyforking <[email protected]>
Co-authored-by: busyforking <[email protected]>
05d449d
to
7a4abe4
Compare
I will submit an additional pull request with some modifications which will make it easier to read for native English speakers. First I have some questions.
|
The whole
The whole
Not a requirement of the RFC, but yes, in current node implementation, the tx is rejected immediately. |
Co-authored-by: busyforking <[email protected]>
I still do not understand what this is useful for. Right now is epoch 6083 index 698 length 1028. What is
|
Say you set
This RFC does not mention the wire encoding. In block and tx binary format encoded by Molecule, all integers are encoded using little-endian. In RPC Json format, all integers are encoded in hex. |
Is |
Yes, it's a notation to explain how three numbers are encoded in a single integer. The |
Sorry for making you repeat yourself, but I need to clarify Example: If I understand correctly, this has no mathematical usage. This means If this is all correct, then I would suggest against using The second question I have is about why the |
A CKB transaction could be co-authored by multiple users, e.g. in open transactions use case. In that case a user could set conditions on his/her inputs only. |
I have created a new pull request to @doitian's branch with my suggested edits. |
What's your suggestion? Using rational number notation can simplify the explanation because adding and comparison works for rational numbers just like integers.
Contracts may have conflict requirement on the since. For example, contract requires the since is at least 100 blocks, and another contract may require the since at least 1 epoch. |
The term "rational number" is indicating a single number. The field has three values that can be assembled and referred to as a single "rational number" if you want a human readable format. But these three numbers are encoded into a u64, which is also a single number. The notation These changes are reflected in my pull request. |
…to revise-since-rfc.
Revise Since RFC text.
This comment was marked as duplicate.
This comment was marked as duplicate.
The email took half a month to arrive at GitHub 😂 |
[PREVIEW]
<=
is expected but<
is used orvise versa.
considered as the part of consensus.
Actions: