提交 a0dbe299 编写于 作者: M Matias Romeo

Fix error getting permission_object from db

上级 2b159386
......@@ -724,7 +724,7 @@ void chain_controller::update_global_properties(const signed_block& b) {
active_producers_authority.accounts.push_back({{name, config::ActiveName}, 1});
}
auto po = _db.get<permission_object, by_owner>( boost::make_tuple(config::ProducersAccountName, config::ActiveName) );
auto& po = _db.get<permission_object, by_owner>( boost::make_tuple(config::ProducersAccountName, config::ActiveName) );
_db.modify(po,[active_producers_authority] (permission_object& po) {
po.auth = active_producers_authority;
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册