proposals objects not getting created when a transaction to propose a parameter change is initiated using propose_parameter_change command #118

Closed
opened 2021-05-26 18:42:30 +00:00 by prandnum · 4 comments
prandnum commented 2021-05-26 18:42:30 +00:00 (Migrated from gitlab.com)
unlocked >>> propose_parameter_change init0 "2021-05-26T18:50:13" {"extensions":{"maximum_son_count" : 7}} true
propose_parameter_change init0 "2021-05-26T18:50:13" {"extensions":{"maximum_son_count" : 7}} true
{
  "ref_block_num": 42049,
  "ref_block_prefix": 2091835303,
  "expiration": "2021-05-26T18:37:09",
  "operations": [[
      22,{
        "fee": {
          "amount": 0,
          "asset_id": "1.3.0"
        },
        "fee_paying_account": "1.2.7",
        "expiration_time": "2021-05-26T18:50:13",
        "proposed_ops": [{
            "op": [
              31,{
                "fee": {
                  "amount": 100000,
                  "asset_id": "1.3.0"
                },
                "new_parameters": {
                  "current_fees": {
                    "parameters": [[
                        0,{
                          "fee": 2000000,
                          "price_per_kbyte": 1000000
                        }
                      ],[
                        1,{
                          "fee": 500000
                        }
                      ],[
                        2,{
                          "fee": 0
                        }
                      ],[
                        3,{
                          "fee": 2000000
                        }
                      ],[
                        4,{}
                      ],[
                        5,{
                          "basic_fee": 500000,
                          "premium_fee": 200000000,
                          "price_per_kbyte": 100000
                        }
                      ],[
                        6,{
                          "fee": 2000000,
                          "price_per_kbyte": 100000
                        }
                      ],[
                        7,{
                          "fee": 300000
                        }
                      ],[
                        8,{
                          "membership_annual_fee": 200000000,
                          "membership_lifetime_fee": 1000000000
                        }
                      ],[
                        9,{
                          "fee": 50000000
                        }
                      ],[
                        10,{
                          "symbol3": "50000000000",
                          "symbol4": "30000000000",
                          "long_symbol": 500000000,
                          "price_per_kbyte": 10
                        }
                      ],[
                        11,{
                          "fee": 50000000,
                          "price_per_kbyte": 10
                        }
                      ],[
                        12,{
                          "fee": 50000000
                        }
                      ],[
                        13,{
                          "fee": 50000000
                        }
                      ],[
                        14,{
                          "fee": 2000000,
                          "price_per_kbyte": 100000
                        }
                      ],[
                        15,{
                          "fee": 2000000
                        }
                      ],[
                        16,{
                          "fee": 100000
                        }
                      ],[
                        17,{
                          "fee": 10000000
                        }
                      ],[
                        18,{
                          "fee": 50000000
                        }
                      ],[
                        19,{
                          "fee": 100000
                        }
                      ],[
                        20,{
                          "fee": 500000000
                        }
                      ],[
                        21,{
                          "fee": 2000000
                        }
                      ],[
                        22,{
                          "fee": 0,
                          "price_per_kbyte": 0
                        }
                      ],[
                        23,{
                          "fee": 0,
                          "price_per_kbyte": 0
                        }
                      ],[
                        24,{
                          "fee": 100000
                        }
                      ],[
                        25,{
                          "fee": 100000
                        }
                      ],[
                        26,{
                          "fee": 100000
                        }
                      ],[
                        27,{
                          "fee": 2000000,
                          "price_per_kbyte": 10
                        }
                      ],[
                        28,{
                          "fee": 0
                        }
                      ],[
                        29,{
                          "fee": 500000000
                        }
                      ],[
                        30,{
                          "fee": 2000000
                        }
                      ],[
                        31,{
                          "fee": 100000
                        }
                      ],[
                        32,{
                          "fee": 100000
                        }
                      ],[
                        33,{
                          "fee": 2000000
                        }
                      ],[
                        34,{
                          "fee": 500000000
                        }
                      ],[
                        35,{
                          "fee": 100000,
                          "price_per_kbyte": 10
                        }
                      ],[
                        36,{
                          "fee": 100000
                        }
                      ],[
                        37,{}
                      ],[
                        38,{
                          "fee": 2000000,
                          "price_per_kbyte": 10
                        }
                      ],[
                        39,{
                          "fee": 500000,
                          "price_per_output": 500000
                        }
                      ],[
                        40,{
                          "fee": 500000,
                          "price_per_output": 500000
                        }
                      ],[
                        41,{
                          "fee": 500000
                        }
                      ],[
                        42,{}
                      ],[
                        43,{
                          "fee": 2000000
                        }
                      ],[
                        44,{}
                      ],[
                        45,{
                          "fee": 100000
                        }
                      ],[
                        46,{
                          "fee": 100000
                        }
                      ],[
                        47,{
                          "fee": 100000
                        }
                      ],[
                        48,{
                          "fee": 50000000
                        }
                      ],[
                        49,{
                          "distribution_base_fee": 0,
                          "distribution_fee_per_holder": 0
                        }
                      ],[
                        50,{}
                      ],[
                        51,{
                          "fee": 100000
                        }
                      ],[
                        52,{
                          "fee": 100000
                        }
                      ],[
                        53,{
                          "fee": 100000
                        }
                      ],[
                        54,{
                          "fee": 100000
                        }
                      ],[
                        55,{
                          "fee": 100000
                        }
                      ],[
                        56,{
                          "fee": 100000
                        }
                      ],[
                        57,{
                          "fee": 100000
                        }
                      ],[
                        58,{
                          "fee": 100000
                        }
                      ],[
                        59,{
                          "fee": 100000
                        }
                      ],[
                        60,{
                          "fee": 100000
                        }
                      ],[
                        61,{
                          "fee": 100000
                        }
                      ],[
                        62,{
                          "fee": 100000
                        }
                      ],[
                        63,{
                          "fee": 100000
                        }
                      ],[
                        64,{}
                      ],[
                        65,{}
                      ],[
                        66,{
                          "fee": 100000
                        }
                      ],[
                        67,{}
                      ],[
                        68,{
                          "fee": 100000
                        }
                      ],[
                        69,{}
                      ],[
                        70,{
                          "fee": 100000
                        }
                      ],[
                        71,{
                          "fee": 100000
                        }
                      ],[
                        72,{
                          "fee": 100000
                        }
                      ],[
                        73,{
                          "fee": 100000
                        }
                      ],[
                        74,{
                          "fee": 100000
                        }
                      ],[
                        75,{}
                      ],[
                        76,{}
                      ],[
                        77,{
                          "lottery_asset": 2000000,
                          "price_per_kbyte": 10
                        }
                      ],[
                        78,{
                          "fee": 0
                        }
                      ],[
                        79,{
                          "fee": 0
                        }
                      ],[
                        80,{
                          "fee": 0
                        }
                      ],[
                        81,{
                          "fee": 2000000
                        }
                      ]
                    ],
                    "scale": 10000
                  },
                  "block_interval": 3,
                  "maintenance_interval": 600,
                  "maintenance_skip_slots": 3,
                  "committee_proposal_review_period": 240,
                  "maximum_transaction_size": 2048,
                  "maximum_block_size": 1228800000,
                  "maximum_time_until_expiration": 86400,
                  "maximum_proposal_lifetime": 2419200,
                  "maximum_asset_whitelist_authorities": 10,
                  "maximum_asset_feed_publishers": 10,
                  "maximum_witness_count": 1001,
                  "maximum_committee_count": 1001,
                  "maximum_authority_membership": 10,
                  "reserve_percent_of_fee": 2000,
                  "network_percent_of_fee": 2000,
                  "lifetime_referrer_percent_of_fee": 3000,
                  "cashback_vesting_period_seconds": 31536000,
                  "cashback_vesting_threshold": 10000000,
                  "count_non_member_votes": true,
                  "allow_non_member_whitelists": false,
                  "witness_pay_per_block": 1000000,
                  "worker_budget_per_day": "50000000000",
                  "max_predicate_opcode": 1,
                  "fee_liquidation_threshold": 10000000,
                  "accounts_per_fee_scale": 1000,
                  "account_fee_scale_bitshifts": 4,
                  "max_authority_depth": 2,
                  "witness_schedule_algorithm": 1,
                  "min_round_delay": 0,
                  "max_round_delay": 600,
                  "min_time_per_commit_move": 0,
                  "max_time_per_commit_move": 600,
                  "min_time_per_reveal_move": 0,
                  "max_time_per_reveal_move": 600,
                  "rake_fee_percentage": 300,
                  "maximum_registration_deadline": 2592000,
                  "maximum_players_in_tournament": 256,
                  "maximum_tournament_whitelist_length": 1000,
                  "maximum_tournament_start_time_in_future": 2419200,
                  "maximum_tournament_start_delay": 604800,
                  "maximum_tournament_number_of_wins": 100,
                  "extensions": {
                    "sweeps_distribution_percentage": 200,
                    "sweeps_distribution_asset": "1.3.0",
                    "sweeps_vesting_accumulator_account": "1.2.0",
                    "gpos_period": 15552000,
                    "gpos_subperiod": 2592000,
                    "gpos_period_start": 1578272400,
                    "gpos_vesting_lockin_period": 2592000,
                    "rbac_max_permissions_per_account": 5,
                    "rbac_max_account_authority_lifetime": 15552000,
                    "rbac_max_authorities_per_permission": 15,
                    "account_roles_max_per_account": 20,
                    "account_roles_max_lifetime": 31536000,
                    "son_vesting_amount": 5000000,
                    "son_vesting_period": 172800,
                    "son_pay_max": 20000000,
                    "son_pay_time": 86400,
                    "son_deregister_time": 43200,
                    "son_heartbeat_frequency": 180,
                    "son_down_time": 360,
                    "son_bitcoin_min_tx_confirmations": 1,
                    "son_account": "1.2.3",
                    "btc_asset": "1.3.0",
                    "maximum_son_count": 7
                  }
                }
              }
            ]
          }
        ],
        "review_period_seconds": 240,
        "extensions": []
      }
    ]
  ],
  "extensions": [],
  "signatures": [
    "2024bca794fecb1f4af92e2935b8748605d4a0e85e8752f9f9bda9ce8788464cf76bf48509a6f157fd8b2f0df8bdf798b5a7e8b3b41fe18263574dfab7caf0b4ba"
  ]
}
unlocked >>> get_object 1.10.1
get_object 1.10.1
[
  null
]
unlocked >>> get_object 1.10.0
get_object 1.10.0
[
  null
]
unlocked >>> get_object 1.10.2
get_object 1.10.2
[
  null
]
unlocked >>> approve_proposal init0 "1.10.1" {"active_approvals_to_add" : ["init0"]} true
approve_proposal init0 "1.10.1" {"active_approvals_to_add" : ["init0"]} true
7 bad_cast_exception: Bad Cast
Invalid cast from type 'null_type' to Object
    {"type":"null_type"}
    th_a  variant.cpp:574 get_object
unlocked >>>
``` unlocked >>> propose_parameter_change init0 "2021-05-26T18:50:13" {"extensions":{"maximum_son_count" : 7}} true propose_parameter_change init0 "2021-05-26T18:50:13" {"extensions":{"maximum_son_count" : 7}} true { "ref_block_num": 42049, "ref_block_prefix": 2091835303, "expiration": "2021-05-26T18:37:09", "operations": [[ 22,{ "fee": { "amount": 0, "asset_id": "1.3.0" }, "fee_paying_account": "1.2.7", "expiration_time": "2021-05-26T18:50:13", "proposed_ops": [{ "op": [ 31,{ "fee": { "amount": 100000, "asset_id": "1.3.0" }, "new_parameters": { "current_fees": { "parameters": [[ 0,{ "fee": 2000000, "price_per_kbyte": 1000000 } ],[ 1,{ "fee": 500000 } ],[ 2,{ "fee": 0 } ],[ 3,{ "fee": 2000000 } ],[ 4,{} ],[ 5,{ "basic_fee": 500000, "premium_fee": 200000000, "price_per_kbyte": 100000 } ],[ 6,{ "fee": 2000000, "price_per_kbyte": 100000 } ],[ 7,{ "fee": 300000 } ],[ 8,{ "membership_annual_fee": 200000000, "membership_lifetime_fee": 1000000000 } ],[ 9,{ "fee": 50000000 } ],[ 10,{ "symbol3": "50000000000", "symbol4": "30000000000", "long_symbol": 500000000, "price_per_kbyte": 10 } ],[ 11,{ "fee": 50000000, "price_per_kbyte": 10 } ],[ 12,{ "fee": 50000000 } ],[ 13,{ "fee": 50000000 } ],[ 14,{ "fee": 2000000, "price_per_kbyte": 100000 } ],[ 15,{ "fee": 2000000 } ],[ 16,{ "fee": 100000 } ],[ 17,{ "fee": 10000000 } ],[ 18,{ "fee": 50000000 } ],[ 19,{ "fee": 100000 } ],[ 20,{ "fee": 500000000 } ],[ 21,{ "fee": 2000000 } ],[ 22,{ "fee": 0, "price_per_kbyte": 0 } ],[ 23,{ "fee": 0, "price_per_kbyte": 0 } ],[ 24,{ "fee": 100000 } ],[ 25,{ "fee": 100000 } ],[ 26,{ "fee": 100000 } ],[ 27,{ "fee": 2000000, "price_per_kbyte": 10 } ],[ 28,{ "fee": 0 } ],[ 29,{ "fee": 500000000 } ],[ 30,{ "fee": 2000000 } ],[ 31,{ "fee": 100000 } ],[ 32,{ "fee": 100000 } ],[ 33,{ "fee": 2000000 } ],[ 34,{ "fee": 500000000 } ],[ 35,{ "fee": 100000, "price_per_kbyte": 10 } ],[ 36,{ "fee": 100000 } ],[ 37,{} ],[ 38,{ "fee": 2000000, "price_per_kbyte": 10 } ],[ 39,{ "fee": 500000, "price_per_output": 500000 } ],[ 40,{ "fee": 500000, "price_per_output": 500000 } ],[ 41,{ "fee": 500000 } ],[ 42,{} ],[ 43,{ "fee": 2000000 } ],[ 44,{} ],[ 45,{ "fee": 100000 } ],[ 46,{ "fee": 100000 } ],[ 47,{ "fee": 100000 } ],[ 48,{ "fee": 50000000 } ],[ 49,{ "distribution_base_fee": 0, "distribution_fee_per_holder": 0 } ],[ 50,{} ],[ 51,{ "fee": 100000 } ],[ 52,{ "fee": 100000 } ],[ 53,{ "fee": 100000 } ],[ 54,{ "fee": 100000 } ],[ 55,{ "fee": 100000 } ],[ 56,{ "fee": 100000 } ],[ 57,{ "fee": 100000 } ],[ 58,{ "fee": 100000 } ],[ 59,{ "fee": 100000 } ],[ 60,{ "fee": 100000 } ],[ 61,{ "fee": 100000 } ],[ 62,{ "fee": 100000 } ],[ 63,{ "fee": 100000 } ],[ 64,{} ],[ 65,{} ],[ 66,{ "fee": 100000 } ],[ 67,{} ],[ 68,{ "fee": 100000 } ],[ 69,{} ],[ 70,{ "fee": 100000 } ],[ 71,{ "fee": 100000 } ],[ 72,{ "fee": 100000 } ],[ 73,{ "fee": 100000 } ],[ 74,{ "fee": 100000 } ],[ 75,{} ],[ 76,{} ],[ 77,{ "lottery_asset": 2000000, "price_per_kbyte": 10 } ],[ 78,{ "fee": 0 } ],[ 79,{ "fee": 0 } ],[ 80,{ "fee": 0 } ],[ 81,{ "fee": 2000000 } ] ], "scale": 10000 }, "block_interval": 3, "maintenance_interval": 600, "maintenance_skip_slots": 3, "committee_proposal_review_period": 240, "maximum_transaction_size": 2048, "maximum_block_size": 1228800000, "maximum_time_until_expiration": 86400, "maximum_proposal_lifetime": 2419200, "maximum_asset_whitelist_authorities": 10, "maximum_asset_feed_publishers": 10, "maximum_witness_count": 1001, "maximum_committee_count": 1001, "maximum_authority_membership": 10, "reserve_percent_of_fee": 2000, "network_percent_of_fee": 2000, "lifetime_referrer_percent_of_fee": 3000, "cashback_vesting_period_seconds": 31536000, "cashback_vesting_threshold": 10000000, "count_non_member_votes": true, "allow_non_member_whitelists": false, "witness_pay_per_block": 1000000, "worker_budget_per_day": "50000000000", "max_predicate_opcode": 1, "fee_liquidation_threshold": 10000000, "accounts_per_fee_scale": 1000, "account_fee_scale_bitshifts": 4, "max_authority_depth": 2, "witness_schedule_algorithm": 1, "min_round_delay": 0, "max_round_delay": 600, "min_time_per_commit_move": 0, "max_time_per_commit_move": 600, "min_time_per_reveal_move": 0, "max_time_per_reveal_move": 600, "rake_fee_percentage": 300, "maximum_registration_deadline": 2592000, "maximum_players_in_tournament": 256, "maximum_tournament_whitelist_length": 1000, "maximum_tournament_start_time_in_future": 2419200, "maximum_tournament_start_delay": 604800, "maximum_tournament_number_of_wins": 100, "extensions": { "sweeps_distribution_percentage": 200, "sweeps_distribution_asset": "1.3.0", "sweeps_vesting_accumulator_account": "1.2.0", "gpos_period": 15552000, "gpos_subperiod": 2592000, "gpos_period_start": 1578272400, "gpos_vesting_lockin_period": 2592000, "rbac_max_permissions_per_account": 5, "rbac_max_account_authority_lifetime": 15552000, "rbac_max_authorities_per_permission": 15, "account_roles_max_per_account": 20, "account_roles_max_lifetime": 31536000, "son_vesting_amount": 5000000, "son_vesting_period": 172800, "son_pay_max": 20000000, "son_pay_time": 86400, "son_deregister_time": 43200, "son_heartbeat_frequency": 180, "son_down_time": 360, "son_bitcoin_min_tx_confirmations": 1, "son_account": "1.2.3", "btc_asset": "1.3.0", "maximum_son_count": 7 } } } ] } ], "review_period_seconds": 240, "extensions": [] } ] ], "extensions": [], "signatures": [ "2024bca794fecb1f4af92e2935b8748605d4a0e85e8752f9f9bda9ce8788464cf76bf48509a6f157fd8b2f0df8bdf798b5a7e8b3b41fe18263574dfab7caf0b4ba" ] } unlocked >>> get_object 1.10.1 get_object 1.10.1 [ null ] unlocked >>> get_object 1.10.0 get_object 1.10.0 [ null ] unlocked >>> get_object 1.10.2 get_object 1.10.2 [ null ] unlocked >>> approve_proposal init0 "1.10.1" {"active_approvals_to_add" : ["init0"]} true approve_proposal init0 "1.10.1" {"active_approvals_to_add" : ["init0"]} true 7 bad_cast_exception: Bad Cast Invalid cast from type 'null_type' to Object {"type":"null_type"} th_a variant.cpp:574 get_object unlocked >>> ```
prandnum commented 2021-05-26 18:42:31 +00:00 (Migrated from gitlab.com)

assigned to @sierra19XX

assigned to @sierra19XX
prandnum commented 2021-05-26 18:43:08 +00:00 (Migrated from gitlab.com)

@bobinson @sierra19XX @serkixenos

CC: @hbelakon

@bobinson @sierra19XX @serkixenos CC: @hbelakon
sierra19XX commented 2021-05-31 12:23:47 +00:00 (Migrated from gitlab.com)

changed time estimate to 5h

changed time estimate to 5h
sierra19XX commented 2021-06-01 03:20:59 +00:00 (Migrated from gitlab.com)

@prandnum Proposal objects are not permanent storage on-chain.
They are created during proposal_create_operation and removed on successful approvals or expiry.
And the ids are 1.10.X where X increases from 0 to MAX INT.
Note that X is always incremented so you need to find where the current X is to get the object.

@bobinson @hbelakon @serkixenos

@prandnum Proposal objects are not permanent storage on-chain. They are created during proposal_create_operation and removed on successful approvals or expiry. And the ids are 1.10.X where X increases from 0 to MAX INT. Note that X is always incremented so you need to find where the current X is to get the object. @bobinson @hbelakon @serkixenos
sierra19XX (Migrated from gitlab.com) closed this issue 2021-06-01 03:21:00 +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#118
No description provided.