File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
transaction-metrics-tracker/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ static TXN_MASK: std::sync::LazyLock<u16> =
12
12
std:: sync:: LazyLock :: new ( || rand:: thread_rng ( ) . gen_range ( 0 ..4096 ) ) ;
13
13
14
14
/// Check if a transaction given its signature matches the randomly selected mask.
15
- /// The signaure should be from the reference of Signature
15
+ /// The signature should be from the reference of Signature
16
16
pub fn should_track_transaction ( signature : & [ u8 ; SIGNATURE_BYTES ] ) -> bool {
17
17
// We do not use the highest signature byte as it is not really random
18
18
let match_portion: u16 = u16:: from_le_bytes ( [ signature[ 61 ] , signature[ 62 ] ] ) >> 4 ;
@@ -21,7 +21,7 @@ pub fn should_track_transaction(signature: &[u8; SIGNATURE_BYTES]) -> bool {
21
21
}
22
22
23
23
/// Check if a transaction packet's signature matches the mask.
24
- /// This does a rudimentry verification to make sure the packet at least
24
+ /// This does a rudimentary verification to make sure the packet at least
25
25
/// contains the signature data and it returns the reference to the signature.
26
26
pub fn signature_if_should_track_packet (
27
27
packet : & BytesPacket ,
@@ -31,7 +31,7 @@ pub fn signature_if_should_track_packet(
31
31
}
32
32
33
33
/// Get the signature of the transaction packet
34
- /// This does a rudimentry verification to make sure the packet at least
34
+ /// This does a rudimentary verification to make sure the packet at least
35
35
/// contains the signature data and it returns the reference to the signature.
36
36
pub fn get_signature_from_packet (
37
37
packet : & BytesPacket ,
You can’t perform that action at this time.
0 commit comments