Skip to content

Commit

Permalink
Add packet flag for from staked sender (v1.18) (jito-foundation#649)
Browse files Browse the repository at this point in the history
Co-authored-by: Jed <[email protected]>
  • Loading branch information
buffalu and jedleggett authored Aug 7, 2024
1 parent 0229d7c commit 343676f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .buildkite/scripts/build-stable.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ want=$(
steps:
- name: "partitions"
command: ". ci/rust-version.sh; ci/docker-run.sh $$rust_stable_docker_image ci/stable/run-partition.sh"
timeout_in_minutes: 40
timeout_in_minutes: 60
agents:
queue: "solana"
parallelism: 3
Expand Down
1 change: 1 addition & 0 deletions core/benches/proto_to_packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fn get_proto_packet(i: u8) -> PbPacket {
repair: false,
simple_vote_tx: false,
tracer_packet: false,
from_staked_node: false,
}),
sender_stake: 0,
}),
Expand Down
6 changes: 6 additions & 0 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ pub fn proto_packet_to_packet(p: jito_protos::proto::packet::Packet) -> Packet {
if flags.repair {
packet.meta_mut().flags.insert(PacketFlags::REPAIR);
}
if flags.from_staked_node {
packet
.meta_mut()
.flags
.insert(PacketFlags::FROM_STAKED_NODE)
}
}
}
packet
Expand Down
2 changes: 1 addition & 1 deletion jito-protos/protos

0 comments on commit 343676f

Please sign in to comment.