mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
cargo fmt
This commit is contained in:
@@ -318,14 +318,16 @@ impl Rpc {
|
|||||||
Ok(block) => {
|
Ok(block) => {
|
||||||
// Make sure this is actually the block for this number
|
// Make sure this is actually the block for this number
|
||||||
match block.miner_tx.prefix.inputs[0] {
|
match block.miner_tx.prefix.inputs[0] {
|
||||||
Input::Gen(actual) => if usize::try_from(actual).unwrap() == number {
|
Input::Gen(actual) => {
|
||||||
Ok(block)
|
if usize::try_from(actual).unwrap() == number {
|
||||||
} else {
|
Ok(block)
|
||||||
Err(RpcError::InvalidNode)
|
} else {
|
||||||
},
|
Err(RpcError::InvalidNode)
|
||||||
|
}
|
||||||
|
}
|
||||||
_ => Err(RpcError::InvalidNode),
|
_ => Err(RpcError::InvalidNode),
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
e => e,
|
e => e,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user