-
Notifications
You must be signed in to change notification settings - Fork 30
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/blocktxn #154
feat/blocktxn #154
Conversation
this code is for |
@guha-rahul, @bloomingpeach is right, you confused both payload |
@@ -98,8 +101,11 @@ pub const Message = union(MessageTypes) { | |||
.filteradd => |*m| m.deinit(allocator), | |||
.getdata => |*m| m.deinit(allocator), | |||
.cmpctblock => |*m| m.deinit(allocator), | |||
.sendheaders => {}, | |||
.filterload => {}, |
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.
it can be removed, because managed in the else.
const serialized = try msg.genericSerialize(test_allocator); | ||
defer test_allocator.free(serialized); | ||
|
||
const deserialized = try BlockTxnMessage.genericDeserializeSlice(test_allocator, serialized); |
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.
you have to use deserialize from BlockTxnMessage not the generic one
@guha-rahul I'm closing this PR as the project is put in hold. I will still pay you for the work done on OD tho. |
addresses #102