mirror of
https://github.com/transatoshi-mw/grin-explorer.git
synced 2025-10-22 05:43:42 +00:00
Added kernel page, respect id field in api
This commit is contained in:
23
src/data.rs
23
src/data.rs
@@ -111,6 +111,29 @@ impl Block {
|
||||
}
|
||||
|
||||
|
||||
// Kernel data
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Kernel {
|
||||
pub height: String,
|
||||
pub excess: String,
|
||||
pub ker_type: String,
|
||||
pub fee: String,
|
||||
pub raw_data: String,
|
||||
}
|
||||
|
||||
impl Kernel {
|
||||
pub fn new() -> Kernel {
|
||||
Kernel {
|
||||
height: String::new(),
|
||||
excess: String::new(),
|
||||
ker_type: String::new(),
|
||||
fee: String::new(),
|
||||
raw_data: String::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Transactions data
|
||||
#[derive(Debug)]
|
||||
pub struct Transactions {
|
||||
|
Reference in New Issue
Block a user