Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registerVM-gasSchedule-notifier #3491

Merged
merged 10 commits into from
Oct 5, 2021

Conversation

sasurobert
Copy link
Contributor

Register VM to gasschedule notifier

SebastianMarian
SebastianMarian previously approved these changes Oct 4, 2021
@iulianpascalau iulianpascalau self-requested a review October 4, 2021 10:38
iulianpascalau
iulianpascalau previously approved these changes Oct 4, 2021
@codecov
Copy link

codecov bot commented Oct 4, 2021

Codecov Report

Merging #3491 (0283aff) into development (d4c5db2) will decrease coverage by 0.00%.
The diff coverage is 71.42%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #3491      +/-   ##
===============================================
- Coverage        73.86%   73.85%   -0.01%     
===============================================
  Files              581      581              
  Lines            73843    73847       +4     
===============================================
- Hits             54543    54541       -2     
- Misses           14927    14930       +3     
- Partials          4373     4376       +3     
Impacted Files Coverage Δ
process/smartContract/process.go 66.73% <ø> (ø)
process/factory/shard/vmContainerFactory.go 76.21% <60.00%> (-0.80%) ⬇️
common/forking/gasSchedule.go 90.00% <100.00%> (+0.14%) ⬆️
p2p/libp2p/netMessenger.go 74.72% <0.00%> (-0.56%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19d4fa2...0283aff. Read the comment docs.

SebastianMarian
SebastianMarian previously approved these changes Oct 4, 2021
iulianpascalau
iulianpascalau previously approved these changes Oct 4, 2021
@@ -131,7 +131,9 @@ func (g *gasScheduleNotifier) EpochConfirmed(epoch uint32, _ uint64) {

g.lastGasSchedule = newGasSchedule
for _, handler := range g.handlers {
handler.GasScheduleChange(g.lastGasSchedule)
if !check.IfNil(handler) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a safe check but a nil handler could never be added in the handlers as the RegisterNotifyHandler function has already a nil check for each handler it adds

@LucianMincu
Copy link
Contributor

Initial system tests passed.
reports

@LucianMincu LucianMincu merged commit 48ca9f9 into development Oct 5, 2021
@LucianMincu LucianMincu deleted the registerVM-gasSchedule-notifier branch October 5, 2021 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants