SNS airdrop neurons sns_init.yaml config

,

Hi,

i’m setting up a sns_init.yaml file where there multiple neurons should be dropped to the same principal but with a different dissolve_delay_seconds, when testing this locally i get the following error: Error: Duplicate controllers detected in airdrop_neurons

The data that im working with;

airdrop_distribution:
      airdrop_neurons:
        - controller: dfft3-lxbnr-inrwi-3envb-vgox2-d2sps-ztppl-24gs2-u7bqc-ztehz-vae
          stake_e8s: 2458935000000
          memo: 0
          dissolve_delay_seconds: 2630000 # 1 month
        - controller: dfft3-lxbnr-inrwi-3envb-vgox2-d2sps-ztppl-24gs2-u7bqc-ztehz-vae
          stake_e8s: 11065207000000
          memo: 0
          dissolve_delay_seconds: 31560000 # 1 year
        - controller: dfft3-lxbnr-inrwi-3envb-vgox2-d2sps-ztppl-24gs2-u7bqc-ztehz-vae
          stake_e8s: 11065207000000
          memo: 0
          dissolve_delay_seconds: 63120000 # 2 year

What am i missing? or is it not possible at all?

Thanks,
Remco

You should also be able to resolve this by changing the memo field for each neuron. e.g.

airdrop_distribution:
      airdrop_neurons:
        - controller: dfft3-lxbnr-inrwi-3envb-vgox2-d2sps-ztppl-24gs2-u7bqc-ztehz-vae
          stake_e8s: 2458935000000
          memo: 0
          dissolve_delay_seconds: 2630000 # 1 month
        - controller: dfft3-lxbnr-inrwi-3envb-vgox2-d2sps-ztppl-24gs2-u7bqc-ztehz-vae
          stake_e8s: 11065207000000
          memo: 1
          dissolve_delay_seconds: 31560000 # 1 year
        - controller: dfft3-lxbnr-inrwi-3envb-vgox2-d2sps-ztppl-24gs2-u7bqc-ztehz-vae
          stake_e8s: 11065207000000
          memo: 2
          dissolve_delay_seconds: 63120000 # 2 year

The memo only needs to be unique per-neuron per-controller. So multiple neurons can have the same memo if they have different controllers. Likewise, they can have the same controller if they have different memos.

2 Likes

@RMCS Thank you for pointing this out! I’ve just made an MR to improve the error message

1 Like

Now it makes sense where the memo field is for! Thanks!