Author Topic: dumb question regarding code actions  (Read 1919 times)

0 Members and 1 Guest are viewing this topic.

Offline VoR0220

got it. Will update the docs so that nobody runs into this again.

With that said, still having problems importing balances.

going to try a clean install and see if that helps.

Update: That did it. Everything is running smooth again. Thanks for the help.
« Last Edit: July 08, 2015, 12:25:37 am by VoR0220 »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline VoR0220

And it appears there are indeed issues....now I can't get the witness up and running.

Code: [Select]
vor0220@vor0220-ubuntu:~/graphene/programs/witness_node$ rm -r witness_node_data_dir/
vor0220@vor0220-ubuntu:~/graphene/programs/witness_node$ ./witness_node --rpc-endpoint --enable-stale-production --witness-id \""1.6.0"\" \""1.6.1"\" \""1.6.2"\" \""1.6.3"\" \""1.6.4"\"  \""1.6.5"\" \""1.6.6"\" \""1.6.7"\" \""1.6.8"\" \""1.6.9"\"
1924193ms th_a       main.cpp:86                   main                 ] Writing new config file at /home/vor0220/graphene/programs/witness_node/witness_node_data_dir/config.ini
1924194ms th_a       witness.cpp:67                plugin_initialize    ] key_id_to_wif_pair: ["GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]
1924195ms th_a       application.cpp:60            create_example_genes ] Allocating all stake to 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
1924201ms th_a       main.cpp:135                  main                 ] Exiting with error:
10 assert_exception: Assert Exception
genesis_state.initial_timestamp != time_point_sec(): Must initialize genesis timestamp.
    {}
    th_a  db_init.cpp:141 init_genesis

    {"":null}
    th_a  db_init.cpp:482 init_genesis

    {"data_dir":"/home/vor0220/graphene/programs/witness_node/witness_node_data_dir/blockchain"}
    th_a  db_management.cpp:55 open

    {}
    th_a  application.cpp:224 startup

https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline VoR0220

https://github.com/cryptonomex/graphene/issues/129

Which commit are you at? The newest commit resolved this issue I think.

just pulled the latest commit, so it should work after this. Will come back if there are further issues.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
https://github.com/cryptonomex/graphene/issues/129

Which commit are you at? The newest commit resolved this issue I think.
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop

Offline VoR0220

actually am trying to follow the cookbook step by step. Running into an error which I will also post on the github. When I try to import the balance from the nathan key, I get this:

Code: [Select]
unlocked >>> import_balance nathan [5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3] true
import_balance nathan [5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3] true
3452228ms th_a       wallet.cpp:2401               import_balance       ] balances: [{"id":"1.15.0","owner":"GPHFAbAx7yuxt725qSZvfwWqkdCwp9ZnUama","balance":{"amount":"1000000000000000","asset_id":"1.3.0"},"last_claim_date":"1970-01-01T00:00:00"}]
0 exception: unspecified
10 assert_exception: Assert Exception
eval_state._sigs.insert(std::make_pair( public_key_type( fc::ecc::public_key(sig, trx.digest(tapos_block_summary.block_id))), false)).second: Multiple signatures by same key detected
    {}
    th_a  db_block.cpp:551 _apply_transaction

    {"trx":{"ref_block_num":21,"ref_block_prefix":3746587340,"relative_expiration":3,"operations":[[36,{"fee":{"amount":0,"asset_id":"1.3.0"},"deposit_to_account":"1.2.15","balance_to_claim":"1.15.0","balance_owner_key":"GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","total_claimed":{"amount":"1000000000000000","asset_id":"1.3.0"}}]],"signatures":["1f72770c8a135e1ffa132a0051d59e1dffffecb29f3c7dbd3d33cae31ccc59f0c45faa2d4a5e3bde0c74a8437ae9e6529f91f689bdc446800a023bb082b736a9d4","2005599c877908a2a9bed434ecab5c9f76e245d3d0857e0893190b4e0ca30df0d7292eb88d88a036a851dce9835d1a12d386b9e6f5a6e62312f47a833c2572d383"]}}
    th_a  db_block.cpp:605 _apply_transaction

    {"trx":{"ref_block_num":21,"ref_block_prefix":3746587340,"relative_expiration":3,"operations":[[36,{"fee":{"amount":0,"asset_id":"1.3.0"},"deposit_to_account":"1.2.15","balance_to_claim":"1.15.0","balance_owner_key":"GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","total_claimed":{"amount":"1000000000000000","asset_id":"1.3.0"}}]],"signatures":["1f72770c8a135e1ffa132a0051d59e1dffffecb29f3c7dbd3d33cae31ccc59f0c45faa2d4a5e3bde0c74a8437ae9e6529f91f689bdc446800a023bb082b736a9d4","2005599c877908a2a9bed434ecab5c9f76e245d3d0857e0893190b4e0ca30df0d7292eb88d88a036a851dce9835d1a12d386b9e6f5a6e62312f47a833c2572d383"]}}
    th_a  db_block.cpp:189 push_transaction
    {"error":"10 assert_exception: Assert Exception\neval_state._sigs.insert(std::make_pair( public_key_type( fc::ecc::public_key(sig, trx.digest(tapos_block_summary.block_id))), false)).second: Multiple signatures by same key detected\n    {}\n    th_a  db_block.cpp:551 _apply_transaction\n\n    {\"trx\":{\"ref_block_num\":21,\"ref_block_prefix\":3746587340,\"relative_expiration\":3,\"operations\":[[36,{\"fee\":{\"amount\":0,\"asset_id\":\"1.3.0\"},\"deposit_to_account\":\"1.2.15\",\"balance_to_claim\":\"1.15.0\",\"balance_owner_key\":\"GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV\",\"total_claimed\":{\"amount\":\"1000000000000000\",\"asset_id\":\"1.3.0\"}}]],\"signatures\":[\"1f72770c8a135e1ffa132a0051d59e1dffffecb29f3c7dbd3d33cae31ccc59f0c45faa2d4a5e3bde0c74a8437ae9e6529f91f689bdc446800a023bb082b736a9d4\",\"2005599c877908a2a9bed434ecab5c9f76e245d3d0857e0893190b4e0ca30df0d7292eb88d88a036a851dce9835d1a12d386b9e6f5a6e62312f47a833c2572d383\"]}}\n    th_a  db_block.cpp:605 _apply_transaction\n\n    {\"trx\":{\"ref_block_num\":21,\"ref_block_prefix\":3746587340,\"relative_expiration\":3,\"operations\":[[36,{\"fee\":{\"amount\":0,\"asset_id\":\"1.3.0\"},\"deposit_to_account\":\"1.2.15\",\"balance_to_claim\":\"1.15.0\",\"balance_owner_key\":\"GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV\",\"total_claimed\":{\"amount\":\"1000000000000000\",\"asset_id\":\"1.3.0\"}}]],\"signatures\":[\"1f72770c8a135e1ffa132a0051d59e1dffffecb29f3c7dbd3d33cae31ccc59f0c45faa2d4a5e3bde0c74a8437ae9e6529f91f689bdc446800a023bb082b736a9d4\",\"2005599c877908a2a9bed434ecab5c9f76e245d3d0857e0893190b4e0ca30df0d7292eb88d88a036a851dce9835d1a12d386b9e6f5a6e62312f47a833c2572d383\"]}}\n    th_a  db_block.cpp:189 push_transaction","data":{"id":13,"error":{"code":1,"message":"10 assert_exception: Assert Exception\neval_state._sigs.insert(std::make_pair( public_key_type( fc::ecc::public_key(sig, trx.digest(tapos_block_summary.block_id))), false)).second: Multiple signatures by same key detected\n    {}\n    th_a  db_block.cpp:551 _apply_transaction\n\n    {\"trx\":{\"ref_block_num\":21,\"ref_block_prefix\":3746587340,\"relative_expiration\":3,\"operations\":[[36,{\"fee\":{\"amount\":0,\"asset_id\":\"1.3.0\"},\"deposit_to_account\":\"1.2.15\",\"balance_to_claim\":\"1.15.0\",\"balance_owner_key\":\"GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV\",\"total_claimed\":{\"amount\":\"1000000000000000\",\"asset_id\":\"1.3.0\"}}]],\"signatures\":[\"1f72770c8a135e1ffa132a0051d59e1dffffecb29f3c7dbd3d33cae31ccc59f0c45faa2d4a5e3bde0c74a8437ae9e6529f91f689bdc446800a023bb082b736a9d4\",\"2005599c877908a2a9bed434ecab5c9f76e245d3d0857e0893190b4e0ca30df0d7292eb88d88a036a851dce9835d1a12d386b9e6f5a6e62312f47a833c2572d383\"]}}\n    th_a  db_block.cpp:605 _apply_transaction\n\n    {\"trx\":{\"ref_block_num\":21,\"ref_block_prefix\":3746587340,\"relative_expiration\":3,\"operations\":[[36,{\"fee\":{\"amount\":0,\"asset_id\":\"1.3.0\"},\"deposit_to_account\":\"1.2.15\",\"balance_to_claim\":\"1.15.0\",\"balance_owner_key\":\"GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV\",\"total_claimed\":{\"amount\":\"1000000000000000\",\"asset_id\":\"1.3.0\"}}]],\"signatures\":[\"1f72770c8a135e1ffa132a0051d59e1dffffecb29f3c7dbd3d33cae31ccc59f0c45faa2d4a5e3bde0c74a8437ae9e6529f91f689bdc446800a023bb082b736a9d4\",\"2005599c877908a2a9bed434ecab5c9f76e245d3d0857e0893190b4e0ca30df0d7292eb88d88a036a851dce9835d1a12d386b9e6f5a6e62312f47a833c2572d383\"]}}\n    th_a  db_block.cpp:189 push_transaction","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"db_block.cpp","line":551,"method":"_apply_transaction","hostname":"","thread_name":"th_a","timestamp":"2015-07-07T22:57:32"},"format":"eval_state._sigs.insert(std::make_pair( public_key_type( fc::ecc::public_key(sig, trx.digest(tapos_block_summary.block_id))), false)).second: Multiple signatures by same key detected","data":{}},{"context":{"level":"warn","file":"db_block.cpp","line":605,"method":"_apply_transaction","hostname":"","thread_name":"th_a","timestamp":"2015-07-07T22:57:32"},"format":"","data":{"trx":{"ref_block_num":21,"ref_block_prefix":3746587340,"relative_expiration":3,"operations":[[36,{"fee":{"amount":0,"asset_id":"1.3.0"},"deposit_to_account":"1.2.15","balance_to_claim":"1.15.0","balance_owner_key":"GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","total_claimed":{"amount":"1000000000000000","asset_id":"1.3.0"}}]],"signatures":["1f72770c8a135e1ffa132a0051d59e1dffffecb29f3c7dbd3d33cae31ccc59f0c45faa2d4a5e3bde0c74a8437ae9e6529f91f689bdc446800a023bb082b736a9d4","2005599c877908a2a9bed434ecab5c9f76e245d3d0857e0893190b4e0ca30df0d7292eb88d88a036a851dce9835d1a12d386b9e6f5a6e62312f47a833c2572d383"]}}},{"context":{"level":"warn","file":"db_block.cpp","line":189,"method":"push_transaction","hostname":"","thread_name":"th_a","timestamp":"2015-07-07T22:57:32"},"format":"","data":{"trx":{"ref_block_num":21,"ref_block_prefix":3746587340,"relative_expiration":3,"operations":[[36,{"fee":{"amount":0,"asset_id":"1.3.0"},"deposit_to_account":"1.2.15","balance_to_claim":"1.15.0","balance_owner_key":"GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","total_claimed":{"amount":"1000000000000000","asset_id":"1.3.0"}}]],"signatures":["1f72770c8a135e1ffa132a0051d59e1dffffecb29f3c7dbd3d33cae31ccc59f0c45faa2d4a5e3bde0c74a8437ae9e6529f91f689bdc446800a023bb082b736a9d4","2005599c877908a2a9bed434ecab5c9f76e245d3d0857e0893190b4e0ca30df0d7292eb88d88a036a851dce9835d1a12d386b9e6f5a6e62312f47a833c2572d383"]}}}]}}}}
    th_a  state.cpp:38 handle_reply

    {"name_or_id":"nathan"}
    th_a  wallet.cpp:2442 import_balance
unlocked >>> list_account_balances nathan
list_account_balances nathan

unlocked >>>


EDIT: Upon closer examination, it seems there may be some remnants from my original tests....deleting files and trying again.
« Last Edit: July 07, 2015, 11:01:11 pm by VoR0220 »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline VoR0220

I did not...I feel incredibly dumb right now. Oh well. Back to work.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
Have you seen the cookbook?

https://github.com/cryptonomex/graphene/wiki/CLI-Wallet-Cookbook

Code: [Select]
unlocked >>> create_account_with_brain_key "this is the brain key for my account" my-account nathan nathan true
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop

Offline VoR0220

so I've got my witness_node running and I've got my client wallet set up. What is the command to create a pair of public and private keys for testing purposes? I've tried create_account_with_brain_key but that does not seem to work.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads