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

Restart transfer after transmitter off #70

Merged
merged 3 commits into from
Jun 28, 2023

Conversation

plauche
Copy link
Collaborator

@plauche plauche commented Jun 8, 2023

Changed

  • Modifies the response to ResumeTransmitDag to start with requesting missing blocks from current window. Also addresses the scenario where the transmitter has restarted or has no session for the dag by iterating through windows to find the latest window with missing blocks.

// Find a reasonable target address to respond to by either using our radio_address
// or using the sender_addr if no radio address is set
let target_addr = if let Some(radio_address) = &self.radio_address {
radio_address.to_owned()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for still being on basic questions - under what cases is radio_address Some vs. None?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see - it's a passthrough of a configuration point, and None means I didn't write it in my config file.

So if someone asks me to transmit a thing, I'll always send it to the configured point if one is configured, but if not I'll send it to the address that asked for it to be sent?

I think that makes sense. But don't a lot of these requests have a target address as a parameter? Does that take priority?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right that many of the requests do take a target address as a parameter. The radio address is mainly there to support responses to requests which don't take a target address, but in reality (for this specific demo) it is generally the correct address to send responses to.

The main caveat here is when using the controller and when the radio_address is set...but both in actual testing and local testing we've had access to the myceli logs, which has allowed us access to any response information that was needed.

@plauche plauche marked this pull request as ready for review June 9, 2023 16:52
@John-LittleBearLabs John-LittleBearLabs merged commit 51804fc into main Jun 28, 2023
@John-LittleBearLabs John-LittleBearLabs deleted the resume-transfer-after-transmitter-off branch June 28, 2023 13:29
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.

2 participants