For HIVE/HBD deposit and withdrawal the number of sgnatures is always 4 instead of 5 #412

Closed
opened 2022-08-01 14:14:21 +00:00 by prandnum · 7 comments
prandnum commented 2022-08-01 14:14:21 +00:00 (Migrated from gitlab.com)

The sidechain transaction object always has 4 signatures instead of 5, see belo:

DEPOSIT:

unlocked >>> get_object 1.36.0                
get_object 1.36.0
[{
    "id": "1.36.0",
    "timestamp": "2022-08-01T07:41:06",
    "block_num": 14407,
    "sidechain": "hive",
    "sidechain_uid": "hive-e704104f33d02516888cb7bb2a10401d2168957e-0",
    "sidechain_transaction_id": "e704104f33d02516888cb7bb2a10401d2168957e",
    "sidechain_from": "account01",
    "sidechain_to": "son-account",
    "sidechain_currency": "HIVE",
    "sidechain_amount": 10000,
    "peerplays_from": "1.2.52",
    "peerplays_to": "1.2.19",
    "peerplays_asset": {
      "amount": 400000,
      "asset_id": "1.3.0"
    },
    "expected_reports": [[
        "1.33.0",
        1
      ],[
        "1.33.1",
        1
      ],[
        "1.33.2",
        1
      ],[
        "1.33.3",
        1
      ],[
        "1.33.4",
        1
      ]
    ],
    "received_reports": [
      "1.33.0",
      "1.33.1",
      "1.33.2",
      "1.33.3",
      "1.33.4"
    ],
    "confirmed": true,
    "processed": true
  }
]
unlocked >>> get_object 1.36.1
get_object 1.36.1
[{
    "id": "1.36.1",
    "timestamp": "2022-08-01T07:41:15",
    "block_num": 14410,
    "sidechain": "hive",
    "sidechain_uid": "hive-81500fb919b11f6abb44410a8c515fcbcab8338c-0",
    "sidechain_transaction_id": "81500fb919b11f6abb44410a8c515fcbcab8338c",
    "sidechain_from": "account03",
    "sidechain_to": "son-account",
    "sidechain_currency": "HBD",
    "sidechain_amount": 20000,
    "peerplays_from": "1.2.54",
    "peerplays_to": "1.2.19",
    "peerplays_asset": {
      "amount": 800000,
      "asset_id": "1.3.0"
    },
    "expected_reports": [[
        "1.33.0",
        1
      ],[
        "1.33.1",
        1
      ],[
        "1.33.2",
        1
      ],[
        "1.33.3",
        1
      ],[
        "1.33.4",
        1
      ]
    ],
    "received_reports": [
      "1.33.0",
      "1.33.1",
      "1.33.2",
      "1.33.3",
      "1.33.4"
    ],
    "confirmed": true,
    "processed": true
  }
]
unlocked >>> get_object 1.39.0                
get_object 1.39.0
[{
    "id": "1.39.0",
    "timestamp": "2022-07-31T19:41:39",
    "sidechain": "hive",
    "object_id": "1.35.0",
    "transaction": "B201DB696E36A4DBE662010A0B736F6E2D6163636F756E74000104000000050C736F6E6163636F756E74303101000C736F6E6163636F756E74303201000C736F6E6163636F756E74303301000C736F6E6163636F756E74303401000C736F6E6163636F756E7430350100000003B073061A9B0B28E1BD49492ACD984D3EBF2F8CFD66AABF7AC2159BAE7B57D366000000",
    "signers": [{
        "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"
      }
    ],
    "signatures": [[
        "1.33.0",
        "20602D14D051D1FD274480695983208CA3C70CBD1C20423CA1AFD03B919F87DD0E441E64A25C398573A17F310521CDFD492717D8253BCB60309D6394EC6598E5E5"
      ],[
        "1.33.1",
        "1F270175929ED03FFA59FE1164097DC6EC642F57ABBA11D05C33BF3D09EC999D4B672775F54E7325FDBAE79EA68C4D24F1139AFD15DA90F27122915590430F6A5E"
      ],[
        "1.33.2",
        ""
      ],[
        "1.33.3",
        "1F687305F19C8F8C4427E6CBA68A5136A8AB2B9CF5E2680B008E788D29D0F8FEBB46E02E373E6D88301F8B21D63178654CD1F840E04E011C991601080E6DB8F3D2"
      ],[
        "1.33.4",
        "1F07E3EAB86AE92F07523AA1A9F68CB0BA5C241FEFB68B99E3966791D8A1AAE7951E7EF4221DD4179D96BCFDCC8F45BA303776E3D4FE8767DAB276C50D827C1979"
      ]
    ],
    "sidechain_transaction": "044559c0667d1d8ee0ac1306069628afbb14b0c0",
    "total_weight": 5,
    "current_weight": 4,
    "threshold": 4,
    "status": "settled"
  }
]

unlocked >>> get_dynamic_global_properties 
get_dynamic_global_properties 
{
  "id": "2.1.0",
  "random": "b4c14f04cdfb53c3e3fdb7f569a980e8bf3fc855",
  "head_block_number": 14559,
  "head_block_id": "000038df3fc5ac1d324b56f24ca75c65724d7ecf",
  "time": "2022-08-01T07:48:42",
  "current_witness": "1.6.4",
  "next_maintenance_time": "2022-08-01T07:50:00",
  "last_budget_time": "2022-08-01T07:40:00",
  "witness_budget": 29000000,
  "last_son_payout_time": "2022-07-31T19:50:00",
  "son_budget": 20000000,
  "accounts_registered_this_interval": 0,
  "recently_missed_count": 0,
  "current_aslot": 9386966,
  "recent_slots_filled": "340282366920938463463374607431768211455",
  "dynamic_flags": 0,
  "last_irreversible_block_num": 14552
}
unlocked >>> 

WITHDRAW:

unlocked >>> get_object 1.37.0 
get_object 1.37.0
[{
    "id": "1.37.0",
    "timestamp": "2022-08-01T07:57:00",
    "block_num": 14722,
    "sidechain": "hive",
    "peerplays_uid": "peerplays-e2616e9201ee14ead3023a4632bdad5cb867f588-0",
    "peerplays_transaction_id": "e2616e9201ee14ead3023a4632bdad5cb867f588",
    "peerplays_from": "1.2.52",
    "peerplays_asset": {
      "amount": 200000,
      "asset_id": "1.3.0"
    },
    "withdraw_sidechain": "hive",
    "withdraw_address": "account01",
    "withdraw_currency": "HIVE",
    "withdraw_amount": 5000,
    "expected_reports": [[
        "1.33.0",
        1
      ],[
        "1.33.1",
        1
      ],[
        "1.33.2",
        1
      ],[
        "1.33.3",
        1
      ],[
        "1.33.4",
        1
      ]
    ],
    "received_reports": [
      "1.33.0",
      "1.33.1",
      "1.33.2",
      "1.33.3",
      "1.33.4"
    ],
    "confirmed": true,
    "processed": true
  }
]
unlocked >>> get_object 1.37.1
get_object 1.37.1
[{
    "id": "1.37.1",
    "timestamp": "2022-08-01T07:57:12",
    "block_num": 14726,
    "sidechain": "hive",
    "peerplays_uid": "peerplays-7791b524bec8896543bdb41c27a80e9b35e393bc-0",
    "peerplays_transaction_id": "7791b524bec8896543bdb41c27a80e9b35e393bc",
    "peerplays_from": "1.2.54",
    "peerplays_asset": {
      "amount": 200000,
      "asset_id": "1.3.0"
    },
    "withdraw_sidechain": "hive",
    "withdraw_address": "account03",
    "withdraw_currency": "HBD",
    "withdraw_amount": 5000,
    "expected_reports": [[
        "1.33.0",
        1
      ],[
        "1.33.1",
        1
      ],[
        "1.33.2",
        1
      ],[
        "1.33.3",
        1
      ],[
        "1.33.4",
        1
      ]
    ],
    "received_reports": [
      "1.33.0",
      "1.33.1",
      "1.33.2",
      "1.33.3",
      "1.33.4"
    ],
    "confirmed": true,
    "processed": true
  }
]
unlocked >>> get_object 1.39.1 
get_object 1.39.1
[{
    "id": "1.39.1",
    "timestamp": "2022-08-01T07:57:03",
    "sidechain": "hive",
    "object_id": "1.37.0",
    "transaction": "263BA63013F10088E76201020B736F6E2D6163636F756E74096163636F756E74303188130000000000000354455354530000000000",
    "signers": [{
        "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"
      }
    ],
    "signatures": [[
        "1.33.0",
        "1F61BB0DDA98E946DB80CAFDAB28A7521AEC3DBF8749B45A3F016043AC75243EA06EF1058EE730A6F2A21D264148EA370179324050902FF034C191064D5AEEB0DF"
      ],[
        "1.33.1",
        "1F62A4FDEFF18735984DFCCB0ADAE4CF4A3B1BDB816E5A997E8E17EC5EE12F6880404E872893972AFA7A2850F6E6091D666BDE59F343528722A8043063C046066A"
      ],[
        "1.33.2",
        ""
      ],[
        "1.33.3",
        "2062963B4C1FD51616E42948A30A9D456090EB2BC0A57B8D30AB541A1323D8F4AD34F234BE2CCACDD32CF6B9DA3AD54F9AA629033D2F49A5E8D5C18C11C680223C"
      ],[
        "1.33.4",
        "204C130B16C04B40B8A620B1D654D5A030600EC2DFCB7242E79550C458608D40554EB584E86E82CAF4A7E22619C0ABFB9447C2109B823A7CC7A5E7F5FBD1513ED5"
      ]
    ],
    "sidechain_transaction": "57cdc052728e759b92d40227591e7b892cc3cb3e",
    "total_weight": 5,
    "current_weight": 4,
    "threshold": 4,
    "status": "settled"
  }
]
unlocked >>> get_object 1.39.2
get_object 1.39.2
[{
    "id": "1.39.2",
    "timestamp": "2022-08-01T07:57:18",
    "sidechain": "hive",
    "object_id": "1.37.1",
    "transaction": "2B3BE8941F230F88E76201020B736F6E2D6163636F756E74096163636F756E74303388130000000000000354424400000000000000",
    "signers": [{
        "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"
      }
    ],
    "signatures": [[
        "1.33.0",
        "1F759900ED4AE99BBC5EC6BCE0255B798E9A2C48C0842A3416B33F3E28E7F03DD6111A4D8D317D16028B13C9B3992AE25C4488E72A08C7360AF561C9BC068BBACE"
      ],[
        "1.33.1",
        "1F5039AD2405BBEA8E486AF5C37082A70634947A99424A4C922E20A5C891B9FE7044F1C69321C1E6441C78FE8E3C845B2AABDA4FABC74DF6736314EAE9477B4EB3"
      ],[
        "1.33.2",
        "205570007783FCD2862E955346D470D39644DC01991358CAB7139ED6A83A961B4C32210AF30976D39C05FBC478D95B13113F920D6B1598EC64F6B54174AB336BC4"
      ],[
        "1.33.3",
        ""
      ],[
        "1.33.4",
        "2048A21800A0FE9124588973481D51E06C054129D390DC0A3BC122560B1CE1849B583A3790AB6CFC0B2869C8D734DA0A09221CD36E55918C545D4BF342F6F1BE14"
      ]
    ],
    "sidechain_transaction": "34bd6623bd884d6fb58c2b7bebeb1c63607275d6",
    "total_weight": 5,
    "current_weight": 4,
    "threshold": 4,
    "status": "settled"
  }
]

unlocked >>> get_dynamic_global_properties 
get_dynamic_global_properties 
{
  "id": "2.1.0",
  "random": "68c0c2d0d4dc3dc82ebe09bb57ac8efa28cbd80f",
  "head_block_number": 14768,
  "head_block_id": "000039b0c4e860bcf4008626c318b52b353912c3",
  "time": "2022-08-01T07:59:18",
  "current_witness": "1.6.3",
  "next_maintenance_time": "2022-08-01T08:00:00",
  "last_budget_time": "2022-08-01T07:50:00",
  "witness_budget": 17000000,
  "last_son_payout_time": "2022-07-31T19:50:00",
  "son_budget": 20000000,
  "accounts_registered_this_interval": 0,
  "recently_missed_count": 0,
  "current_aslot": 9387175,
  "recent_slots_filled": "340282366920938463463374607431768211455",
  "dynamic_flags": 0,
  "last_irreversible_block_num": 14759
}
unlocked >>> 
The sidechain transaction object always has 4 signatures instead of 5, see belo: DEPOSIT: ``` unlocked >>> get_object 1.36.0 get_object 1.36.0 [{ "id": "1.36.0", "timestamp": "2022-08-01T07:41:06", "block_num": 14407, "sidechain": "hive", "sidechain_uid": "hive-e704104f33d02516888cb7bb2a10401d2168957e-0", "sidechain_transaction_id": "e704104f33d02516888cb7bb2a10401d2168957e", "sidechain_from": "account01", "sidechain_to": "son-account", "sidechain_currency": "HIVE", "sidechain_amount": 10000, "peerplays_from": "1.2.52", "peerplays_to": "1.2.19", "peerplays_asset": { "amount": 400000, "asset_id": "1.3.0" }, "expected_reports": [[ "1.33.0", 1 ],[ "1.33.1", 1 ],[ "1.33.2", 1 ],[ "1.33.3", 1 ],[ "1.33.4", 1 ] ], "received_reports": [ "1.33.0", "1.33.1", "1.33.2", "1.33.3", "1.33.4" ], "confirmed": true, "processed": true } ] unlocked >>> get_object 1.36.1 get_object 1.36.1 [{ "id": "1.36.1", "timestamp": "2022-08-01T07:41:15", "block_num": 14410, "sidechain": "hive", "sidechain_uid": "hive-81500fb919b11f6abb44410a8c515fcbcab8338c-0", "sidechain_transaction_id": "81500fb919b11f6abb44410a8c515fcbcab8338c", "sidechain_from": "account03", "sidechain_to": "son-account", "sidechain_currency": "HBD", "sidechain_amount": 20000, "peerplays_from": "1.2.54", "peerplays_to": "1.2.19", "peerplays_asset": { "amount": 800000, "asset_id": "1.3.0" }, "expected_reports": [[ "1.33.0", 1 ],[ "1.33.1", 1 ],[ "1.33.2", 1 ],[ "1.33.3", 1 ],[ "1.33.4", 1 ] ], "received_reports": [ "1.33.0", "1.33.1", "1.33.2", "1.33.3", "1.33.4" ], "confirmed": true, "processed": true } ] unlocked >>> get_object 1.39.0 get_object 1.39.0 [{ "id": "1.39.0", "timestamp": "2022-07-31T19:41:39", "sidechain": "hive", "object_id": "1.35.0", "transaction": "B201DB696E36A4DBE662010A0B736F6E2D6163636F756E74000104000000050C736F6E6163636F756E74303101000C736F6E6163636F756E74303201000C736F6E6163636F756E74303301000C736F6E6163636F756E74303401000C736F6E6163636F756E7430350100000003B073061A9B0B28E1BD49492ACD984D3EBF2F8CFD66AABF7AC2159BAE7B57D366000000", "signers": [{ "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" } ], "signatures": [[ "1.33.0", "20602D14D051D1FD274480695983208CA3C70CBD1C20423CA1AFD03B919F87DD0E441E64A25C398573A17F310521CDFD492717D8253BCB60309D6394EC6598E5E5" ],[ "1.33.1", "1F270175929ED03FFA59FE1164097DC6EC642F57ABBA11D05C33BF3D09EC999D4B672775F54E7325FDBAE79EA68C4D24F1139AFD15DA90F27122915590430F6A5E" ],[ "1.33.2", "" ],[ "1.33.3", "1F687305F19C8F8C4427E6CBA68A5136A8AB2B9CF5E2680B008E788D29D0F8FEBB46E02E373E6D88301F8B21D63178654CD1F840E04E011C991601080E6DB8F3D2" ],[ "1.33.4", "1F07E3EAB86AE92F07523AA1A9F68CB0BA5C241FEFB68B99E3966791D8A1AAE7951E7EF4221DD4179D96BCFDCC8F45BA303776E3D4FE8767DAB276C50D827C1979" ] ], "sidechain_transaction": "044559c0667d1d8ee0ac1306069628afbb14b0c0", "total_weight": 5, "current_weight": 4, "threshold": 4, "status": "settled" } ] unlocked >>> get_dynamic_global_properties get_dynamic_global_properties { "id": "2.1.0", "random": "b4c14f04cdfb53c3e3fdb7f569a980e8bf3fc855", "head_block_number": 14559, "head_block_id": "000038df3fc5ac1d324b56f24ca75c65724d7ecf", "time": "2022-08-01T07:48:42", "current_witness": "1.6.4", "next_maintenance_time": "2022-08-01T07:50:00", "last_budget_time": "2022-08-01T07:40:00", "witness_budget": 29000000, "last_son_payout_time": "2022-07-31T19:50:00", "son_budget": 20000000, "accounts_registered_this_interval": 0, "recently_missed_count": 0, "current_aslot": 9386966, "recent_slots_filled": "340282366920938463463374607431768211455", "dynamic_flags": 0, "last_irreversible_block_num": 14552 } unlocked >>> ``` WITHDRAW: ``` unlocked >>> get_object 1.37.0 get_object 1.37.0 [{ "id": "1.37.0", "timestamp": "2022-08-01T07:57:00", "block_num": 14722, "sidechain": "hive", "peerplays_uid": "peerplays-e2616e9201ee14ead3023a4632bdad5cb867f588-0", "peerplays_transaction_id": "e2616e9201ee14ead3023a4632bdad5cb867f588", "peerplays_from": "1.2.52", "peerplays_asset": { "amount": 200000, "asset_id": "1.3.0" }, "withdraw_sidechain": "hive", "withdraw_address": "account01", "withdraw_currency": "HIVE", "withdraw_amount": 5000, "expected_reports": [[ "1.33.0", 1 ],[ "1.33.1", 1 ],[ "1.33.2", 1 ],[ "1.33.3", 1 ],[ "1.33.4", 1 ] ], "received_reports": [ "1.33.0", "1.33.1", "1.33.2", "1.33.3", "1.33.4" ], "confirmed": true, "processed": true } ] unlocked >>> get_object 1.37.1 get_object 1.37.1 [{ "id": "1.37.1", "timestamp": "2022-08-01T07:57:12", "block_num": 14726, "sidechain": "hive", "peerplays_uid": "peerplays-7791b524bec8896543bdb41c27a80e9b35e393bc-0", "peerplays_transaction_id": "7791b524bec8896543bdb41c27a80e9b35e393bc", "peerplays_from": "1.2.54", "peerplays_asset": { "amount": 200000, "asset_id": "1.3.0" }, "withdraw_sidechain": "hive", "withdraw_address": "account03", "withdraw_currency": "HBD", "withdraw_amount": 5000, "expected_reports": [[ "1.33.0", 1 ],[ "1.33.1", 1 ],[ "1.33.2", 1 ],[ "1.33.3", 1 ],[ "1.33.4", 1 ] ], "received_reports": [ "1.33.0", "1.33.1", "1.33.2", "1.33.3", "1.33.4" ], "confirmed": true, "processed": true } ] unlocked >>> get_object 1.39.1 get_object 1.39.1 [{ "id": "1.39.1", "timestamp": "2022-08-01T07:57:03", "sidechain": "hive", "object_id": "1.37.0", "transaction": "263BA63013F10088E76201020B736F6E2D6163636F756E74096163636F756E74303188130000000000000354455354530000000000", "signers": [{ "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" } ], "signatures": [[ "1.33.0", "1F61BB0DDA98E946DB80CAFDAB28A7521AEC3DBF8749B45A3F016043AC75243EA06EF1058EE730A6F2A21D264148EA370179324050902FF034C191064D5AEEB0DF" ],[ "1.33.1", "1F62A4FDEFF18735984DFCCB0ADAE4CF4A3B1BDB816E5A997E8E17EC5EE12F6880404E872893972AFA7A2850F6E6091D666BDE59F343528722A8043063C046066A" ],[ "1.33.2", "" ],[ "1.33.3", "2062963B4C1FD51616E42948A30A9D456090EB2BC0A57B8D30AB541A1323D8F4AD34F234BE2CCACDD32CF6B9DA3AD54F9AA629033D2F49A5E8D5C18C11C680223C" ],[ "1.33.4", "204C130B16C04B40B8A620B1D654D5A030600EC2DFCB7242E79550C458608D40554EB584E86E82CAF4A7E22619C0ABFB9447C2109B823A7CC7A5E7F5FBD1513ED5" ] ], "sidechain_transaction": "57cdc052728e759b92d40227591e7b892cc3cb3e", "total_weight": 5, "current_weight": 4, "threshold": 4, "status": "settled" } ] unlocked >>> get_object 1.39.2 get_object 1.39.2 [{ "id": "1.39.2", "timestamp": "2022-08-01T07:57:18", "sidechain": "hive", "object_id": "1.37.1", "transaction": "2B3BE8941F230F88E76201020B736F6E2D6163636F756E74096163636F756E74303388130000000000000354424400000000000000", "signers": [{ "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" } ], "signatures": [[ "1.33.0", "1F759900ED4AE99BBC5EC6BCE0255B798E9A2C48C0842A3416B33F3E28E7F03DD6111A4D8D317D16028B13C9B3992AE25C4488E72A08C7360AF561C9BC068BBACE" ],[ "1.33.1", "1F5039AD2405BBEA8E486AF5C37082A70634947A99424A4C922E20A5C891B9FE7044F1C69321C1E6441C78FE8E3C845B2AABDA4FABC74DF6736314EAE9477B4EB3" ],[ "1.33.2", "205570007783FCD2862E955346D470D39644DC01991358CAB7139ED6A83A961B4C32210AF30976D39C05FBC478D95B13113F920D6B1598EC64F6B54174AB336BC4" ],[ "1.33.3", "" ],[ "1.33.4", "2048A21800A0FE9124588973481D51E06C054129D390DC0A3BC122560B1CE1849B583A3790AB6CFC0B2869C8D734DA0A09221CD36E55918C545D4BF342F6F1BE14" ] ], "sidechain_transaction": "34bd6623bd884d6fb58c2b7bebeb1c63607275d6", "total_weight": 5, "current_weight": 4, "threshold": 4, "status": "settled" } ] unlocked >>> get_dynamic_global_properties get_dynamic_global_properties { "id": "2.1.0", "random": "68c0c2d0d4dc3dc82ebe09bb57ac8efa28cbd80f", "head_block_number": 14768, "head_block_id": "000039b0c4e860bcf4008626c318b52b353912c3", "time": "2022-08-01T07:59:18", "current_witness": "1.6.3", "next_maintenance_time": "2022-08-01T08:00:00", "last_budget_time": "2022-08-01T07:50:00", "witness_budget": 17000000, "last_son_payout_time": "2022-07-31T19:50:00", "son_budget": 20000000, "accounts_registered_this_interval": 0, "recently_missed_count": 0, "current_aslot": 9387175, "recent_slots_filled": "340282366920938463463374607431768211455", "dynamic_flags": 0, "last_irreversible_block_num": 14759 } unlocked >>> ```
prandnum commented 2022-08-01 14:14:59 +00:00 (Migrated from gitlab.com)

@bobinson @serkixenos

CC: @tai.sama

@bobinson @serkixenos CC: @tai.sama
prandnum commented 2022-08-01 16:30:40 +00:00 (Migrated from gitlab.com)

mentioned in issue #409

mentioned in issue #409
prandnum commented 2022-08-01 18:20:38 +00:00 (Migrated from gitlab.com)

i think it is expected behavior (5/3)*2+1 is 4 sons that's all the confirmations it requires.
@serkixenos please confirm

i think it is expected behavior (5/3)*2+1 is 4 sons that's all the confirmations it requires. @serkixenos please confirm
serkixenos commented 2022-08-02 00:17:50 +00:00 (Migrated from gitlab.com)

The 1.39.X objects show expected signers and their weights, threshold that needs to be reached in order to broadcast the transaction, and all the numbers are correct. As each SON has weight of 1, we need at least 4 signatures. We got them, the transaction is sent and settled. All is good here.

When calculating threshold, we need to be aware of how CPU integer math works.

In CPU integer math, due to rounding, 5 / 3 is 1, so the formula (5 / 3) * 2 + 1 is calculated to 3.

The actual formula is 5 * 2 / 3 + 1, which is 4.

The 1.39.X objects show expected signers and their weights, threshold that needs to be reached in order to broadcast the transaction, and all the numbers are correct. As each SON has weight of 1, we need at least 4 signatures. We got them, the transaction is sent and settled. All is good here. When calculating threshold, we need to be aware of how CPU integer math works. In CPU integer math, due to rounding, 5 / 3 is 1, so the formula (5 / 3) * 2 + 1 is calculated to 3. The actual formula is 5 * 2 / 3 + 1, which is 4.
serkixenos commented 2022-08-02 00:18:20 +00:00 (Migrated from gitlab.com)

assigned to @serkixenos

assigned to @serkixenos
serkixenos commented 2022-08-02 00:18:48 +00:00 (Migrated from gitlab.com)

assigned to @prandnum

assigned to @prandnum
prandnum commented 2022-08-02 14:34:51 +00:00 (Migrated from gitlab.com)

agreed closing.

agreed closing.
prandnum (Migrated from gitlab.com) closed this issue 2022-08-02 14:34:52 +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#412
No description provided.