-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bibek Pandey
committed
Jan 14, 2025
1 parent
1c91a81
commit cc85da7
Showing
11 changed files
with
106 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
use arbitrary::Arbitrary; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::buf::Buf32; | ||
|
||
/// Data that reflects what's happening around L1 | ||
#[derive(Debug, Clone, Serialize, Deserialize, Default, Arbitrary)] | ||
pub struct L1Status { | ||
/// If the last time we tried to poll the client (as of `last_update`) | ||
/// we were successful. | ||
pub bitcoin_rpc_connected: bool, | ||
|
||
/// The last error message we received when trying to poll the client, if | ||
/// there was one. | ||
pub last_rpc_error: Option<String>, | ||
|
||
/// Current block height. | ||
pub cur_height: u64, | ||
|
||
/// Current tip block ID as string. | ||
pub cur_tip_blkid: String, | ||
|
||
/// Last published txid where L2 blob was present | ||
pub last_published_txid: Option<Buf32>, | ||
|
||
/// UNIX millis time of the last time we got a new update from the L1 connector. | ||
pub last_update: u64, | ||
|
||
/// Number of published reveal transactions. | ||
pub published_reveal_txs_count: u64, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters