The latest dfx nns extension now also install the SNS aggregator.
That means that snsdemo snapshot now have 2 aggregators installed.
Additionally the aggregator installed by dfx has setting which cause it to produce a lot of spam.
The solution is to reinstall the installed aggregator instead of installing a second one.
Changes
Hard code sns_aggregator canister ID similar to how nns-dapp and internet_identity are hard coded.
Make snsdemo8 a controlled of the sns_aggregator installed by dfx, similar to nns-dapp and internet_identity.
Instead of creating a new sns_aggregator canister, make it so the existing one can be reinstalled.
Drive-by: Fix bin/dfx-sns-aggregator-wait for the case when there are 0 SNSes.
Tested
Created a snapshot.
Checked that it didn't produce crazy amounts of spam.
Checked that there is only aggregator output from 1 canister.
Checked that NNS dapp connects correctly to the aggregator.
Update bin/dfx-software-sns-aggregator-install.test to make sure the canister already exists, as if dfx nns install was already called.
Motivation
The latest
dfx nns
extension now also install the SNS aggregator. That means that snsdemo snapshot now have 2 aggregators installed. Additionally the aggregator installed by dfx has setting which cause it to produce a lot of spam. The solution is to reinstall the installed aggregator instead of installing a second one.Changes
snsdemo8
a controlled of the sns_aggregator installed by dfx, similar to nns-dapp and internet_identity.bin/dfx-sns-aggregator-wait
for the case when there are 0 SNSes.Tested
bin/dfx-software-sns-aggregator-install.test
to make sure the canister already exists, as ifdfx nns install
was already called.