Changing nano::wallets::network_params to a reference rather than initializing it statically.
This commit is contained in:
parent
cf80f891cd
commit
4eefdccca2
2 changed files with 2 additions and 1 deletions
|
|
@ -1334,6 +1334,7 @@ void nano::wallets::do_wallet_actions ()
|
|||
}
|
||||
|
||||
nano::wallets::wallets (bool error_a, nano::node & node_a) :
|
||||
network_params{ node_a.config.network_params },
|
||||
observer ([] (bool) {}),
|
||||
kdf{ node_a.config.network_params.kdf_work },
|
||||
node (node_a),
|
||||
|
|
|
|||
|
|
@ -216,7 +216,7 @@ public:
|
|||
void split_if_needed (nano::transaction &, nano::store &);
|
||||
void move_table (std::string const &, MDB_txn *, MDB_txn *);
|
||||
std::unordered_map<nano::wallet_id, std::shared_ptr<nano::wallet>> get_wallets ();
|
||||
nano::network_params network_params;
|
||||
nano::network_params & network_params;
|
||||
std::function<void (bool)> observer;
|
||||
std::unordered_map<nano::wallet_id, std::shared_ptr<nano::wallet>> items;
|
||||
std::multimap<nano::uint128_t, std::pair<std::shared_ptr<nano::wallet>, std::function<void (nano::wallet &)>>, std::greater<nano::uint128_t>> actions;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue