solana-ibc: use solana height and timestamp for cf-guest host metadata #1755
Triggered via pull request
September 9, 2024 13:50
Status
Failure
Total duration
19m 56s
Artifacts
–
master.yml
on: pull_request
Miscellaneous checks
3m 17s
Anchor Test
19m 45s
Rust tests
8m 50s
Annotations
4 errors and 2 warnings
unreachable statement:
solana/solana-ibc/programs/solana-ibc/src/validation_context.rs#L87
error: unreachable statement
--> solana/solana-ibc/programs/solana-ibc/src/validation_context.rs:87:9
|
79 | / return ibc::Timestamp::from_nanoseconds(
80 | | timestamp_sec * 10u64.pow(9),
81 | | )
82 | | .map_err(|e| {
83 | | ibc::ClientError::ClientSpecific { description: e.to_string() }
84 | | .into()
85 | | });
| |______________- any code following this expression is unreachable
86 | }
87 | let timestamp = self.borrow().chain.head()?.timestamp_ns.get();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
|
unreachable statement:
solana/solana-ibc/programs/solana-ibc/src/validation_context.rs#L64
error: unreachable statement
--> solana/solana-ibc/programs/solana-ibc/src/validation_context.rs:64:9
|
62 | return Ok(height);
| ----------------- any code following this expression is unreachable
63 | }
64 | let height = u64::from(self.borrow().chain.head()?.block_height);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
|
unreachable statement:
solana/solana-ibc/programs/solana-ibc/src/client_state.rs#L259
error: unreachable statement
--> solana/solana-ibc/programs/solana-ibc/src/client_state.rs:259:9
|
257 | return Ok((timestamp, height));
| ------------------------------ any code following this expression is unreachable
258 | }
259 | let timestamp = self.borrow().chain.head()?.timestamp_ns.get();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
|
= note: `-D unreachable-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unreachable_code)]`
|
Miscellaneous checks
Clippy had exited with the 101 exit code
|
Miscellaneous checks
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Miscellaneous checks
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|