List of active SONs doesn't update in the first maintenance block #451

Closed
opened 2022-09-21 08:02:25 +00:00 by vampik · 7 comments
vampik commented 2022-09-21 08:02:25 +00:00 (Migrated from gitlab.com)

When we vote for SON we expect that in the next maintenance block list of active SONs would be updated.
Now in QA environment we see that updating happens not in the first maint block, but later.

When we vote for SON we expect that in the next maintenance block list of active SONs would be updated. Now in QA environment we see that updating happens not in the first maint block, but later.
vampik commented 2022-09-21 08:02:26 +00:00 (Migrated from gitlab.com)

assigned to @vampik

assigned to @vampik
vampik commented 2022-09-22 08:44:05 +00:00 (Migrated from gitlab.com)

mentioned in commit db73d659340340eb3be2dbd685abbf7a525c332b

mentioned in commit db73d659340340eb3be2dbd685abbf7a525c332b
vampik commented 2022-09-23 06:08:46 +00:00 (Migrated from gitlab.com)

mentioned in merge request !154

mentioned in merge request !154
vampik commented 2022-09-23 06:09:15 +00:00 (Migrated from gitlab.com)

assigned to @serkixenos

assigned to @serkixenos
serkixenos commented 2022-09-27 10:42:47 +00:00 (Migrated from gitlab.com)

assigned to @prandnum and @wsalloum

assigned to @prandnum and @wsalloum
vampik commented 2022-09-27 11:20:25 +00:00 (Migrated from gitlab.com)

Steps to test:

  1. Execute init-network.sh
  2. Wait to maintenance block (at first there would be 5 active SONs with seq number beggining from 0)
  3. Vote for SONs (for example, like this)
vote_for_son sonaccount14 sonaccount16 bitcoin true true
vote_for_son sonaccount15 sonaccount16 bitcoin true true
vote_for_son sonaccount16 sonaccount16 bitcoin true true

vote_for_son sonaccount14 sonaccount15 hive true true
vote_for_son sonaccount15 sonaccount15 hive true true
vote_for_son sonaccount16 sonaccount15 hive true true

vote_for_son sonaccount14 sonaccount14 ethereum true true
vote_for_son sonaccount15 sonaccount14 ethereum true true
vote_for_son sonaccount16 sonaccount14 ethereum true true
  1. Wait to maintenance block and check that list of active SONs changed.
Steps to test: 1) Execute `init-network.sh` 2) Wait to maintenance block (at first there would be 5 active SONs with seq number beggining from 0) 3) Vote for SONs (for example, like this) ``` vote_for_son sonaccount14 sonaccount16 bitcoin true true vote_for_son sonaccount15 sonaccount16 bitcoin true true vote_for_son sonaccount16 sonaccount16 bitcoin true true vote_for_son sonaccount14 sonaccount15 hive true true vote_for_son sonaccount15 sonaccount15 hive true true vote_for_son sonaccount16 sonaccount15 hive true true vote_for_son sonaccount14 sonaccount14 ethereum true true vote_for_son sonaccount15 sonaccount14 ethereum true true vote_for_son sonaccount16 sonaccount14 ethereum true true ``` 4) Wait to maintenance block and check that list of active SONs changed.
wsalloum commented 2022-09-27 14:54:54 +00:00 (Migrated from gitlab.com)
  • Before the voting:
locked >>> list_active_sons      
list_active_sons 
[]
locked >>> list_active_sons 
list_active_sons 
[]
locked >>> list_active_sons 
list_active_sons 
[[
    "sonaccount01",
    "1.33.0"
  ],[
    "sonaccount02",
    "1.33.1"
  ],[
    "sonaccount03",
    "1.33.2"
  ],[
    "sonaccount04",
    "1.33.3"
  ],[
    "sonaccount05",
    "1.33.4"
  ]
]
  • Voting to the sons:
vote_for_son sonaccount14 sonaccount16 bitcoin true true
vote_for_son sonaccount15 sonaccount16 bitcoin true true
vote_for_son sonaccount16 sonaccount16 bitcoin true true

vote_for_son sonaccount14 sonaccount15 hive true true
vote_for_son sonaccount15 sonaccount15 hive true true
vote_for_son sonaccount16 sonaccount15 hive true true

vote_for_son sonaccount14 sonaccount14 ethereum true true
vote_for_son sonaccount15 sonaccount14 ethereum true true
vote_for_son sonaccount16 sonaccount14 ethereum true true

  • Wait few minutes then check the active sons:
unlocked >>> list_active_sons 
list_active_sons 
[[
    "sonaccount01",
    "1.33.0"
  ],[
    "sonaccount02",
    "1.33.1"
  ],[
    "sonaccount03",
    "1.33.2"
  ],[
    "sonaccount04",
    "1.33.3"
  ],[
    "sonaccount14",
    "1.33.13"
  ],[
    "sonaccount15",
    "1.33.14"
  ],[
    "sonaccount16",
    "1.33.15"
  ]
]
- Before the voting: ``` locked >>> list_active_sons list_active_sons [] locked >>> list_active_sons list_active_sons [] locked >>> list_active_sons list_active_sons [[ "sonaccount01", "1.33.0" ],[ "sonaccount02", "1.33.1" ],[ "sonaccount03", "1.33.2" ],[ "sonaccount04", "1.33.3" ],[ "sonaccount05", "1.33.4" ] ] ``` - Voting to the sons: ``` vote_for_son sonaccount14 sonaccount16 bitcoin true true vote_for_son sonaccount15 sonaccount16 bitcoin true true vote_for_son sonaccount16 sonaccount16 bitcoin true true vote_for_son sonaccount14 sonaccount15 hive true true vote_for_son sonaccount15 sonaccount15 hive true true vote_for_son sonaccount16 sonaccount15 hive true true vote_for_son sonaccount14 sonaccount14 ethereum true true vote_for_son sonaccount15 sonaccount14 ethereum true true vote_for_son sonaccount16 sonaccount14 ethereum true true ``` - Wait few minutes then check the active sons: ``` unlocked >>> list_active_sons list_active_sons [[ "sonaccount01", "1.33.0" ],[ "sonaccount02", "1.33.1" ],[ "sonaccount03", "1.33.2" ],[ "sonaccount04", "1.33.3" ],[ "sonaccount14", "1.33.13" ],[ "sonaccount15", "1.33.14" ],[ "sonaccount16", "1.33.15" ] ] ```
serkixenos (Migrated from gitlab.com) closed this issue 2022-09-27 15:39:40 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#451
No description provided.