Skip to content

Commit

Permalink
Seg/update submods (#187) (#189)
Browse files Browse the repository at this point in the history
* Seg/update submods (#187)

* fix tests (#190)

* rm geyser submod (#192)

* rm dangling geyser references

* fix syntax err

* use deterministic req ids in batch calls
  • Loading branch information
segfaultdoc committed Jan 18, 2023
1 parent 79aa0a8 commit 9e03c84
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@
[submodule "jito-protos/protos"]
path = jito-protos/protos
url = https://github.com/jito-labs/mev-protos.git
[submodule "solana-accountsdb-connector"]
path = solana-accountsdb-connector
url = https://github.com/jito-foundation/solana-accountsdb-connector.git
5 changes: 2 additions & 3 deletions client/src/http_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,8 @@ impl RpcSender for HttpSender {
requests_and_params: Vec<(RpcRequest, serde_json::Value)>,
) -> Result<serde_json::Value> {
let mut batch_request = vec![];
for (rpc_req, params) in requests_and_params {
let request_id = self.request_id.fetch_add(1, Ordering::Relaxed);
batch_request.push(rpc_req.build_request_json(request_id, params));
for (request_id, req) in requests_and_params.into_iter().enumerate() {
batch_request.push(req.0.build_request_json(request_id as u64, req.1));
}

let resp = self
Expand Down
5 changes: 1 addition & 4 deletions dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,4 @@ ENV CI_COMMIT=$ci_commit
RUN --mount=type=cache,mode=0777,target=/solana/target \
--mount=type=cache,mode=0777,target=/usr/local/cargo/registry \
--mount=type=cache,mode=0777,target=/usr/local/cargo/git \
cargo build --release && cp target/release/solana* ./docker-output && \
cargo build --release --manifest-path solana-accountsdb-connector/Cargo.toml && \
cp solana-accountsdb-connector/target/release/libsolana* ./docker-output

cargo build --release && cp target/release/solana* ./docker-output
1 change: 0 additions & 1 deletion scripts/increment-cargo-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ ignores=(
node_modules
jito-programs
anchor
solana-accountsdb-connector
)

not_paths=()
Expand Down
1 change: 0 additions & 1 deletion solana-accountsdb-connector
Submodule solana-accountsdb-connector deleted from f82435
5 changes: 5 additions & 0 deletions tip-distributor/src/stake_meta_generator_workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,12 +573,15 @@ mod tests {
bank.epoch(),
);

let expires_at = bank.epoch() + 3;

let tda_0 = TipDistributionAccount {
validator_vote_account: validator_keypairs_0.vote_keypair.pubkey(),
merkle_root_upload_authority,
merkle_root: None,
epoch_created_at: bank.epoch(),
validator_commission_bps: 50,
expires_at,
bump: tip_distribution_account_0.1,
};
let tda_1 = TipDistributionAccount {
Expand All @@ -587,6 +590,7 @@ mod tests {
merkle_root: None,
epoch_created_at: bank.epoch(),
validator_commission_bps: 500,
expires_at: 0,
bump: tip_distribution_account_1.1,
};
let tda_2 = TipDistributionAccount {
Expand All @@ -595,6 +599,7 @@ mod tests {
merkle_root: None,
epoch_created_at: bank.epoch(),
validator_commission_bps: 75,
expires_at: 0,
bump: tip_distribution_account_2.1,
};

Expand Down

0 comments on commit 9e03c84

Please sign in to comment.