BitShares-Core  6.1.0
BitShares blockchain implementation and command-line interface software
genesis_state.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Cryptonomex, Inc., and contributors.
3  *
4  * The MIT License
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22  * THE SOFTWARE.
23  */
24 
27 
28 #include <fc/io/raw.hpp>
29 
30 namespace graphene { namespace chain {
31 
33 {
34  return initial_chain_id;
35 }
36 
37 void genesis_state_type::override_witness_signing_keys( const std::string& new_key )
38 {
39  public_key_type new_pubkey( new_key );
40  for( auto& wit : initial_witness_candidates )
41  {
42  wit.block_signing_key = new_pubkey;
43  }
44 }
45 
46 } } // graphene::chain
47 
49  (name)(owner_key)(active_key)(is_lifetime_member) )
50 
52  (symbol)(issuer_name)(description)(precision)(max_supply)(accumulated_fees)(is_bitasset)
53  (collateral_records))
54 
56  BOOST_PP_SEQ_NIL, (owner)(collateral)(debt))
57 
59  (owner)(asset_symbol)(amount))
60 
62  (owner)(asset_symbol)(amount)(begin_timestamp)(vesting_duration_seconds)(begin_balance))
63 
65  (owner_name)(block_signing_key))
66 
68  (owner_name))
69 
71  (owner_name)(daily_pay))
72 
78 
immutable_chain_parameters immutable_parameters
Definition: api.cpp:48
vector< initial_worker_type > initial_worker_candidates
chain_id_type compute_chain_id() const
#define FC_REFLECT_DERIVED_NO_TYPENAME(TYPE, INHERITS, MEMBERS)
Definition: reflect.hpp:357
vector< initial_balance_type > initial_balances
vector< initial_witness_type > initial_witness_candidates
vector< initial_account_type > initial_accounts
void override_witness_signing_keys(const std::string &new_key)
Method to override initial witness signing keys for debug.
#define GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(type)
Definition: types.hpp:86
vector< initial_committee_member_type > initial_committee_candidates
vector< initial_vesting_balance_type > initial_vesting_balances
vector< initial_asset_type > initial_assets