-
Notifications
You must be signed in to change notification settings - Fork 40
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: publish to non-subscribed topic #933
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maqi
force-pushed
the
publish_to_non_subscribed_topic
branch
from
November 3, 2023 10:54
7789f9b
to
50ba226
Compare
maqi
force-pushed
the
publish_to_non_subscribed_topic
branch
2 times, most recently
from
November 3, 2023 12:02
8e74013
to
7fba5de
Compare
maqi
force-pushed
the
publish_to_non_subscribed_topic
branch
from
November 7, 2023 11:07
7fba5de
to
4831fb5
Compare
reviewpad
bot
added
Medium
Medium sized PR
and removed
Small
Pull request is small
labels
Nov 7, 2023
maqi
force-pushed
the
publish_to_non_subscribed_topic
branch
2 times, most recently
from
November 7, 2023 15:05
ccfdd4c
to
e381bb6
Compare
maqi
force-pushed
the
publish_to_non_subscribed_topic
branch
from
November 8, 2023 11:46
df0a573
to
dbad54a
Compare
Marking as DoNotMerge so we can assess this... Does it lower mem usage any? CPU? Would be good to know concretely what we get from this. |
maqi
force-pushed
the
publish_to_non_subscribed_topic
branch
3 times, most recently
from
November 14, 2023 10:26
7aa6193
to
f2a6ccc
Compare
bochaco
previously requested changes
Nov 14, 2023
maqi
force-pushed
the
publish_to_non_subscribed_topic
branch
from
November 16, 2023 09:50
f2a6ccc
to
9257008
Compare
maqi
force-pushed
the
publish_to_non_subscribed_topic
branch
from
November 28, 2023 14:25
9257008
to
973335e
Compare
reviewpad
bot
added
Small
Pull request is small
and removed
Medium
Medium sized PR
labels
Nov 28, 2023
maqi
force-pushed
the
publish_to_non_subscribed_topic
branch
2 times, most recently
from
November 29, 2023 11:51
067017f
to
9ae3b77
Compare
joshuef
approved these changes
Nov 29, 2023
maqi
force-pushed
the
publish_to_non_subscribed_topic
branch
from
November 29, 2023 13:44
70dca4a
to
b38c3c6
Compare
maqi
force-pushed
the
publish_to_non_subscribed_topic
branch
from
November 29, 2023 15:08
b38c3c6
to
4994dee
Compare
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Nov 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Summary generated by Reviewpad on 28 Nov 23 16:12 UTC
This pull request adds a new feature where most of the nodes do not subscribe to the "TRANSFER_NOTIFICATION" topic. The patch modifies several files including
sn_cli/src/subcommands/wallet.rs
,sn_node/src/lib.rs
,sn_node/src/node.rs
,sn_node/src/put_validation.rs
,sn_node/tests/nodes_rewards.rs
, andsn_node_rpc_client/src/main.rs
. The changes include renaming the constantTRANSFER_NOTIF_TOPIC
toROYALTY_TRANSFER_NOTIF_TOPIC
, updating the subscription to the new topic in thelisten_notifs_and_deposit
function, and handling messages for the new topic in theprocess_event
function. Additionally, the patch introduces a new constantFORWARDER_CHOOSING_FACTOR
which determines the number of nodes acting as forwarders for the subscription.