Skip to content
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

Closed
wants to merge 5 commits into from
Closed

Conversation

guha-rahul
Copy link
Contributor

addresses #102

src/network/protocol/messages/blocktxn.zig Outdated Show resolved Hide resolved
src/network/protocol/messages/blocktxn.zig Outdated Show resolved Hide resolved
src/network/wire/lib.zig Outdated Show resolved Hide resolved
src/network/wire/lib.zig Outdated Show resolved Hide resolved
@bloomingpeach
Copy link
Contributor

this code is for GetBlockTxn not BlockTxn

@bloomingpeach
Copy link
Contributor

BlockTxn payload has Transaction field, not indexes
image

@tdelabro
Copy link
Collaborator

tdelabro commented Oct 4, 2024

@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 => {},
Copy link
Contributor

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);
Copy link
Contributor

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

@tdelabro
Copy link
Collaborator

tdelabro commented Oct 7, 2024

@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.

@tdelabro tdelabro closed this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants