HomePhabricator

rpc: avoid copying into UniValue

Description

rpc: avoid copying into UniValue

Summary:

These are simple (and hopefully obviously correct) copies that can be moves
instead.

Backport of core#30115.

Also use references for params getters when possible.

Test Plan:

ninja all check check-functional

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
Cory Fields <cory-nospam-@coryfields.com>Authored on May 13 2024, 20:20
FabienCommitted on Dec 15 2025, 09:42
FabienPushed on Dec 15 2025, 09:42
Reviewer
Restricted Project
Differential Revision
D19129: rpc: avoid copying into UniValue
Parents
rABC50095a964da2: [Automated] Update seeds
Branches
Unknown
Tags
Unknown

Event Timeline