Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Add sequence number to ledger entries #5

Closed
michielbdejong opened this issue Nov 11, 2016 · 2 comments
Closed

Add sequence number to ledger entries #5

michielbdejong opened this issue Nov 11, 2016 · 2 comments

Comments

@michielbdejong
Copy link
Contributor

that way, ledger integrity is not lost when messages are lost in transit. reject messages if the sequence number is not the next number expected.

@michielbdejong
Copy link
Contributor Author

also possibly need to include a hash, otherwise it gets confusing if a peer sends two different messages but with the same transactionId - which are you confirming then?

Maybe the initiator can send:

  • previous record's hash
  • this record's payload
  • this record's hash

And confirmer responds with:

  • this record's hash

@michielbdejong
Copy link
Contributor Author

michielbdejong commented Sep 13, 2018

the ledger now uses senderId+msgId as its unique id.

Messages can and should be repeated indefinitely until both sides have seen some message from the other side which makes that ledger entry final (committed).

When comparing two ledger entries, you can't tell which one came first if the senderId doesn't match, but you at least have a full ordering of entries initiated by one users, and ones initiated by the other user.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant