-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: Wrap dlc messages with 10101 messages #2473
feat: Wrap dlc messages with 10101 messages #2473
Conversation
096dd96
to
b2bc8f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Large but straightforward diff. LGTM!
I know you wanted to talk about something, so maybe I've missed something in my review.
The only question I have is if this PR is backwards-compatible. This definitely looks like a breaking change to me, but I was wondering if we have to migrate anything at the database level, since we have a dlc_messages
table. I guess not, since the PR passes CI.
I think we could label the 2nd commit as a refactor
. Also, since we've been using conventional commits for a while, we could go a bit further with the commit message e.g.
refactor!: Wrap DLC messages with TenTenOneMessages
This is primarily a refactoring, moving the DLC message handler from the `rust-dlc` dependency to 10101, allowing us in following steps to enrich and adapt protocol messages with 10101 meta data.
BREAKING CHANGE: The format of the messages we send over the wire has changed.
} | ||
|
||
impl TenTenOneMessage { | ||
pub fn get_reference_id(&self) -> Option<ReferenceId> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤡 Eventually we can actually move the reference ID onto the TenTenOneMessage
.
This is primarily a refactoring, moving the DLC message handler from the `rust-dlc` dependency to 10101, allowing us in following steps to enrich and adapt protocol messages with 10101 metadata. BREAKING CHANGE: The format of the messages we send over the wire has changed.
b2bc8f2
to
1ff6dcb
Compare
This is primarily a refactoring, moving the dlc message handler from the
rust-dlc
dependency to 10101, allowing us in following steps to enrich and adapt protocol messages with 10101 meta data.I figured I already open a PR for this change, before adapting the messages with 10101 meta data. My aim is to create custom messages for 10101 custom flows
fixes #2380
fixes #2013