Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Tx file propagation #58

Merged
merged 16 commits into from
Jan 25, 2024
Merged

Tx file propagation #58

merged 16 commits into from
Jan 25, 2024

Conversation

musitdev
Copy link
Contributor

Add Deploy Tx prover and image file propagation among all nodes.

Does a Run Tx can contain a download file? I'm not sure, it works in this case because of the path. The download manager server its file from the image directory.

I correct an issue with the Tx propagation. The Tx wasn't processed the same way if it came from RPC or p2p. The correction is hard coded to avoid to add another Mutex.

@musitdev musitdev requested a review from tuommaki January 24, 2024 13:58
Copy link
Contributor

@tuommaki tuommaki left a comment

Choose a reason for hiding this comment

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

Check the default value of P2P discovery address. Was that intentional?

Otherwise, minor nitpicks/suggestions; in general LGTM 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd maybe drop this from the repo & add a .gitignore entry for localkey.pki or *.pki.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes good idea I add it. I didn't see I've added it.

crates/cli/src/keyfile.rs Outdated Show resolved Hide resolved
#[arg(
long,
long_help = "",
env = "GEVULOT_P2P_DISCOVERY_ADDR",
default_value = "34.88.251.176:9999"
)]
#[arg(long, long_help = "", env = "GEVULOT_P2P_DISCOVERY_ADDR")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why drop the default value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To manage the case the node start without connecting, sort of primary bootstraper. In this case, you specify nothing and the node didn't try to connect.

crates/node/src/main.rs Outdated Show resolved Hide resolved
crates/node/src/main.rs Outdated Show resolved Hide resolved
crates/node/src/networking/download_manager.rs Outdated Show resolved Hide resolved
crates/node/src/networking/download_manager.rs Outdated Show resolved Hide resolved
crates/node/src/networking/mod.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@tuommaki tuommaki left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@tuommaki
Copy link
Contributor

Folding all PRs for operator onboarding 🙂

@tuommaki tuommaki merged commit 2cb71b6 into main Jan 25, 2024
4 checks passed
@tuommaki tuommaki deleted the tx_file_propagation branch January 25, 2024 07:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants