global: next block template (+ diff)

This commit is contained in:
nym21
2026-05-09 12:56:11 +02:00
parent 3f2b5d3084
commit e62b0ac2a5
20 changed files with 637 additions and 203 deletions
+2
View File
@@ -6,6 +6,7 @@ mod blockhash_start_index;
mod blockhash_tx_index;
mod empty;
mod height_param;
mod next_block_hash_param;
mod pool_slug_param;
mod series_param;
mod time_period_param;
@@ -25,6 +26,7 @@ pub use blockhash_start_index::*;
pub use blockhash_tx_index::*;
pub use empty::*;
pub use height_param::*;
pub use next_block_hash_param::*;
pub use pool_slug_param::*;
pub use series_param::*;
pub use time_period_param::*;
@@ -0,0 +1,10 @@
use schemars::JsonSchema;
use serde::Deserialize;
use brk_types::NextBlockHash;
/// `since` hash for `/api/v1/mining/block-template/diff/{hash}`.
#[derive(Deserialize, JsonSchema)]
pub struct NextBlockHashParam {
pub hash: NextBlockHash,
}