encointer / encointer-node

encointer node and cli client
Apache License 2.0
22 stars 8 forks source link

population can't grow sometimes #14

Closed brenzi closed 4 years ago

brenzi commented 4 years ago

Setup:

  1. register all in order
  2. first ceremony will assign 6 bootstrappers plus the next 2 participants
  3. register for second ceremony in order
  4. subsequent ceremonies will assign exactly the same group without growing

runtime debug log ceremony 316

Apr 15 13:40:06 gesell encointer-node[9905]: 2020-04-15 13:40:06.582 import-queue-worker-0 DEBUG runtime  one meetup can't take place because it is too small
Apr 15 13:40:06 gesell encointer-node[9905]: 2020-04-15 13:40:06.582 import-queue-worker-0 DEBUG runtime  had to skip one newbie
Apr 15 13:40:06 gesell encointer-node[9905]: 2020-04-15 13:40:06.582 import-queue-worker-0 DEBUG runtime  assigned meetups
Apr 15 13:40:06 gesell encointer-node[9905]: 2020-04-15 13:40:06.582 import-queue-worker-0 DEBUG runtime  phase changed to:
Apr 15 13:40:06 gesell encointer-node[9905]: 2020-04-15 13:40:06.582 import-queue-worker-0 DEBUG runtime  01

will try with a random permutation for registering now.

brenzi commented 4 years ago

shuffling registration order doesn't change the problem:

ceremony 317:

Apr 15 14:10:06 gesell encointer-node[9905]: 2020-04-15 14:10:06.637 import-queue-worker-0 DEBUG runtime  one meetup can't take place because it is too small
Apr 15 14:10:06 gesell encointer-node[9905]: 2020-04-15 14:10:06.638 import-queue-worker-0 DEBUG runtime  had to skip one newbie
Apr 15 14:10:06 gesell encointer-node[9905]: 2020-04-15 14:10:06.638 import-queue-worker-0 DEBUG runtime  had to skip one newbie
Apr 15 14:10:06 gesell encointer-node[9905]: 2020-04-15 14:10:06.638 import-queue-worker-0 DEBUG runtime  assigned meetups
Apr 15 14:10:06 gesell encointer-node[9905]: 2020-04-15 14:10:06.638 import-queue-worker-0 DEBUG runtime  phase changed to:
Apr 15 14:10:06 gesell encointer-node[9905]: 2020-04-15 14:10:06.638 import-queue-worker-0 DEBUG runtime  01
brenzi commented 4 years ago

the client so far didn't register with a proof of reputation. that's the cause. v0.2.1 should fix this.

brenzi commented 4 years ago

there we go:

  listing meetups for cid 49UkeKNfbLGgZk5h64TrEnirAc27hbdGyDwSPFLg6992 and ceremony nr 319
number of meetups assigned:  1
MeetupRegistry[319, 1] location is Some(Location { lat: 25.1713879406, lon: -36.8354415894 })
MeetupRegistry[319, 1] meeting time is Some(1587059240505)
MeetupRegistry[319, 1] participants are:
   5HK4piM876WwSsBQma1KxVqaAyNX1YVStBNdYwaidtussWyU
   5Ff3YLGxAtSqpAmorA9srq3zMGFhBuJiQgDvKeXP4ph5yzqp
   5CtadXZuibXHaoNP9VKsoGRc2ih2tHvzdMrDG2GSXFuN89yG
   5CtryXjK4U6VSTyqZEZ44cBUMcwca7uvNKv49CsXcAyaXseQ
   5EnVxV3GBvn1qvXMouQYiq623YaH4PEm59XFftytcRKZ9tWL
   5HNQEKg19fN7zH3NzEDjGi8L2mKyCdXHAeXpg1ghXxjDKWT8
   5EUXHVefrGT18zqRJJ8vxJTRrmbgA6UUUrAQ3QkmLMLPf7Hd
   5Ci4bxeWR8GAaaWxmksYdcn55tdrRs26waABLVwTYdPxQhkY
   5DtnTQa2GHmtUtQmUj9jB2FUzkJnPEM2VWAqVstoZiKA6hxj
   5HMso2QkkkdymvdwGTUugz5QEiWRUZzqbutHDWgZMtMXdF7Z

listing meetups for cid 49UkeKNfbLGgZk5h64TrEnirAc27hbdGyDwSPFLg6992 and ceremony nr 320
number of meetups assigned:  2
MeetupRegistry[320, 1] location is Some(Location { lat: 25.1713879406, lon: -36.8354415894 })
MeetupRegistry[320, 1] meeting time is Some(1587061040505)
MeetupRegistry[320, 1] participants are:
   5HMso2QkkkdymvdwGTUugz5QEiWRUZzqbutHDWgZMtMXdF7Z
   5DtnTQa2GHmtUtQmUj9jB2FUzkJnPEM2VWAqVstoZiKA6hxj
   5Ff3YLGxAtSqpAmorA9srq3zMGFhBuJiQgDvKeXP4ph5yzqp
   5HNQEKg19fN7zH3NzEDjGi8L2mKyCdXHAeXpg1ghXxjDKWT8
   5EnVxV3GBvn1qvXMouQYiq623YaH4PEm59XFftytcRKZ9tWL
   5FhikZdSV8vP99ikPDoREcj4LMiZ4ex7apmAgBJgaqg6VANG
MeetupRegistry[320, 2] location is Some(Location { lat: 25.1613879406, lon: -36.8354415894 })
MeetupRegistry[320, 2] meeting time is Some(1587061040505)
MeetupRegistry[320, 2] participants are:
   5CtadXZuibXHaoNP9VKsoGRc2ih2tHvzdMrDG2GSXFuN89yG
   5EUXHVefrGT18zqRJJ8vxJTRrmbgA6UUUrAQ3QkmLMLPf7Hd
   5HK4piM876WwSsBQma1KxVqaAyNX1YVStBNdYwaidtussWyU
   5CtryXjK4U6VSTyqZEZ44cBUMcwca7uvNKv49CsXcAyaXseQ
   5Ci4bxeWR8GAaaWxmksYdcn55tdrRs26waABLVwTYdPxQhkY
   5ELedUmuWEoa4gRrrK47e8rTz58b6XumpAZXqNWq686enUaw

registered 10 based on 8 reputables, 6 of wich are bootstrapers