Skip to content

Commit 1a538c5

Browse files
committed
remove unneed test
1 parent 5f93914 commit 1a538c5

File tree

1 file changed

+0
-60
lines changed

1 file changed

+0
-60
lines changed

pallets/subtensor/src/registration.rs

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -728,63 +728,3 @@ impl<T: Config> Pallet<T> {
728728
Ok(Some(weight).into())
729729
}
730730
}
731-
732-
#[test]
733-
fn test_seal_hash() {
734-
use sp_core::{Get, H256, U256};
735-
let nonce_u64 = 123456_u64;
736-
let nonce = nonce_u64.to_le_bytes();
737-
let block_and_hotkey_hash_bytes: &[u8; 32] = &[1u8; 32];
738-
739-
let mut full_bytes = [0u8; 40];
740-
let (first_chunk, second_chunk) = full_bytes.split_at_mut(8);
741-
first_chunk.copy_from_slice(&nonce);
742-
second_chunk.copy_from_slice(block_and_hotkey_hash_bytes);
743-
744-
let nonce = U256::from(nonce_u64);
745-
746-
let second_full_bytes: &[u8; 40] = &[
747-
nonce.byte(0),
748-
nonce.byte(1),
749-
nonce.byte(2),
750-
nonce.byte(3),
751-
nonce.byte(4),
752-
nonce.byte(5),
753-
nonce.byte(6),
754-
nonce.byte(7),
755-
block_and_hotkey_hash_bytes[0],
756-
block_and_hotkey_hash_bytes[1],
757-
block_and_hotkey_hash_bytes[2],
758-
block_and_hotkey_hash_bytes[3],
759-
block_and_hotkey_hash_bytes[4],
760-
block_and_hotkey_hash_bytes[5],
761-
block_and_hotkey_hash_bytes[6],
762-
block_and_hotkey_hash_bytes[7],
763-
block_and_hotkey_hash_bytes[8],
764-
block_and_hotkey_hash_bytes[9],
765-
block_and_hotkey_hash_bytes[10],
766-
block_and_hotkey_hash_bytes[11],
767-
block_and_hotkey_hash_bytes[12],
768-
block_and_hotkey_hash_bytes[13],
769-
block_and_hotkey_hash_bytes[14],
770-
block_and_hotkey_hash_bytes[15],
771-
block_and_hotkey_hash_bytes[16],
772-
block_and_hotkey_hash_bytes[17],
773-
block_and_hotkey_hash_bytes[18],
774-
block_and_hotkey_hash_bytes[19],
775-
block_and_hotkey_hash_bytes[20],
776-
block_and_hotkey_hash_bytes[21],
777-
block_and_hotkey_hash_bytes[22],
778-
block_and_hotkey_hash_bytes[23],
779-
block_and_hotkey_hash_bytes[24],
780-
block_and_hotkey_hash_bytes[25],
781-
block_and_hotkey_hash_bytes[26],
782-
block_and_hotkey_hash_bytes[27],
783-
block_and_hotkey_hash_bytes[28],
784-
block_and_hotkey_hash_bytes[29],
785-
block_and_hotkey_hash_bytes[30],
786-
block_and_hotkey_hash_bytes[31],
787-
];
788-
789-
assert_eq!(full_bytes, *second_full_bytes);
790-
}

0 commit comments

Comments
 (0)