fn utxo_block_batch(&self, req: &mut Request) -> Vec<BlockOutputs> {
		let mut start_height = 1;
		let mut end_height = 1;
		if let Ok(params) = req.get_ref::<UrlEncodedQuery>() {
			if let Some(heights) = params.get("start_height") {
				for height in heights {
					start_height = height.parse().unwrap();
				}
			}
			if let Some(heights) = params.get("end_height") {
				for height in heights {
					end_height = height.parse().unwrap();
				}
			}
		}
		let mut return_vec = vec![];
		for i in start_height..end_height + 1 {
			return_vec.push(self.utxos_at_height(i));
		}
		return_vec
	}
// returns utxos for a specified range of blocks
returns utxos for a specified range of blocks
returns utxos for a specified range of blocks
fn utxo_block_batch(&self, req: &mut Request) -> Vec<BlockOutputs> {
		let mut start_height = 1;
		let mut end_height = 1;
		if let Ok(params) = req.get_ref::<UrlEncodedQuery>() {
			if let Some(heights) = params.get("start_height") {
				for height in heights {
					start_height = height.parse().unwrap();
				}
			}
			if let Some(heights) = params.get("end_height") {
				for height in heights {
					end_height = height.parse().unwrap();
				}
			}
		}
		let mut return_vec = vec![];
		for i in start_height..end_height + 1 {
			return_vec.push(self.utxos_at_height(i));
		}
		return_vec
	}
fn utxo_block_batch ( & self , req : & mut Request ) -> Vec < BlockOutputs > { let mut start_height = 1 ; let mut end_height = 1 ; if let Ok ( params ) = req . get_ref :: < UrlEncodedQuery > ( ) { if let Some ( heights ) = params . get ( " " ) { for height in heights { start_height = height . parse ( ) . unwrap ( ) ; } } if let Some ( heights ) = params . get ( " " ) { for height in heights { end_height = height . parse ( ) . unwrap ( ) ; } } } let mut return_vec = vec ! [ ] ; for i in start_height .. end_height + 1 { return_vec . push ( self . utxos_at_height ( i ) ) ; } return_vec }
returns utxos for a specified range of blocks
returns utxos for a specified range of blocks
&self
req
&mut Request