File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
chainstate/nakamoto/coordinator Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -927,6 +927,14 @@ impl<'a> ClarityDatabase<'a> {
927
927
}
928
928
}
929
929
930
+ /// Return the block height for a given tenure height
931
+ /// if the block information is queryable for the tenure height.
932
+ /// The block information for a given tenure height is queryable iff:
933
+ /// * `tenure_height` falls in 2.x, and `tenure_height` < `current_height`
934
+ /// * `tenure_height` falls in 3.x, and the first block of the tenure
935
+ /// at `tenure_height` has a stacks block height less than `current_height`
936
+ ///
937
+ /// If the block information isn't queryable, return `Ok(None)`
930
938
pub fn get_block_height_for_tenure_height (
931
939
& mut self ,
932
940
tenure_height : u32 ,
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ pub fn make_token_transfer(
302
302
stx_transfer_signed
303
303
}
304
304
305
- /// Make a token-transfer from a private key
305
+ /// Make contract publish
306
306
pub fn make_contract (
307
307
chainstate : & mut StacksChainState ,
308
308
name : & str ,
Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ pub trait GetTenureStartId {
47
47
tip : & StacksBlockId ,
48
48
tenure_id_consensus_hash : & ConsensusHash ,
49
49
) -> Result < Option < TenureBlockId > , DBError > ;
50
+ /// Return the StacksBlockId of the tenure start block for the
51
+ /// tenure with coinbase height `coinbase_height` in the fork
52
+ /// referenced by `tip`.
50
53
fn get_tenure_block_id_at_cb_height (
51
54
& self ,
52
55
tip : & StacksBlockId ,
You can’t perform that action at this time.
0 commit comments