Skip to content

Speed up signing many bitcoin cash inputs#1

Open
rynomster wants to merge 5 commits intodabura667:bitcoincashfrom
rynomster:bitcoincash
Open

Speed up signing many bitcoin cash inputs#1
rynomster wants to merge 5 commits intodabura667:bitcoincashfrom
rynomster:bitcoincash

Conversation

@rynomster
Copy link

I had an address with 200+ UTXOs, and it kept failing to sign.. I then saw it tried to make 1800+ ajax calls to the same url, constantly fetching the UTXOs for each input. These checks speed it up somewhat.

@rynomster rynomster changed the title Speed up signing many UTXOs Speed up signing many bitcoin cash UTXOs Aug 22, 2017
@rynomster rynomster changed the title Speed up signing many bitcoin cash UTXOs Speed up signing many bitcoin cash inputs Aug 22, 2017
@dabura667
Copy link
Owner

It would be much better to encode the values into the unsigned transaction when generating the unsigned raw transaction and just deserializing the values from the pasted hex.

Since I really don't want to spend much more time on Cash support, it will be a while before I can test and merge this.

If you would like to change the raw transaction serializer to encode input value (maybe add it in after each of the prevOut data in each input) into the raw transaction and let the signing function decode that, I would definitely look into testing and merging, but as is, this is a small performance increase for an edge case on a project I'm not very invested in anymore... so it may take time for me to get around to it.

@rynomster
Copy link
Author

rynomster commented Aug 23, 2017 via email

@dabura667 dabura667 force-pushed the bitcoincash branch 3 times, most recently from 5ef1dbc to e39f820 Compare September 10, 2017 15:33
dabura667 pushed a commit that referenced this pull request Apr 19, 2020
sync with OutCast3k/coinbin
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