Skip to content

Commit 697efd8

Browse files
benthecarmanclaude
andcommitted
Replace REST and RabbitMQ with gRPC
Consolidate the two separate communication protocols (protobuf over REST via Hyper, and RabbitMQ for events) into a single gRPC interface using tonic. This eliminates the RabbitMQ operational dependency and gives clients strongly-typed generated stubs. Events are now delivered via a server-streaming RPC backed by a tokio broadcast channel. HMAC auth moves to a tonic interceptor using timestamp-only signing since TLS guarantees body integrity. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 12ce2d1 commit 697efd8

69 files changed

Lines changed: 4487 additions & 5117 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/e2e-tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: E2E Tests
2+
3+
on: [ push, pull_request ]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
e2e-tests:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout source code
14+
uses: actions/checkout@v6
15+
- name: Install Rust stable toolchain
16+
run: |
17+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
18+
- name: Install protoc
19+
run: sudo apt-get install -y protobuf-compiler
20+
- name: Cache bitcoind binary
21+
id: cache-bitcoind
22+
uses: actions/cache@v5
23+
with:
24+
path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
25+
key: bitcoind-${{ runner.os }}-${{ runner.arch }}
26+
- name: Download bitcoind
27+
if: steps.cache-bitcoind.outputs.cache-hit != 'true'
28+
run: |
29+
source ./scripts/download_bitcoind.sh
30+
mkdir -p bin
31+
mv "$BITCOIND_EXE" bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
32+
- name: Run E2E tests
33+
run: cd e2e-tests && cargo test
34+
env:
35+
RUST_LOG: info
36+
RUST_BACKTRACE: 1
37+
BITCOIND_EXE: ${{ github.workspace }}/bin/bitcoind-${{ runner.os }}-${{ runner.arch }}

.github/workflows/integration-tests-events-rabbitmq.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)