dacplayproject / cpp-play2

New updates have been move to https://github.com/dacplayproject
MIT License
4 stars 0 forks source link

Issue when generating new block #9

Closed hackfisher closed 8 years ago

hackfisher commented 8 years ago
324000ms th_a       witness.cpp:206               block_production_loo ] Not producing block because node didn't wake up within 500ms of the slot time.
335079ms th_a       db_block.cpp:201              _push_block          ] Failed to push new block:
10 assert_exception: Assert Exception
itr != parameters.end():
    {}
    th_a  fee_schedule.hpp:71 get

    {"next_block.block_num()":1}
    th_a  db_block.cpp:534 _apply_block
335081ms th_a       witness.cpp:181               block_production_loo ] Got exception while generating block:
10 assert_exception: Assert Exception
itr != parameters.end():
    {}
    th_a  fee_schedule.hpp:71 get

    {"next_block.block_num()":1}
    th_a  db_block.cpp:534 _apply_block

    {"new_block":{"previous":"0000000000000000000000000000000000000000","timestamp":"2016-08-11T03:05:35","witness":"1.6.2","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"1f6b2bc2de1d8c13431ea100188b5a96ef5c88e3b6586cbf1c56b3d5b88889092c62382ebae594c5a6f592c804183729aa210d0335099b348021b5da550cb3361a","transactions":[]}}
    th_a  db_block.cpp:207 _push_block

    {"witness_id":"1.6.2"}
    th_a  db_block.cpp:400 _generate_block

    {}
    th_a  db_block.cpp:298 generate_block
hackfisher commented 8 years ago

https://github.com/cryptonomex/graphene/blob/master/libraries/chain/db_maint.cpp#L824

hackfisher commented 8 years ago

This issues is caused by: the initial parameters is not set in genesis json, Asset fail in db maintenance, dealing with account_create_operation. The default initial parameters can be generated using --create-genesis-json