From 3d50b3e1f74d7f958e272748fcf360d9f860ba9f Mon Sep 17 00:00:00 2001
From: pbattu123
Date: Mon, 30 Mar 2020 17:23:30 -0300
Subject: [PATCH] update son-account parameters
---
libraries/chain/db_maint.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libraries/chain/db_maint.cpp b/libraries/chain/db_maint.cpp
index 9c146ea9..98f998eb 100644
--- a/libraries/chain/db_maint.cpp
+++ b/libraries/chain/db_maint.cpp
@@ -1844,7 +1844,10 @@ void perform_son_tasks(database& db)
{
const auto& son_account = db.create([&](account_object& a) {
a.name = "son-account";
- a.statistics = db.create([&](account_statistics_object& s){s.owner = a.id;}).id;
+ a.statistics = db.create([&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;