feat(ntx): implement RPC client#2162
Conversation
NtxAuth and implement RPC clienNtxAuth and implement RPC client
c5c7483 to
0c1f920
Compare
What was missing here was adding the genesis commitment to the RPC client's accept header settings.
From before, we were manually setting up the processes for our testing node, which allowed us to configure various things (haven't looked at migrating to the docker setup). Now, for starting the RPC process we need to set the ntx auth headers which requires that struct if we want to do it in Rust: Rpc {
listener: grpc_rpc,
...
network_tx_auth: Some(NetworkTxAuth(ntx_auth_header)),
} |
NtxAuth and implement RPC client|
I removed the |
While testing 0xMiden/miden-client#2203, I realized we needed<- (this change was removed in favor of using the node binaries directly)NtxAuthexported for bootstrapping the testing node easily, so I made that change in this branch.When testing that implementation, noticed the NTX-related tests were failing so looking into it I realized the RPC client was missing, so I made a first implementation. Opening as draft because client integration tests are still not passing.