forked from Bitcoin-ABC/bitcoin-abc
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rpc] Fix a few nits, unused parameters, and use std::move in rawtran…
…saction.cpp Summary --- After reviewing and merging !647, I noticed that there were a few code quality improvements that could be made to rpc/rawtransaction.cpp - handled unused parameter warnings (producing warnings for me on my setup) - removed unused local var in createpsbt - reserved capacity for a few vectors ahead of time when we know the size - used std::move() on a potentially huge PartiallySignedTransaction object when stuffing it into a vector - Fixed C-style casts from char * -> uint8_t * to the more explicit and correct `reinterpret_cast` (some compilers warn if you use C-style casts nowadays). Test Plan --- - Review code - ninja all check-all No semantic or other changes were introduced. This is a pure code-quality commit.
- Loading branch information
Showing
1 changed file
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters