update son-account parameters (#328)

This commit is contained in:
pbattu123 2020-03-30 17:49:03 -03:00 committed by GitHub
parent f3a0827d5d
commit 210e72f843
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1844,7 +1844,10 @@ void perform_son_tasks(database& db)
{
const auto& son_account = db.create<account_object>([&](account_object& a) {
a.name = "son-account";
a.statistics = db.create<account_statistics_object>([&](account_statistics_object& s){s.owner = a.id;}).id;
a.statistics = db.create<account_statistics_object>([&a](account_statistics_object& s){
s.owner = a.id;
s.name = a.name;
}).id;
a.owner.weight_threshold = 1;
a.active.weight_threshold = 0;
a.registrar = a.lifetime_referrer = a.referrer = a.id;