-
Notifications
You must be signed in to change notification settings - Fork 39
SubmitOffchainTx: prevent multiple opreturn outputs #654
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
SubmitOffchainTx: prevent multiple opreturn outputs #654
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughA new validation has been added to the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Service
participant TxValidator
Client->>Service: SubmitOffchainTx(tx)
Service->>TxValidator: Validate outputs
TxValidator-->>Service: Detects OP_RETURN outputs
alt Multiple OP_RETURN outputs
Service-->>Client: Return error "invalid tx, multiple op return outputs"
else Valid OP_RETURN count
Service-->>Client: Proceed with transaction processing
end
Assessment against linked issues
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
will be reopened after the refactor |
* Refactor + rename db * Move type to admin * Renaming * Format code * Fixes * Refactor common * Renamings * Lint common * Fixes * Tidy up cli and readme * Fix * Lint * Fix gh action * Fixes * Fix * Final refactor * Fixes * Last fixes (?) * Fix ci * Fix ci * Fix compose * Fix dockerfile * Fix get info * Drop recovery system * Fixes * SubmitTx: prevent multiple OP_RETURN outputs (#654) * SubmitOffchainTx: prevent multiple opreturn outputs * use bytes.HasPrefix instead of bytes.Contains * Fix failing test * Fix * Fix admin proto * Fix admin and arkd cli * Fix typos * Fix queries * Polish docker compose * Update SECURITY.md * Update readme * Update ci * Fix * Fixes after review * Fixes after review * Fix * Fix typos * Fix * Fix urls * Fix readme list * Withdraw amount in btc --------- Co-authored-by: louisinger <41042567+louisinger@users.noreply.github.com>
it closes #652
@altafan please review
Summary by CodeRabbit