Skip to content

Commit

Permalink
Merge pull request #410 from opentensor/junius/fix-faucet-calc
Browse files Browse the repository at this point in the history
Junius/fix faucet calc
  • Loading branch information
distributedstatemachine committed May 10, 2024
2 parents cb8754f + 1a538c5 commit 74f2f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/subtensor/src/registration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ impl<T: Config> Pallet<T> {
}

pub fn create_seal_hash(block_number_u64: u64, nonce_u64: u64, hotkey: &T::AccountId) -> H256 {
let nonce = nonce_u64.to_be_bytes();
let nonce = nonce_u64.to_le_bytes();
let block_hash_at_number: H256 = Self::get_block_hash_from_u64(block_number_u64);
let block_hash_bytes: &[u8; 32] = block_hash_at_number.as_fixed_bytes();
let binding = Self::hash_block_and_hotkey(block_hash_bytes, hotkey);
Expand Down

0 comments on commit 74f2f3b

Please sign in to comment.