Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Junius/fix faucet calc #410

Merged
merged 3 commits into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading