Improve get_active_sons and get_son_network_status API/CLI #430

Closed
opened 2022-09-06 20:30:14 +00:00 by prandnum · 17 comments
prandnum commented 2022-09-06 20:30:14 +00:00 (Migrated from gitlab.com)

The details in get_son_network_status output("regular SON heartbeat for sidechain 5") is not clear. Also help needs to give different son states

unlocked >>> gethelp get_son_network_status
gethelp get_son_network_status

Returns
    SON network status description

unlocked >>> 
unlocked >>> get_son_network_status 
get_son_network_status 
[[
    "1.33.0",
    "[OK, regular SON heartbeat for sidechain 5] "
  ],[
    "1.33.1",
    "[OK, regular SON heartbeat for sidechain 5] "
  ],[
    "1.33.2",
    "[OK, regular SON heartbeat for sidechain 5] "
  ],[
    "1.33.3",
    "[OK, regular SON heartbeat for sidechain 5] "
  ],[
    "1.33.4",
    "[OK, regular SON heartbeat for sidechain 5] "
  ]
]
unlocked >>> 
The details in get_son_network_status output("regular SON heartbeat for sidechain 5") is not clear. Also help needs to give different son states ``` unlocked >>> gethelp get_son_network_status gethelp get_son_network_status Returns SON network status description unlocked >>> ``` ``` unlocked >>> get_son_network_status get_son_network_status [[ "1.33.0", "[OK, regular SON heartbeat for sidechain 5] " ],[ "1.33.1", "[OK, regular SON heartbeat for sidechain 5] " ],[ "1.33.2", "[OK, regular SON heartbeat for sidechain 5] " ],[ "1.33.3", "[OK, regular SON heartbeat for sidechain 5] " ],[ "1.33.4", "[OK, regular SON heartbeat for sidechain 5] " ] ] unlocked >>> ```
prandnum commented 2022-09-06 20:30:38 +00:00 (Migrated from gitlab.com)

@bobinson @serkixenos

CC: @tai.sama

@bobinson @serkixenos CC: @tai.sama
serkixenos commented 2022-09-07 13:02:26 +00:00 (Migrated from gitlab.com)

The heartbeat, son maintenance and deregistering are not separated by sidechain.

That's because it is not possible (or at least we did not intended to allow) to run eg bitcoin and hive SONs on two different servers. In this scenario, a heartbeat really means that a "Server running SONs is online", not "Bitcoin SON is online" or "Hive SON is online". Hence, they are not separated.

The heartbeat, son maintenance and deregistering are not separated by sidechain. That's because it is not possible (or at least we did not intended to allow) to run eg bitcoin and hive SONs on two different servers. In this scenario, a heartbeat really means that a "Server running SONs is online", not "Bitcoin SON is online" or "Hive SON is online". Hence, they are not separated.
serkixenos commented 2022-09-07 13:03:03 +00:00 (Migrated from gitlab.com)

@prandnum

@prandnum
prandnum commented 2022-09-07 15:21:50 +00:00 (Migrated from gitlab.com)

@serkixenos what do you mean by "sidechain 5" what does this 5 signify?

@serkixenos what do you mean by "sidechain 5" what does this 5 signify?
serkixenos commented 2022-09-08 22:36:29 +00:00 (Migrated from gitlab.com)

Verified, this command needs refactoring. Output string is not formatted properly. @prandnum, fyi, 5 is internal value of sidechain_type::hive

Verified, this command needs refactoring. Output string is not formatted properly. @prandnum, fyi, 5 is internal value of sidechain_type::hive
serkixenos commented 2022-09-08 22:37:55 +00:00 (Migrated from gitlab.com)

assigned to @mkhan17

assigned to @mkhan17
serkixenos commented 2022-09-08 22:45:16 +00:00 (Migrated from gitlab.com)

Suggested function signature and output 1

map<son_id_type, string> get_son_network_status(sidechain_type sidechain)

with output similar to this

    [
      {
        "1.33.0",
        "[OK, regular SON heartbeat]"
      },{
        "1.33.1",
        "[OK, regular SON heartbeat]"
      },{
        "1.33.2",
        "[OK, regular SON heartbeat]"
      },{
        "1.33.3",
        "[OK, regular SON heartbeat]"
      },{
        "1.33.4",
        "[OK, regular SON heartbeat]"
      }
    ]

Suggested function signature and output 2

map<sidechain_type, map<son_id_type, string>> get_son_network_status()

with output similar to this

    [
      "bitcoin",[{
          "1.33.0",
          "[OK, regular SON heartbeat]"
        },{
          "1.33.1",
          "[OK, regular SON heartbeat]"
        },{
          "1.33.2",
          "[OK, regular SON heartbeat]"
        },{
          "1.33.3",
          "[OK, regular SON heartbeat]"
        },{
          "1.33.4",
          "[OK, regular SON heartbeat]"
        }
      ]
    ],[
      "hive",[{
          "1.33.0",
          "[OK, regular SON heartbeat]"
        },{
          "1.33.1",
          "[OK, regular SON heartbeat]"
        },{
          "1.33.2",
          "[OK, regular SON heartbeat]"
        },{
          "1.33.3",
          "[OK, regular SON heartbeat]"
        },{
          "1.33.4",
          "[OK, regular SON heartbeat]"
        }
      ]
    ]
Suggested function signature and output 1 ``` map<son_id_type, string> get_son_network_status(sidechain_type sidechain) with output similar to this [ { "1.33.0", "[OK, regular SON heartbeat]" },{ "1.33.1", "[OK, regular SON heartbeat]" },{ "1.33.2", "[OK, regular SON heartbeat]" },{ "1.33.3", "[OK, regular SON heartbeat]" },{ "1.33.4", "[OK, regular SON heartbeat]" } ] ``` Suggested function signature and output 2 ``` map<sidechain_type, map<son_id_type, string>> get_son_network_status() with output similar to this [ "bitcoin",[{ "1.33.0", "[OK, regular SON heartbeat]" },{ "1.33.1", "[OK, regular SON heartbeat]" },{ "1.33.2", "[OK, regular SON heartbeat]" },{ "1.33.3", "[OK, regular SON heartbeat]" },{ "1.33.4", "[OK, regular SON heartbeat]" } ] ],[ "hive",[{ "1.33.0", "[OK, regular SON heartbeat]" },{ "1.33.1", "[OK, regular SON heartbeat]" },{ "1.33.2", "[OK, regular SON heartbeat]" },{ "1.33.3", "[OK, regular SON heartbeat]" },{ "1.33.4", "[OK, regular SON heartbeat]" } ] ] ```
serkixenos commented 2022-09-13 22:53:06 +00:00 (Migrated from gitlab.com)

Wallet documentation will be handled in a ticket #432

This one will be renamed to address invalid command output, and implement more advanced versions of the command.

Wallet documentation will be handled in a ticket #432 This one will be renamed to address invalid command output, and implement more advanced versions of the command.
serkixenos commented 2022-09-13 22:53:23 +00:00 (Migrated from gitlab.com)

changed title from {-i-}mprove get_son_networ{-k-}_status {-help-} to {+I+}mprove {+get_active_sons and +}get_son_networ_status {+API/CLI+}

changed title from **{-i-}mprove get_son_networ{-k-}_status {-help-}** to **{+I+}mprove {+get_active_sons and +}get_son_networ_status {+API/CLI+}**
serkixenos commented 2022-09-13 22:54:03 +00:00 (Migrated from gitlab.com)
https://gitlab.com/PBSA/peerplays/-/merge_requests/150
serkixenos commented 2022-09-13 22:54:21 +00:00 (Migrated from gitlab.com)

changed title from Improve get_active_sons and get_son_networ_status API/CLI to Improve get_active_sons and get_son_networ{+k+}_status API/CLI

changed title from **Improve get_active_sons and get_son_networ_status API/CLI** to **Improve get_active_sons and get_son_networ{+k+}_status API/CLI**
serkixenos commented 2022-10-03 16:59:29 +00:00 (Migrated from gitlab.com)

assigned to @prandnum

assigned to @prandnum
serkixenos commented 2022-10-03 17:00:25 +00:00 (Migrated from gitlab.com)

assigned to @wsalloum

assigned to @wsalloum
wsalloum commented 2022-10-04 11:03:30 +00:00 (Migrated from gitlab.com)
unlocked >>> gethelp get_son_network_status
gethelp get_son_network_status

Get SON network status.

Command:
    get_son_network_status

Returns:
    SON network status description for a given sidechain type
unlocked >>> gethelp get_active_sons        
gethelp get_active_sons

Get list of active sons.

Command:
    get_active_sons

Returns:
    List of active SONs

unlocked >>> 


``` unlocked >>> gethelp get_son_network_status gethelp get_son_network_status Get SON network status. Command: get_son_network_status Returns: SON network status description for a given sidechain type ``` ``` unlocked >>> gethelp get_active_sons gethelp get_active_sons Get list of active sons. Command: get_active_sons Returns: List of active SONs unlocked >>> ```
serkixenos commented 2022-10-04 12:13:13 +00:00 (Migrated from gitlab.com)

This ticket was not about command documentation, but adding few new commands and API. We'll provide more detailed test instructions for this.

This ticket was not about command documentation, but adding few new commands and API. We'll provide more detailed test instructions for this.
serkixenos commented 2022-10-04 20:02:31 +00:00 (Migrated from gitlab.com)

Test instructions, get_active_sons & get_active_sons_by_sidechain

Execute test on QA environment built from latest source code.

Use cli wallet to obtain the list of active sons from global properties object

unlocked >>> get_global_properties 
get_global_properties 
{
  "id": "2.0.0",
  ...
  "active_sons": [[
      "bitcoin",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666"
        }
      ]
    ],[
      "ethereum",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "09ee460834498a4ee361beb819470061b7381b49"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7"
        }
      ]
    ],[
      "hive",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "sonaccount01"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "sonaccount02"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "sonaccount03"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "sonaccount04"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "sonaccount05"
        }
      ]
    ]
  ]
}

Use cli wallet command get_active_sons to retrieve list of active sons

unlocked >>> get_active_sons
get_active_sons
[[
    "bitcoin",[{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
      },{
        "son_id": "1.33.4",
        "weight": 1,
        "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
        "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666"
      }
    ]
  ],[
    "ethereum",[{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "09ee460834498a4ee361beb819470061b7381b49"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
      },{
        "son_id": "1.33.4",
        "weight": 1,
        "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
        "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7"
      }
    ]
  ],[
    "hive",[{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "sonaccount01"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "sonaccount02"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "sonaccount03"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "sonaccount04"
      },{
        "son_id": "1.33.4",
        "weight": 1,
        "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
        "public_key": "sonaccount05"
      }
    ]
  ]
]

Compare active son lists from both outputs, and make sure that all entries from get_active_sons output are exactly the same as entries from gpo active sons.

Repeat the test, using get_active_sons_by_sidechain to retrieve list of active sons by sidechain

unlocked >>> get_active_sons_by_sidechain bitcoin
get_active_sons_by_sidechain bitcoin
[{
    "son_id": "1.33.0",
    "weight": 1,
    "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
    "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
  },{
    "son_id": "1.33.1",
    "weight": 1,
    "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
    "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
  },{
    "son_id": "1.33.2",
    "weight": 1,
    "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
    "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
  },{
    "son_id": "1.33.3",
    "weight": 1,
    "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
    "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
  },{
    "son_id": "1.33.4",
    "weight": 1,
    "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
    "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666"
  }
]



unlocked >>> get_active_sons_by_sidechain ethereum
get_active_sons_by_sidechain ethereum
[{
    "son_id": "1.33.0",
    "weight": 1,
    "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
    "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
  },{
    "son_id": "1.33.1",
    "weight": 1,
    "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
    "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
  },{
    "son_id": "1.33.2",
    "weight": 1,
    "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
    "public_key": "09ee460834498a4ee361beb819470061b7381b49"
  },{
    "son_id": "1.33.3",
    "weight": 1,
    "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
    "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
  },{
    "son_id": "1.33.4",
    "weight": 1,
    "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
    "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7"
  }
]



unlocked >>> get_active_sons_by_sidechain hive    
get_active_sons_by_sidechain hive
[{
    "son_id": "1.33.0",
    "weight": 1,
    "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
    "public_key": "sonaccount01"
  },{
    "son_id": "1.33.1",
    "weight": 1,
    "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
    "public_key": "sonaccount02"
  },{
    "son_id": "1.33.2",
    "weight": 1,
    "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
    "public_key": "sonaccount03"
  },{
    "son_id": "1.33.3",
    "weight": 1,
    "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
    "public_key": "sonaccount04"
  },{
    "son_id": "1.33.4",
    "weight": 1,
    "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
    "public_key": "sonaccount05"
  }
]

Compare active son lists from all these outputs, and make sure that all entries from get_active_sons_by_sidechain outputs are exactly the same as entries from gpo active sons for a given sidechain.

Randomly vote for different SONs, to change the list of active SONs per sidechain, and verify command outputs with different lists of active sons.

Test instructions, get_active_sons & get_active_sons_by_sidechain Execute test on QA environment built from latest source code. Use cli wallet to obtain the list of active sons from global properties object ``` unlocked >>> get_global_properties get_global_properties { "id": "2.0.0", ... "active_sons": [[ "bitcoin",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666" } ] ],[ "ethereum",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7" } ] ],[ "hive",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "sonaccount05" } ] ] ] } ``` Use cli wallet command ```get_active_sons``` to retrieve list of active sons ``` unlocked >>> get_active_sons get_active_sons [[ "bitcoin",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666" } ] ],[ "ethereum",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7" } ] ],[ "hive",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "sonaccount05" } ] ] ] ``` Compare active son lists from both outputs, and make sure that all entries from get_active_sons output are exactly the same as entries from gpo active sons. Repeat the test, using ```get_active_sons_by_sidechain``` to retrieve list of active sons by sidechain ``` unlocked >>> get_active_sons_by_sidechain bitcoin get_active_sons_by_sidechain bitcoin [{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666" } ] unlocked >>> get_active_sons_by_sidechain ethereum get_active_sons_by_sidechain ethereum [{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7" } ] unlocked >>> get_active_sons_by_sidechain hive get_active_sons_by_sidechain hive [{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "sonaccount05" } ] ``` Compare active son lists from all these outputs, and make sure that all entries from get_active_sons_by_sidechain outputs are exactly the same as entries from gpo active sons for a given sidechain. Randomly vote for different SONs, to change the list of active SONs per sidechain, and verify command outputs with different lists of active sons.
wsalloum commented 2022-10-06 12:59:55 +00:00 (Migrated from gitlab.com)

It is working fine, here is the test steps:

  • Check the active sons by get_active_sons and get_global_properties, they are the same
unlocked >>> get_active_sons
get_active_sons
[[
    "bitcoin",[{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
      },{
        "son_id": "1.33.4",
        "weight": 1,
        "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
        "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666"
      }
    ]
  ],[
    "ethereum",[{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "09ee460834498a4ee361beb819470061b7381b49"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
      },{
        "son_id": "1.33.4",
        "weight": 1,
        "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
        "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7"
      }
    ]
  ],[
    "hive",[{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "sonaccount01"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "sonaccount02"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "sonaccount03"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "sonaccount04"
      },{
        "son_id": "1.33.4",
        "weight": 1,
        "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
        "public_key": "sonaccount05"
      }
    ]
  ]
]


unlocked >>> get_global_properties         
get_global_properties

"active_sons": [[
      "bitcoin",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666"
        }
      ]
    ],[
      "ethereum",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "09ee460834498a4ee361beb819470061b7381b49"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7"
        }
      ]
    ],[
      "hive",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "sonaccount01"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "sonaccount02"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "sonaccount03"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "sonaccount04"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "sonaccount05"
        }
      ]
    ]
  ]
}


  • Check the active sons by sidechain for bitcoin, hive and ethereum get_active_sons_by_sidechain, they are the same


unlocked >>> get_active_sons_by_sidechain bitcoin
get_active_sons_by_sidechain bitcoin
[{
    "son_id": "1.33.0",
    "weight": 1,
    "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
    "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
  },{
    "son_id": "1.33.1",
    "weight": 1,
    "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
    "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
  },{
    "son_id": "1.33.2",
    "weight": 1,
    "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
    "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
  },{
    "son_id": "1.33.3",
    "weight": 1,
    "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
    "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
  },{
    "son_id": "1.33.4",
    "weight": 1,
    "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
    "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666"
  }
]



get_active_sons_by_sidechain ethereum
get_active_sons_by_sidechain ethereum
[{
    "son_id": "1.33.0",
    "weight": 1,
    "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
    "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
  },{
    "son_id": "1.33.1",
    "weight": 1,
    "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
    "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
  },{
    "son_id": "1.33.2",
    "weight": 1,
    "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
    "public_key": "09ee460834498a4ee361beb819470061b7381b49"
  },{
    "son_id": "1.33.3",
    "weight": 1,
    "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
    "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
  },{
    "son_id": "1.33.4",
    "weight": 1,
    "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
    "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7"
  }
]


get_active_sons_by_sidechain hive    
get_active_sons_by_sidechain hive
[{
    "son_id": "1.33.0",
    "weight": 1,
    "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
    "public_key": "sonaccount01"
  },{
    "son_id": "1.33.1",
    "weight": 1,
    "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
    "public_key": "sonaccount02"
  },{
    "son_id": "1.33.2",
    "weight": 1,
    "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
    "public_key": "sonaccount03"
  },{
    "son_id": "1.33.3",
    "weight": 1,
    "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
    "public_key": "sonaccount04"
  },{
    "son_id": "1.33.4",
    "weight": 1,
    "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
    "public_key": "sonaccount05"
  }
]

  • Vote for some 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 sonaccount14 sonaccount14 ethereum true true
  • Check the active sons list if it is updated

unlocked >>> get_active_sons
get_active_sons
[[
    "bitcoin",[{
        "son_id": "1.33.15",
        "weight": 1,
        "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v",
        "public_key": "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247"
      },{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
      }
    ]
  ],[
    "ethereum",[{
        "son_id": "1.33.13",
        "weight": 1,
        "signing_key": "TEST5e4HXhA4yBEGzaXVyjuVabKhG1qGghi6rypvq5fLxAmU9XLRHT",
        "public_key": "946650b30943a46386a296117b0342e18e73e4cb"
      },{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "09ee460834498a4ee361beb819470061b7381b49"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
      }
    ]
  ],[
    "hive",[{
        "son_id": "1.33.14",
        "weight": 1,
        "signing_key": "TEST89qMuZejYeeGvjr3bMEcGyvhD4dyUchmxbLNUBFbPodqJKJPZc",
        "public_key": "sonaccount15"
      },{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "sonaccount01"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "sonaccount02"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "sonaccount03"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "sonaccount04"
      }
    ]
  ]
]

  • Vote for sons and check the active sons
vote_for_son sonaccount16 sonaccount16 bitcoin true true

vote_for_son sonaccount16 sonaccount07 bitcoin true true
vote_for_son sonaccount16 sonaccount07 hive true true


unlocked >>> get_active_sons                                       
get_active_sons
[[
    "bitcoin",[{
        "son_id": "1.33.15",
        "weight": 1,
        "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v",
        "public_key": "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247"
      },{
        "son_id": "1.33.6",
        "weight": 1,
        "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB",
        "public_key": "0317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7f"
      },{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
      }
    ]
  ],[
    "ethereum",[{
        "son_id": "1.33.13",
        "weight": 1,
        "signing_key": "TEST5e4HXhA4yBEGzaXVyjuVabKhG1qGghi6rypvq5fLxAmU9XLRHT",
        "public_key": "946650b30943a46386a296117b0342e18e73e4cb"
      },{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "09ee460834498a4ee361beb819470061b7381b49"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
      }
    ]
  ],[
    "hive",[{
        "son_id": "1.33.6",
        "weight": 1,
        "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB",
        "public_key": "sonaccount07"
      },{
        "son_id": "1.33.14",
        "weight": 1,
        "signing_key": "TEST89qMuZejYeeGvjr3bMEcGyvhD4dyUchmxbLNUBFbPodqJKJPZc",
        "public_key": "sonaccount15"
      },{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "sonaccount01"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "sonaccount02"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "sonaccount03"
      }
    ]
  ]
]

  • Check active son by bitcoin


get_active_sons_by_sidechain bitcoin                     
get_active_sons_by_sidechain bitcoin
[{
    "son_id": "1.33.15",
    "weight": 1,
    "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v",
    "public_key": "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247"
  },{
    "son_id": "1.33.6",
    "weight": 1,
    "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB",
    "public_key": "0317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7f"
  },{
    "son_id": "1.33.0",
    "weight": 1,
    "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
    "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
  },{
    "son_id": "1.33.1",
    "weight": 1,
    "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
    "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
  },{
    "son_id": "1.33.2",
    "weight": 1,
    "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
    "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
  }
]
  • Check active son by hive


unlocked >>> get_active_sons_by_sidechain hive   
get_active_sons_by_sidechain hive
[{
    "son_id": "1.33.6",
    "weight": 1,
    "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB",
    "public_key": "sonaccount07"
  },{
    "son_id": "1.33.14",
    "weight": 1,
    "signing_key": "TEST89qMuZejYeeGvjr3bMEcGyvhD4dyUchmxbLNUBFbPodqJKJPZc",
    "public_key": "sonaccount15"
  },{
    "son_id": "1.33.0",
    "weight": 1,
    "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
    "public_key": "sonaccount01"
  },{
    "son_id": "1.33.1",
    "weight": 1,
    "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
    "public_key": "sonaccount02"
  },{
    "son_id": "1.33.2",
    "weight": 1,
    "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
    "public_key": "sonaccount03"
  }
]
  • Check son sonaccount16
unlocked >>> get_son sonaccount16
get_son sonaccount16
{
  "id": "1.33.15",
  "son_account": "1.2.51",
  "sidechain_vote_ids": [[
      "bitcoin",
      "3:83"
    ],[
      "ethereum",
      "5:85"
    ],[
      "hive",
      "4:84"
    ]
  ],
  "total_votes": [[
      "bitcoin",
      15000000
    ],[
      "ethereum",
      0
    ],[
      "hive",
      0
    ]
  ],
  "url": "http://sonaddreess16.com",
  "deposit": "1.13.63",
  "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v",
  "pay_vb": "1.13.62",
  "statistics": "2.25.15",
  "statuses": [[
      "bitcoin",
      "active"
    ],[
      "ethereum",
      "inactive"
    ],[
      "hive",
      "inactive"
    ]
  ],
  "sidechain_public_keys": [[
      "bitcoin",
      "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247"
    ],[
      "ethereum",
      "43d4611ceb94c58c7cf9058fa625e16af2ad8d83"
    ],[
      "peerplays",
      "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v"
    ],[
      "hive",
      "sonaccount16"
    ]
  ]
}
  • Check get_global_properties
unlocked >>> get_global_properties 


 "active_sons": [[
      "bitcoin",[{
          "son_id": "1.33.15",
          "weight": 1,
          "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v",
          "public_key": "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247"
        },{
          "son_id": "1.33.6",
          "weight": 1,
          "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB",
          "public_key": "0317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7f"
        },{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
        }
      ]
    ],[
      "ethereum",[{
          "son_id": "1.33.13",
          "weight": 1,
          "signing_key": "TEST5e4HXhA4yBEGzaXVyjuVabKhG1qGghi6rypvq5fLxAmU9XLRHT",
          "public_key": "946650b30943a46386a296117b0342e18e73e4cb"
        },{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "09ee460834498a4ee361beb819470061b7381b49"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
        }
      ]
    ],[
      "hive",[{
          "son_id": "1.33.6",
          "weight": 1,
          "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB",
          "public_key": "sonaccount07"
        },{
          "son_id": "1.33.14",
          "weight": 1,
          "signing_key": "TEST89qMuZejYeeGvjr3bMEcGyvhD4dyUchmxbLNUBFbPodqJKJPZc",
          "public_key": "sonaccount15"
        },{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "sonaccount01"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "sonaccount02"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "sonaccount03"
        }
      ]
    ]
  ]
}
unlocked >>> 

  • Unvote for son vote_for_son sonaccount14 sonaccount14 ethereum false true
  • Check the son details and the active sons


nlocked >>> get_son sonaccount14
get_son sonaccount14
{
  "id": "1.33.13",
  "son_account": "1.2.49",
  "sidechain_vote_ids": [[
      "bitcoin",
      "3:77"
    ],[
      "ethereum",
      "5:79"
    ],[
      "hive",
      "4:78"
    ]
  ],
  "total_votes": [[
      "bitcoin",
      0
    ],[
      "ethereum",
      0
    ],[
      "hive",
      0
    ]
  ],
  "url": "http://sonaddreess14.com",
  "deposit": "1.13.57",
  "signing_key": "TEST5e4HXhA4yBEGzaXVyjuVabKhG1qGghi6rypvq5fLxAmU9XLRHT",
  "pay_vb": "1.13.56",
  "statistics": "2.25.13",
  "statuses": [[
      "bitcoin",
      "inactive"
    ],[
      "ethereum",
      "inactive"
    ],[
      "hive",
      "inactive"
    ]
  ],
  "sidechain_public_keys": [[
      "bitcoin",
      "0287bcbd4f5d357f89a86979b386402445d7e9a5dccfd16146d1d2ab0dc2c32ae8"
    ],[
      "ethereum",
      "946650b30943a46386a296117b0342e18e73e4cb"
    ],[
      "peerplays",
      "TEST5e4HXhA4yBEGzaXVyjuVabKhG1qGghi6rypvq5fLxAmU9XLRHT"
    ],[
      "hive",
      "sonaccount14"
    ]
  ]
}
unlocked >>> 



unlocked >>> get_active_sons                                             
get_active_sons
[[
    "bitcoin",[{
        "son_id": "1.33.15",
        "weight": 1,
        "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v",
        "public_key": "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247"
      },{
        "son_id": "1.33.6",
        "weight": 1,
        "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB",
        "public_key": "0317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7f"
      },{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
      }
    ]
  ],[
    "ethereum",[{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "09ee460834498a4ee361beb819470061b7381b49"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
      },{
        "son_id": "1.33.4",
        "weight": 1,
        "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
        "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7"
      }
    ]
  ],[
    "hive",[{
        "son_id": "1.33.6",
        "weight": 1,
        "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB",
        "public_key": "sonaccount07"
      },{
        "son_id": "1.33.14",
        "weight": 1,
        "signing_key": "TEST89qMuZejYeeGvjr3bMEcGyvhD4dyUchmxbLNUBFbPodqJKJPZc",
        "public_key": "sonaccount15"
      },{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "sonaccount01"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "sonaccount02"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "sonaccount03"
      }
    ]
  ]
]


It is working fine, here is the test steps: - Check the active sons by `get_active_sons` and `get_global_properties`, they are the same ``` unlocked >>> get_active_sons get_active_sons [[ "bitcoin",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666" } ] ],[ "ethereum",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7" } ] ],[ "hive",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "sonaccount05" } ] ] ] unlocked >>> get_global_properties get_global_properties "active_sons": [[ "bitcoin",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666" } ] ],[ "ethereum",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7" } ] ],[ "hive",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "sonaccount05" } ] ] ] } ``` - Check the active sons by sidechain for bitcoin, hive and ethereum `get_active_sons_by_sidechain`, they are the same ``` unlocked >>> get_active_sons_by_sidechain bitcoin get_active_sons_by_sidechain bitcoin [{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666" } ] get_active_sons_by_sidechain ethereum get_active_sons_by_sidechain ethereum [{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7" } ] get_active_sons_by_sidechain hive get_active_sons_by_sidechain hive [{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "sonaccount05" } ] ``` - Vote for some 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 sonaccount14 sonaccount14 ethereum true true ``` - Check the active sons list if it is updated ``` unlocked >>> get_active_sons get_active_sons [[ "bitcoin",[{ "son_id": "1.33.15", "weight": 1, "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v", "public_key": "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" } ] ],[ "ethereum",[{ "son_id": "1.33.13", "weight": 1, "signing_key": "TEST5e4HXhA4yBEGzaXVyjuVabKhG1qGghi6rypvq5fLxAmU9XLRHT", "public_key": "946650b30943a46386a296117b0342e18e73e4cb" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" } ] ],[ "hive",[{ "son_id": "1.33.14", "weight": 1, "signing_key": "TEST89qMuZejYeeGvjr3bMEcGyvhD4dyUchmxbLNUBFbPodqJKJPZc", "public_key": "sonaccount15" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" } ] ] ] ``` - Vote for sons and check the active sons ``` vote_for_son sonaccount16 sonaccount16 bitcoin true true vote_for_son sonaccount16 sonaccount07 bitcoin true true vote_for_son sonaccount16 sonaccount07 hive true true ``` ``` unlocked >>> get_active_sons get_active_sons [[ "bitcoin",[{ "son_id": "1.33.15", "weight": 1, "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v", "public_key": "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247" },{ "son_id": "1.33.6", "weight": 1, "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB", "public_key": "0317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7f" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" } ] ],[ "ethereum",[{ "son_id": "1.33.13", "weight": 1, "signing_key": "TEST5e4HXhA4yBEGzaXVyjuVabKhG1qGghi6rypvq5fLxAmU9XLRHT", "public_key": "946650b30943a46386a296117b0342e18e73e4cb" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" } ] ],[ "hive",[{ "son_id": "1.33.6", "weight": 1, "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB", "public_key": "sonaccount07" },{ "son_id": "1.33.14", "weight": 1, "signing_key": "TEST89qMuZejYeeGvjr3bMEcGyvhD4dyUchmxbLNUBFbPodqJKJPZc", "public_key": "sonaccount15" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" } ] ] ] ``` - Check active son by bitcoin ``` get_active_sons_by_sidechain bitcoin get_active_sons_by_sidechain bitcoin [{ "son_id": "1.33.15", "weight": 1, "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v", "public_key": "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247" },{ "son_id": "1.33.6", "weight": 1, "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB", "public_key": "0317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7f" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" } ] ``` - Check active son by hive ``` unlocked >>> get_active_sons_by_sidechain hive get_active_sons_by_sidechain hive [{ "son_id": "1.33.6", "weight": 1, "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB", "public_key": "sonaccount07" },{ "son_id": "1.33.14", "weight": 1, "signing_key": "TEST89qMuZejYeeGvjr3bMEcGyvhD4dyUchmxbLNUBFbPodqJKJPZc", "public_key": "sonaccount15" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" } ] ``` - Check son sonaccount16 ``` unlocked >>> get_son sonaccount16 get_son sonaccount16 { "id": "1.33.15", "son_account": "1.2.51", "sidechain_vote_ids": [[ "bitcoin", "3:83" ],[ "ethereum", "5:85" ],[ "hive", "4:84" ] ], "total_votes": [[ "bitcoin", 15000000 ],[ "ethereum", 0 ],[ "hive", 0 ] ], "url": "http://sonaddreess16.com", "deposit": "1.13.63", "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v", "pay_vb": "1.13.62", "statistics": "2.25.15", "statuses": [[ "bitcoin", "active" ],[ "ethereum", "inactive" ],[ "hive", "inactive" ] ], "sidechain_public_keys": [[ "bitcoin", "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247" ],[ "ethereum", "43d4611ceb94c58c7cf9058fa625e16af2ad8d83" ],[ "peerplays", "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v" ],[ "hive", "sonaccount16" ] ] } ``` - Check `get_global_properties` ``` unlocked >>> get_global_properties "active_sons": [[ "bitcoin",[{ "son_id": "1.33.15", "weight": 1, "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v", "public_key": "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247" },{ "son_id": "1.33.6", "weight": 1, "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB", "public_key": "0317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7f" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" } ] ],[ "ethereum",[{ "son_id": "1.33.13", "weight": 1, "signing_key": "TEST5e4HXhA4yBEGzaXVyjuVabKhG1qGghi6rypvq5fLxAmU9XLRHT", "public_key": "946650b30943a46386a296117b0342e18e73e4cb" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" } ] ],[ "hive",[{ "son_id": "1.33.6", "weight": 1, "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB", "public_key": "sonaccount07" },{ "son_id": "1.33.14", "weight": 1, "signing_key": "TEST89qMuZejYeeGvjr3bMEcGyvhD4dyUchmxbLNUBFbPodqJKJPZc", "public_key": "sonaccount15" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" } ] ] ] } unlocked >>> ``` - Unvote for son `vote_for_son sonaccount14 sonaccount14 ethereum false true` - Check the son details and the active sons ``` nlocked >>> get_son sonaccount14 get_son sonaccount14 { "id": "1.33.13", "son_account": "1.2.49", "sidechain_vote_ids": [[ "bitcoin", "3:77" ],[ "ethereum", "5:79" ],[ "hive", "4:78" ] ], "total_votes": [[ "bitcoin", 0 ],[ "ethereum", 0 ],[ "hive", 0 ] ], "url": "http://sonaddreess14.com", "deposit": "1.13.57", "signing_key": "TEST5e4HXhA4yBEGzaXVyjuVabKhG1qGghi6rypvq5fLxAmU9XLRHT", "pay_vb": "1.13.56", "statistics": "2.25.13", "statuses": [[ "bitcoin", "inactive" ],[ "ethereum", "inactive" ],[ "hive", "inactive" ] ], "sidechain_public_keys": [[ "bitcoin", "0287bcbd4f5d357f89a86979b386402445d7e9a5dccfd16146d1d2ab0dc2c32ae8" ],[ "ethereum", "946650b30943a46386a296117b0342e18e73e4cb" ],[ "peerplays", "TEST5e4HXhA4yBEGzaXVyjuVabKhG1qGghi6rypvq5fLxAmU9XLRHT" ],[ "hive", "sonaccount14" ] ] } unlocked >>> unlocked >>> get_active_sons get_active_sons [[ "bitcoin",[{ "son_id": "1.33.15", "weight": 1, "signing_key": "TEST6KRpHxYJSE5vXvoeVMLbKSYnVspt2nnGV2enncRzHgLQ9dez5v", "public_key": "03c880baffd37471f3c7e712e51b339dd08e2056757fc8499ea3d41d4fa1801247" },{ "son_id": "1.33.6", "weight": 1, "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB", "public_key": "0317941e4219548682fb8d8e172f0a8ce4d83ce21272435c85d598558c8e060b7f" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" } ] ],[ "ethereum",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7" } ] ],[ "hive",[{ "son_id": "1.33.6", "weight": 1, "signing_key": "TEST7RMDnipLkFaQ4vtDyVvgyCedRoxyT9JWpAoM9mrE7rwVSyezoB", "public_key": "sonaccount07" },{ "son_id": "1.33.14", "weight": 1, "signing_key": "TEST89qMuZejYeeGvjr3bMEcGyvhD4dyUchmxbLNUBFbPodqJKJPZc", "public_key": "sonaccount15" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" } ] ] ] ```
wsalloum (Migrated from gitlab.com) closed this issue 2022-10-06 13:00:39 +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#430
No description provided.