Conversation
Member
Author
#include "hookapi.h"
extern int64_t prepare(uint32_t write_ptr, uint32_t write_len,
uint32_t read_ptr, uint32_t read_len);
uint8_t txn[1024] = {0x12, 0x00, ttACCOUNT_SET};
uint8_t txn_out[1024];
int64_t hook(uint32_t reserved) {
etxn_reserve(1);
uint32_t txn_out_len = prepare(SBUF(txn_out), txn, 3);
ASSERT(txn_out_len > 0);
uint8_t hash[32];
ASSERT(emit(SBUF(hash), txn_out, txn_out_len) > 0);
_g(1, 1);
accept(SBUF("success"), __LINE__);
return 0;
} |
59d8597 to
a6bd54c
Compare
RichardAH
reviewed
Jun 18, 2025
3a8297e to
66d2a64
Compare
…o refactor-whitelist-api-2
RichardAH
reviewed
Jan 28, 2026
| tar -xf clang+llvm-10.0.1-x86_64-linux-gnu-ubuntu-16.04.tar.xz | ||
| sudo mv clang+llvm-10.0.1-x86_64-linux-gnu-ubuntu-16.04 /opt/clang-10 | ||
| sudo ln -s /opt/clang-10/bin/clang-format /usr/local/bin/clang-format-10 | ||
|
|
Contributor
There was a problem hiding this comment.
are you intending to change the workflow in this commit?
Member
Author
There was a problem hiding this comment.
This change itself was actually implemented in this prerequisite PR.
It's been updated to generate the extern.h based on hookapi.macro and then apply clang-format.
4 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
High Level Overview of Change
require
Context of Change
Type of Change
.gitignore, formatting, dropping support for older tooling)API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)