Skip to content

Commit

Permalink
Nominator: Purge externalized SCP slots
Browse files Browse the repository at this point in the history
SCP holds state for each height and needs them to be
explicitly cleared. This was probably the reason of our
ever growing memory consumption.
  • Loading branch information
omerfirmak committed Mar 30, 2022
1 parent 235375d commit c349f8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/agora/consensus/protocol/Nominator.d
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ extern(D):
}

this.active_timers[] = null;
() @trusted { this.scp.purgeSlots(height); }();
}

/***************************************************************************
Expand Down

0 comments on commit c349f8e

Please sign in to comment.