Closed pablitovicente closed 5 years ago
@shuse2 as this method only adds one signature to the transaction trying to use validateMultisignatures()
causes issues as that method use case is to check a complete set of signatures for a multi-signature transaction instead of signatures arriving one at a time to a pending transaction that was sent without any signatures or only some of the signatures. Please review the last changes
After our talk I will refactor part of validateMultisignatures() into new methods for sharing the validations
After moving some of the validations in validateMultisignatures()
to its own functions still decided to keep the code as we're dealing here with validating a single incoming signature. calling validateMultisignatures()
should happen after all signatures are available as a final complete validation. @SargeKhan could you please review?
What was the problem?
There was no method for adding signatures to pending transactions.
How did I fix it?
By adding the method
addMultisignatures
toBaseTransaction
andMultisignatureTransaction
How to test it?
test/base_transaction.ts
Review checklist