Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpcserver: Optimize JSON raw tx input list create.
This optimizes the createVinList function which is used to generate the JSON list of transaction inputs. It also makes it more consistent with the createVinListPrevOut function. In particular, it entails the following changes: - Only do a single coinbase check and return right away instead of checking multiple times inside the loop over the inputs - Use a pointer for populating the details of each entry to avoid multiple unnecessary array lookups and bounds checks - Group all fields that populate the entry for better readability
- Loading branch information
Showing
1 changed file
with
28 additions
and
19 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