Skip to content

Conversation

@micahriggan
Copy link
Owner

@micahriggan micahriggan commented Jun 6, 2019

Reduce extra buffer and string serialization of scripts, and instead get only data used.

TLDR;

  1. output._scriptBuffer already exists, so don’t need to do output.script.toBuffer()
  2. input.toObject() replaced for the properties it needed off of the object.

mintHeight: height,
coinbase: isCoinbase,
value: output.satoshis,
script: output.script && output.script.toBuffer()
Copy link
Owner Author

Choose a reason for hiding this comment

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

Pretty sure most of the gains can come from here

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.

2 participants