Using CLI wallet, unable to create vesting balance(SON) when owner key is imported
Issue Seen: create_vesting_balance rejects the command when owner key is imported. Expected Behvaiour: Since owner key is superceeds active key, the commands should allow user to work with owner key.
Note: Since keys are mentione making it confidential.
unlocked >>> import_key vtnss "5JLQ6hD7Szw3qku82f88NpmgivMTeShpaLZinFSzrpY1ncBRd3a" true
import_key vtnss "5JLQ6hD7Szw3qku82f88NpmgivMTeShpaLZinFSzrpY1ncBRd3a" true
1450153ms th_a wallet.cpp:633 copy_wallet_file ] backing up wallet wallet.json to before-import-key-68043b32-3.wallet
1450165ms th_a wallet.cpp:633 copy_wallet_file ] backing up wallet wallet.json to after-import-key-68043b32-3.wallet
true
unlocked >>> create_vesting_balance vtnss 50 TEST son true
create_vesting_balance vtnss 50 TEST son true
1460421ms th_a wallet.cpp:2955 sign_transaction ] Caught exception while broadcasting tx c0a3c5338e079d4814d5d11619dee38c9fba69d0: 0 exception: unspecified
missing required active authority: Missing Active Authority 1.2.2367
{"error":"missing required active authority: Missing Active Authority 1.2.2367","data":{"id":1516,"jsonrpc":"2.0","error":{"code":1,"message":"missing required active authority: Missing Active Authority 1.2.2367","data":{"code":3030001,"name":"tx_missing_active_auth","message":"missing required active authority","stack":[{"context":{"level":"error","file":"transaction.cpp","line":312,"method":"verify_authority","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"Missing Active Authority ${id}","data":{"id":"1.2.2367","auth":{"weight_threshold":1,"account_auths":[],"key_auths":[["TEST61PTjboXRediQJfLiE4TchUH2o5PGBivJtMZJRCgxjERBxPyV3",1]],"address_auths":[]},"owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["TEST8Mem7yKqe2iAa3MPcAaLZPQEMYGi1r3cQYtvvvMbsJuQizNpmg",1]],"address_auths":[]}}},{"context":{"level":"warn","file":"transaction.cpp","line":327,"method":"verify_authority","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"","data":{"ops":[[32,{"fee":{"amount":100000,"asset_id":"1.3.0"},"creator":"1.2.2367","owner":"1.2.2367","amount":{"amount":5000000,"asset_id":"1.3.0"},"policy":[2,{}],"balance_type":"son"}]],"sigs":[]}},{"context":{"level":"warn","file":"transaction.cpp","line":450,"method":"verify_authority","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"","data":{"*this":{"ref_block_num":52498,"ref_block_prefix":865142408,"expiration":"2021-04-26T01:55:21","operations":[[32,{"fee":{"amount":100000,"asset_id":"1.3.0"},"creator":"1.2.2367","owner":"1.2.2367","amount":{"amount":5000000,"asset_id":"1.3.0"},"policy":[2,{}],"balance_type":"son"}]],"extensions":[],"signatures":[]}}},{"context":{"level":"warn","file":"db_block.cpp","line":862,"method":"_apply_transaction","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"","data":{"trx":{"ref_block_num":52498,"ref_block_prefix":865142408,"expiration":"2021-04-26T01:55:21","operations":[[32,{"fee":{"amount":100000,"asset_id":"1.3.0"},"creator":"1.2.2367","owner":"1.2.2367","amount":{"amount":5000000,"asset_id":"1.3.0"},"policy":[2,{}],"balance_type":"son"}]],"extensions":[],"signatures":[]}}},{"context":{"level":"warn","file":"db_block.cpp","line":379,"method":"push_transaction","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"","data":{"trx":{"ref_block_num":52498,"ref_block_prefix":865142408,"expiration":"2021-04-26T01:55:21","operations":[[32,{"fee":{"amount":100000,"asset_id":"1.3.0"},"creator":"1.2.2367","owner":"1.2.2367","amount":{"amount":5000000,"asset_id":"1.3.0"},"policy":[2,{}],"balance_type":"son"}]],"extensions":[],"signatures":[]}}},{"context":{"level":"warn","file":"websocket_api.cpp","line":128,"method":"on_message","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"","data":{"call.method":"call","call.params":[4,"broadcast_transaction",[{"ref_block_num":52498,"ref_block_prefix":865142408,"expiration":"2021-04-26T01:55:21","operations":[[32,{"fee":{"amount":100000,"asset_id":"1.3.0"},"creator":"1.2.2367","owner":"1.2.2367","amount":{"amount":5000000,"asset_id":"1.3.0"},"policy":[2,{}],"balance_type":"son"}]],"extensions":[],"signatures":[]}]]}}]}}}}
th_a state.cpp:38 handle_reply
0 exception: unspecified
missing required active authority: Missing Active Authority 1.2.2367
{"error":"missing required active authority: Missing Active Authority 1.2.2367","data":{"id":1516,"jsonrpc":"2.0","error":{"code":1,"message":"missing required active authority: Missing Active Authority 1.2.2367","data":{"code":3030001,"name":"tx_missing_active_auth","message":"missing required active authority","stack":[{"context":{"level":"error","file":"transaction.cpp","line":312,"method":"verify_authority","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"Missing Active Authority ${id}","data":{"id":"1.2.2367","auth":{"weight_threshold":1,"account_auths":[],"key_auths":[["TEST61PTjboXRediQJfLiE4TchUH2o5PGBivJtMZJRCgxjERBxPyV3",1]],"address_auths":[]},"owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["TEST8Mem7yKqe2iAa3MPcAaLZPQEMYGi1r3cQYtvvvMbsJuQizNpmg",1]],"address_auths":[]}}},{"context":{"level":"warn","file":"transaction.cpp","line":327,"method":"verify_authority","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"","data":{"ops":[[32,{"fee":{"amount":100000,"asset_id":"1.3.0"},"creator":"1.2.2367","owner":"1.2.2367","amount":{"amount":5000000,"asset_id":"1.3.0"},"policy":[2,{}],"balance_type":"son"}]],"sigs":[]}},{"context":{"level":"warn","file":"transaction.cpp","line":450,"method":"verify_authority","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"","data":{"*this":{"ref_block_num":52498,"ref_block_prefix":865142408,"expiration":"2021-04-26T01:55:21","operations":[[32,{"fee":{"amount":100000,"asset_id":"1.3.0"},"creator":"1.2.2367","owner":"1.2.2367","amount":{"amount":5000000,"asset_id":"1.3.0"},"policy":[2,{}],"balance_type":"son"}]],"extensions":[],"signatures":[]}}},{"context":{"level":"warn","file":"db_block.cpp","line":862,"method":"_apply_transaction","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"","data":{"trx":{"ref_block_num":52498,"ref_block_prefix":865142408,"expiration":"2021-04-26T01:55:21","operations":[[32,{"fee":{"amount":100000,"asset_id":"1.3.0"},"creator":"1.2.2367","owner":"1.2.2367","amount":{"amount":5000000,"asset_id":"1.3.0"},"policy":[2,{}],"balance_type":"son"}]],"extensions":[],"signatures":[]}}},{"context":{"level":"warn","file":"db_block.cpp","line":379,"method":"push_transaction","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"","data":{"trx":{"ref_block_num":52498,"ref_block_prefix":865142408,"expiration":"2021-04-26T01:55:21","operations":[[32,{"fee":{"amount":100000,"asset_id":"1.3.0"},"creator":"1.2.2367","owner":"1.2.2367","amount":{"amount":5000000,"asset_id":"1.3.0"},"policy":[2,{}],"balance_type":"son"}]],"extensions":[],"signatures":[]}}},{"context":{"level":"warn","file":"websocket_api.cpp","line":128,"method":"on_message","hostname":"","thread_name":"th_a","timestamp":"2021-04-26T07:24:20"},"format":"","data":{"call.method":"call","call.params":[4,"broadcast_transaction",[{"ref_block_num":52498,"ref_block_prefix":865142408,"expiration":"2021-04-26T01:55:21","operations":[[32,{"fee":{"amount":100000,"asset_id":"1.3.0"},"creator":"1.2.2367","owner":"1.2.2367","amount":{"amount":5000000,"asset_id":"1.3.0"},"policy":[2,{}],"balance_type":"son"}]],"extensions":[],"signatures":[]}]]}}]}}}}
th_a state.cpp:38 handle_reply
{"owner_account":"vtnss","broadcast":true}
th_a wallet.cpp:2471 create_vesting_balance
unlocked >>> get_private_key_from_password vtnss owner witness1234567890
get_private_key_from_password vtnss owner witness1234567890
[
"TEST8Mem7yKqe2iAa3MPcAaLZPQEMYGi1r3cQYtvvvMbsJuQizNpmg",
"5JLQ6hD7Szw3qku82f88NpmgivMTeShpaLZinFSzrpY1ncBRd3a"
]
unlocked >>> get_private_key_from_password vtnss active witness1234567890
get_private_key_from_password vtnss active witness1234567890
[
"TEST61PTjboXRediQJfLiE4TchUH2o5PGBivJtMZJRCgxjERBxPyV3",
"5JaPXJzyhTLQnDNoMiV2tsC78dDCchVfHEPg5wRBXpNPY3qfcgG"
]
unlocked >>> import_key vtnss "5JaPXJzyhTLQnDNoMiV2tsC78dDCchVfHEPg5wRBXpNPY3qfcgG" true
import_key vtnss "5JaPXJzyhTLQnDNoMiV2tsC78dDCchVfHEPg5wRBXpNPY3qfcgG" true
1636007ms th_a wallet.cpp:633 copy_wallet_file ] backing up wallet wallet.json to before-import-key-b67e23c6.wallet
1636018ms th_a wallet.cpp:633 copy_wallet_file ] backing up wallet wallet.json to after-import-key-b67e23c6.wallet
true
unlocked >>> create_vesting_balance vtnss 50 TEST son true
create_vesting_balance vtnss 50 TEST son true
{
"ref_block_num": 52498,
"ref_block_prefix": 865142408,
"expiration": "2021-04-26T01:55:22",
"operations": [[
32,{
"fee": {
"amount": 100000,
"asset_id": "1.3.0"
},
"creator": "1.2.2367",
"owner": "1.2.2367",
"amount": {
"amount": 5000000,
"asset_id": "1.3.0"
},
"policy": [
2,{}
],
"balance_type": "son"
}
]
],
"extensions": [],
"signatures": [
"1f06cb74fc0f32e0bc37a211f8566869cf38ac892f856177dc7ff7d232ad133d5a6a9a5492da640687c7852e66905596a2d78109eaa9548bd0e4323eb4e39f7121"
]
}
unlocked >>>