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

Handle empty reward address and fix available balance acccounting #826

Merged
merged 2 commits into from
Mar 23, 2019
Merged

Conversation

zjshen14
Copy link
Contributor

Tested via unit tests

@zjshen14 zjshen14 requested a review from a team as a code owner March 22, 2019 23:34
if rewardAddrStr == "" {
return errors.Errorf("Producer %s doesn't have a reward address", producerAddrStr)
return nil
Copy link
Member

Choose a reason for hiding this comment

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

log.warn

@codecov
Copy link

codecov bot commented Mar 23, 2019

Codecov Report

Merging #826 into master will decrease coverage by 0.2%.
The diff coverage is 72.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #826      +/-   ##
==========================================
- Coverage   58.42%   58.21%   -0.21%     
==========================================
  Files         149      146       -3     
  Lines       12169    12168       -1     
==========================================
- Hits         7110     7084      -26     
- Misses       4104     4135      +31     
+ Partials      955      949       -6
Impacted Files Coverage Δ
action/protocol/rewarding/admin.go 67.96% <100%> (+9.37%) ⬆️
action/protocol/rewarding/reward.go 71.49% <71.42%> (+2.29%) ⬆️
cli/ioctl/cmd/account/account.go 16.66% <0%> (-3.11%) ⬇️
cli/ioctl/util/util.go 75% <0%> (-1.93%) ⬇️
db/trie/branchnode.go 65.59% <0%> (-1.61%) ⬇️
api/api.go 60.9% <0%> (-1.25%) ⬇️
consensus/scheme/rolldpos/rolldposctx.go 62.31% <0%> (-0.89%) ⬇️
cli/ioctl/cmd/account/accountcreateadd.go 0% <0%> (ø) ⬆️
cli/ioctl/cmd/account/accountimport.go 0% <0%> (ø) ⬆️
cli/ioctl/cmd/account/accountupdate.go 0% <0%> (ø) ⬆️
... and 13 more

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 4bc8415...6cd5d6e. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Mar 23, 2019

Codecov Report

Merging #826 into master will decrease coverage by 0.2%.
The diff coverage is 72.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #826      +/-   ##
==========================================
- Coverage   58.42%   58.21%   -0.21%     
==========================================
  Files         149      146       -3     
  Lines       12169    12168       -1     
==========================================
- Hits         7110     7084      -26     
- Misses       4104     4135      +31     
+ Partials      955      949       -6
Impacted Files Coverage Δ
action/protocol/rewarding/admin.go 67.96% <100%> (+9.37%) ⬆️
action/protocol/rewarding/reward.go 71.49% <71.42%> (+2.29%) ⬆️
cli/ioctl/cmd/account/account.go 16.66% <0%> (-3.11%) ⬇️
cli/ioctl/util/util.go 75% <0%> (-1.93%) ⬇️
db/trie/branchnode.go 65.59% <0%> (-1.61%) ⬇️
api/api.go 60.9% <0%> (-1.25%) ⬇️
consensus/scheme/rolldpos/rolldposctx.go 62.31% <0%> (-0.89%) ⬇️
cli/ioctl/cmd/account/accountcreateadd.go 0% <0%> (ø) ⬆️
cli/ioctl/cmd/account/accountimport.go 0% <0%> (ø) ⬆️
cli/ioctl/cmd/account/accountupdate.go 0% <0%> (ø) ⬆️
... and 13 more

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 4bc8415...6cd5d6e. Read the comment docs.

@zjshen14 zjshen14 merged commit 410627c into iotexproject:master Mar 23, 2019
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.

2 participants