Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create getSvpSpendTxWaitingForSignatures method #2726

Conversation

apancorb
Copy link
Contributor

Description

Now we are able to save the spend transaction in the svpSpendTxWaitingForSignatures entry. So now we need a method to get the transaction saved.

Motivation and Context

https://github.com/rsksmart/RSKIPs/blob/master/IPs/RSKIP419.md

@apancorb apancorb self-assigned this Sep 13, 2024
@apancorb apancorb force-pushed the feat/get_svp_spend_waiting_signatures branch from 879eaff to 5d4c3fa Compare September 17, 2024 09:56
@apancorb apancorb marked this pull request as ready for review September 17, 2024 10:35
@apancorb apancorb requested a review from a team as a code owner September 17, 2024 10:35
@@ -95,7 +95,7 @@ private static byte[][] serializeRskTxWaitingForSignaturesEntry(
public static Map.Entry<Keccak256, BtcTransaction> deserializeRskTxWaitingForSignatures(
byte[] data, NetworkParameters networkParameters, boolean noInputsTxs) {
if (data == null || data.length == 0) {
return new AbstractMap.SimpleEntry<>(null, null);
return null;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to return null as it is the new default value.

@apancorb apancorb force-pushed the feat/get_svp_spend_waiting_signatures branch from d7093c7 to a3c149a Compare September 18, 2024 09:46
Copy link
Contributor

@julia-zack julia-zack left a comment

Choose a reason for hiding this comment

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

just a super minor typo-comment

@apancorb apancorb force-pushed the feat/get_svp_spend_waiting_signatures branch from a3c149a to aa9ac45 Compare September 18, 2024 12:31
Copy link

@julia-zack julia-zack merged commit 644cc3d into feature/powpeg_validation_protocol-phase2 Sep 18, 2024
6 checks passed
@marcos-iov marcos-iov deleted the feat/get_svp_spend_waiting_signatures branch September 18, 2024 16:48
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.

3 participants