#308 - fix active_sons in son_processing function
This commit is contained in:
parent
446d89764c
commit
7a41307712
1 changed files with 3 additions and 2 deletions
|
|
@ -457,7 +457,8 @@ void peerplays_sidechain_plugin_impl::schedule_son_processing() {
|
||||||
|
|
||||||
void peerplays_sidechain_plugin_impl::son_processing() {
|
void peerplays_sidechain_plugin_impl::son_processing() {
|
||||||
//! Fixme - here we must check size for every sidechain
|
//! Fixme - here we must check size for every sidechain
|
||||||
if (plugin.database().get_global_properties().active_sons.size() <= 0) {
|
if (plugin.database().get_global_properties().active_sons.at(sidechain_type::bitcoin).size() <= 0 &&
|
||||||
|
plugin.database().get_global_properties().active_sons.at(sidechain_type::hive).size() <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -483,7 +484,7 @@ void peerplays_sidechain_plugin_impl::son_processing() {
|
||||||
|
|
||||||
// for the test prove that in hive scheduled son is active son
|
// for the test prove that in hive scheduled son is active son
|
||||||
chain::son_id_type scheduled_bitcoin_son_id = plugin.database().get_scheduled_son(sidechain_type::bitcoin ,1);
|
chain::son_id_type scheduled_bitcoin_son_id = plugin.database().get_scheduled_son(sidechain_type::bitcoin ,1);
|
||||||
ilog("Scheduled SON[!HIVE!]: ${scheduled_bitcoin_son_id} Now: ${now} ",
|
ilog("Scheduled SON[!BITCOIN!]: ${scheduled_bitcoin_son_id} Now: ${now} ",
|
||||||
("scheduled_bitcoin_son_id", scheduled_bitcoin_son_id)("now", now));
|
("scheduled_bitcoin_son_id", scheduled_bitcoin_son_id)("now", now));
|
||||||
|
|
||||||
for (son_id_type son_id : plugin.get_sons()) {
|
for (son_id_type son_id : plugin.get_sons()) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue