-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix: market: Infer index provider topic from network name by default #8526
fix: market: Infer index provider topic from network name by default #8526
Conversation
7fe4213
to
1f7569d
Compare
Codecov Report
@@ Coverage Diff @@
## master #8526 +/- ##
==========================================
- Coverage 40.86% 40.75% -0.11%
==========================================
Files 686 686
Lines 75582 75587 +5
==========================================
- Hits 30883 30804 -79
- Misses 39374 39451 +77
- Partials 5325 5332 +7
|
34eb836
to
fbb57e8
Compare
Index provider integration uses a gossipsub topic to announce changes to the advertised content. The topic name was fixed to the default topic which is `/indexer/ingest/mainnet`. In the case of lotus, the gossipsub validators enforce a list of topics the instance is permitted to join by setting subscription filter option when `PubSub` instance is constructed via DI. Having the fixed topic name meant that any SP starting up a node on a network other than `mainnet` would have to override the default config to avoid the node crashing when index provider is enabled. Instead of a fixed default, the changes here infer the allowed indexer topic name from network name automatically if the topic configuration is left empty. Fixes filecoin-project#8510
fbb57e8
to
f273a44
Compare
@jennijuju there seems to be some flaky tests that I don't believe are failing because of the changes in this PR. I can't re-trigger the tests due to permissions. |
tested in devnet and works |
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 don't know this code well so maybe wait on another review to be sure, but LGTM
Related Issues
Fixes #8510
Proposed Changes
Instead of a fixed default, the changes here infer the allowed indexer
topic name from network name automatically if the topic configuration is
left empty.
Additional Info
Index provider integration uses a gossipsub topic to announce changes to
the advertised content. The topic name was fixed to the default topic
which is
/indexer/ingest/mainnet
.In the case of lotus, the gossipsub validators enforce a list of topics
the instance is permitted to join by setting subscription filter option
when
PubSub
instance is constructed via DI.Having the fixed topic name meant that any SP starting up a node on a
network other than
mainnet
would have to override the default configto avoid the node crashing when index provider is enabled.
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, INTERFACE BREAKING CHANGE, CONSENSUS BREAKING, build, chore, ci, docs,perf, refactor, revert, style, testarea
: api, chain, state, vm, data transfer, market, mempool, message, block production, multisig, networking, paychan, proving, sealing, wallet, deps