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

Add the mempool size to getInfo RPC command #1584

Merged
merged 4 commits into from
Mar 9, 2021

Conversation

someone235
Copy link
Collaborator

No description provided.

svarogg
svarogg previously approved these changes Mar 8, 2021
response := appmessage.NewGetInfoResponseMessage(context.NetAdapter.ID().String())
response := appmessage.NewGetInfoResponseMessage(
context.NetAdapter.ID().String(),
uint64(len(context.Domain.MiningManager().AllTransactions())),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Threre's no point making this uint64, if len returns int.
I'd make the thing int and save ourselves the cast

@codecov
Copy link

codecov bot commented Mar 8, 2021

Codecov Report

Merging #1584 (9d33bf6) into v0.10.0-dev (c084c69) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           v0.10.0-dev    #1584      +/-   ##
===============================================
- Coverage        59.92%   59.88%   -0.04%     
===============================================
  Files              514      514              
  Lines            20260    20270      +10     
===============================================
- Hits             12140    12138       -2     
- Misses            6194     6206      +12     
  Partials          1926     1926              
Impacted Files Coverage Δ
app/appmessage/rpc_get_info.go 0.00% <0.00%> (ø)
app/rpc/rpchandlers/get_info.go 0.00% <0.00%> (ø)
domain/miningmanager/mempool/mempool.go 39.34% <0.00%> (-0.36%) ⬇️
domain/miningmanager/miningmanager.go 71.42% <0.00%> (-11.91%) ⬇️
...dapter/server/grpcserver/protowire/rpc_get_info.go 0.00% <0.00%> (ø)
app/protocol/flows/blockrelay/handle_relay_invs.go 68.75% <0.00%> (-1.25%) ⬇️

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 c084c69...b3372f6. Read the comment docs.

@svarogg svarogg merged commit b8413fc into v0.10.0-dev Mar 9, 2021
@svarogg svarogg deleted the add-mempool-size-to-getInfo branch March 9, 2021 10:48
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

2 participants