Skip to content

Commit cd391dc

Browse files
committed
completed rebase to develop
1 parent 0a4252f commit cd391dc

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

stackslib/src/net/api/getblockbyheight.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ use stacks_common::types::chainstate::{ConsensusHash, StacksBlockId};
2525
use stacks_common::types::net::PeerHost;
2626
use {serde, serde_json};
2727

28-
use crate::chainstate::nakamoto::{
29-
NakamotoBlock, NakamotoChainState, NakamotoStagingBlocksConn, StacksDBIndexed,
30-
};
3128
use crate::chainstate::nakamoto::{
3229
NakamotoBlock, NakamotoChainState, NakamotoStagingBlocksConn, StacksDBIndexed,
3330
};
@@ -127,13 +124,6 @@ impl RPCRequestHandler for RPCNakamotoBlockByHeightRequestHandler {
127124
}
128125
};
129126

130-
let tip = match node.load_stacks_chain_tip(&preamble, &contents) {
131-
Ok(tip) => tip,
132-
Err(error_resp) => {
133-
return error_resp.try_into_contents().map_err(NetError::from);
134-
}
135-
};
136-
137127
let index_block_hash_res =
138128
node.with_node_state(|_network, _sortdb, chainstate, _mempool, _rpc_args| {
139129
chainstate

stackslib/src/net/api/tests/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ mod getattachmentsinv;
6161
mod getblock;
6262
mod getblock_v3;
6363
mod getblockbyheight;
64-
mod getblockbyhash;
65-
mod getblockbyheight;
6664
mod getconstantval;
6765
mod getcontractabi;
6866
mod getcontractsrc;
@@ -206,10 +204,6 @@ pub struct TestRPC<'a> {
206204
pub tip_hash: BlockHeaderHash,
207205
/// block height of the chain tip
208206
pub tip_height: u64,
209-
/// block header hash of the chain tip
210-
pub tip_hash: BlockHeaderHash,
211-
/// block height of the chain tip
212-
pub tip_height: u64,
213207
/// consensus hash of the chain tip
214208
pub consensus_hash: ConsensusHash,
215209
/// hash of last microblock
@@ -927,8 +921,6 @@ impl<'a> TestRPC<'a> {
927921
consensus_hash: nakamoto_tip.consensus_hash.clone(),
928922
tip_hash: nakamoto_tip.anchored_header.block_hash(),
929923
tip_height: nakamoto_tip.stacks_block_height,
930-
tip_hash: nakamoto_tip.anchored_header.block_hash(),
931-
tip_height: nakamoto_tip.stacks_block_height,
932924
microblock_tip_hash: BlockHeaderHash([0x00; 32]),
933925
mempool_txids: vec![],
934926
microblock_txids: vec![],

0 commit comments

Comments
 (0)