-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: function to get commitments from transaction
This is some code that currently exists in the node implementation when we are processing a spend request. It needs to be shared between a couple of crates in the `safe_network` workspace, so I'm opting to move it into this crate, which makes more sense than putting it in `sn_interface`, since it's very specific to DBCs. No test coverage has been added because it's difficult to setup the conditions for testing the function. This could be done at a later point. It could have potentially went into the transaction verifier, but I'm reluctant to change the behaviour of that without having any tests. At the moment it would cost me too much time to work out all the conditions necessary for covering the code in `TransactionVerifier`.
- Loading branch information
Showing
3 changed files
with
60 additions
and
1 deletion.
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
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
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