-
Notifications
You must be signed in to change notification settings - Fork 267
Conversation
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.
👍
CHANGELOG.md
Outdated
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
### Changed | |||
|
|||
- Increased timeout on n3h spawn and wait for `#P2P-READY#` message [#1276](https://github.com/holochain/holochain-rust/pull/1276). | |||
- Default N3H mode as set when spawned by the conductor got set to "REAL". [#1282](https://github.com/holochain/holochain-rust/pull/1282) |
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.
Could we take this opportunity to clarify internally and externally what these modes actually are? I personally don’t even know, in clear terms
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.
REAL is a big update to HACK mode.
HACK is going to dissapear shortly.
Consider REAL to be HACK mode's new name.
I needed to keep both around to make sure things didn't break.
REAL is in opposition to MOCK mode.
Mock mode is where you connect multiple local nodes to one n3h in order to simulate a network over IPC.
REAL is the normal n3h mode that gossips over the network.
Maybe renamed it to NORMAL?
Is that clear enough for you?
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.
Yep
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.
@Connoropolous @ddd-mtl can it be a small followup to do a rename and document this?
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.
document values now or later/followup?
conductor_api/src/config.rs
Outdated
/// MOCK is for using n3h only as a local hub that apps connect to directly, i.e. n3h will | ||
/// not connect to any other n3h instance. | ||
/// HACK is for trying out things and should only be used by n3h developers who know why | ||
/// they need this (i.e. testing new code). Might get removed soon. |
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.
@ddd-mtl, is this correct?
@Connoropolous, is this sufficient?
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.
Yes, except for HACK. I'd write:
/// HACK - Deprecated. Used by n3h developers only. Will get removed soon.
@thedavidmeister, @Connoropolous, @ddd-mtl, ok to merge? |
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.
I'm an approve and since Davids change request was only regarding documentation, which is now addressed, I propose you can dismiss the review and go ahead
I‘ve turned this into a WIP since REAL Mode seems to have problems still while HACK works. Let us merge this after REAL mode got fixed. |
@lucksus Agree on postponing this. |
Also, until we have core <> n3h integration tests we can only manually run apps to test integration as I did so far with holochain-basic-chat. But that is a possibility in the now. I stopped doing that for solving the issues in REAL mode because HACK mode seems to be working and sufficient for getting to working apps via the internet as soon as we solve the IPv6/zerotier issues.. |
@lucksus Yes, the other issue is n3h stores entries & metas without waiting for Core to validate it. This is not blocking so not a priority. |
PR summary
As discussed with @ddd-mtl, the n3h mode to use as default should be
REAL
now.changelog
Please check one of the following, relating to the CHANGELOG
- summary of change [PR#1234](https://github.com/holochain/holochain-rust/pull/1234)