0 Members and 1 Guest are viewing this topic.
Excellent, everything is working now.Based on https://github.com/cryptonomex/graphene/blob/master/libraries/chain/include/graphene/chain/types.hpptypedef object_id< protocol_ids, account_object_type, account_object> account_id_type;1.2.X => keys1.3.X => account1.4.X => asset1.7.X => witness ...Looking at the tx generated by transfer "1.3.11" "1.3.1" 100 CORE "memo" trueQuote{ "ref_block_num": 832, "ref_block_prefix": 1233679879, "relative_expiration": 3, "operations": [[ 0,{ "fee": { "amount": 0, "asset_id": "1.4.0" }, "from": "1.3.11", "to": "1.3.1", "amount": { "amount": 10000000, "asset_id": "1.4.0" }, "memo": { "from": "1.2.1", "to": "1.2.0", "nonce": "11962994495084021359", "message": "001e77e19727022f7d12e3571bf30c4b" } } ] ], "signatures": [[ "1.2.1", "1f6a44dc809adfced585aa9f393d76061db3cec77d0fa0c65bb07ff0d48426f9175c317351ac10e3e84d580c853c01285913937136d75b1d74c594d9e62ebf4591" ] ]}It has only one operation (transfer_operation), that is a deposit+withdraw combination from the 0.9.X version.That is signed by the key 1.2.1 which is the only authority that 1.3.11 has for active.{"id":1, "method":"call", "params":[0,"get_accounts",[["1.3.11"]]]}Wow this is excellent ... even if i should be screaming for the amount of code we need to throw away
{ "ref_block_num": 832, "ref_block_prefix": 1233679879, "relative_expiration": 3, "operations": [[ 0,{ "fee": { "amount": 0, "asset_id": "1.4.0" }, "from": "1.3.11", "to": "1.3.1", "amount": { "amount": 10000000, "asset_id": "1.4.0" }, "memo": { "from": "1.2.1", "to": "1.2.0", "nonce": "11962994495084021359", "message": "001e77e19727022f7d12e3571bf30c4b" } } ] ], "signatures": [[ "1.2.1", "1f6a44dc809adfced585aa9f393d76061db3cec77d0fa0c65bb07ff0d48426f9175c317351ac10e3e84d580c853c01285913937136d75b1d74c594d9e62ebf4591" ] ]}
Out of curiosity, why are the witness IDs dot-delimited?
set_password passwordunlock password
import_key "1.3.11" "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
transfer "1.3.11" "1.3.1" 100 CORE "memo" truedbg_make_mia 1.3.11 USDsell_asset 1.3.11 1000 CORE 100 USD 100000 false trueshort_sell_asset 1.3.11 1000 USD 1000 true
Thanks svk, now its producing blocks.Do you know which private keys are the witnesses using to sign the blocks?another question:When i run the cli_client after i get the "new" prompt i set set_password "123" and i get null as response.Then when i run the cli_client again and try to unlock by doing unlock "123"" i get.Quote{"s":"error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt"}
{"s":"error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt"}
Genesis secrets for init witnesses are currently based on genesis_private_key. This won't be doable for real init witnesses with real private keys.Since the bit commitment needs to support a "never committed" state to deal with new witnesses who have never produced a block, we should simply set the genesis witnesses to this state.
# Enable block production, even if the chain is staleenable-stale-production = true# ID of witness controlled by this node (e.g. "1.7.0", quotes are required, may specify multiple times)witness-id = "1.7.0"witness-id = "1.7.1"witness-id = "1.7.2"witness-id = "1.7.3"witness-id = "1.7.4"witness-id = "1.7.5"witness-id = "1.7.6"witness-id = "1.7.7"witness-id = "1.7.8"witness-id = "1.7.9"
10 assert_exception: Assert Exceptionfc::to_uint64( s.substr( 0, first_dot ) ) == SpaceID && fc::to_uint64( s.substr( first_dot+1, second_dot-first_dot-1 ) ) == TypeID: {} th_a object_id.hpp:182 from_variant {"var":"1.2.0"} th_a object_id.hpp:184 from_variant
2375001ms th_a witness.cpp:129 operator() ] Not producing block because production is disabled.2380000ms th_a witness.cpp:171 block_production_loo ] slot: 435756 scheduled_witness: 1.7.2 scheduled_time: 2015-06-09T19:39:40 now: 2015-06-09T19:39:40 2380001ms th_a witness.cpp:129 operator() ] Not producing block because production is disabled.2385000ms th_a witness.cpp:171 block_production_loo ] slot: 435757 scheduled_witness: 1.7.3 scheduled_time: 2015-06-09T19:39:45 now: 2015-06-09T19:39:45 2385000ms th_a witness.cpp:129 operator() ] Not producing block because production is disabled.2390001ms th_a witness.cpp:171 block_production_loo ] slot: 435758 scheduled_witness: 1.7.4 scheduled_time: 2015-06-09T19:39:50 now: 2015-06-09T19:39:50 2390001ms th_a witness.cpp:129 operator() ] Not producing block because production is disabled.2395000ms th_a witness.cpp:171 block_production_loo ] slot: 435759 scheduled_witness: 1.7.7 scheduled_time: 2015-06-09T19:39:55 now: 2015-06-09T19:39:55 2395000ms th_a witness.cpp:129 operator() ] Not producing block because production is disabled.