HomePhabricator

[avalanche][trivial] Avoid repeated getId() during proof registration

Description

[avalanche][trivial] Avoid repeated getId() during proof registration

Summary:
Just get the proofid once and use that instead.
There will be more callsites as the function is extended so better make it clean now.

Ref T1854.

Test Plan:

ninja check-avalanche

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Maniphest Tasks: T1854

Differential Revision: https://reviews.bitcoinabc.org/D10762

Details

Provenance
FabienAuthored on Jan 4 2022, 19:17
FabienPushed on Jan 5 2022, 12:07
Reviewer
Restricted Project
Differential Revision
D10762: [avalanche][trivial] Avoid repeated getId() during proof registration
Parents
rABC27d3f1aaa03c: rpc: Remove duplicate name and argNames from CRPCCommand
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task