release: bal-server-0.2.1
This commit is contained in:
		
							parent
							
								
									8965a06dbe
								
							
						
					
					
						commit
						d154567aeb
					
				| @ -231,14 +231,14 @@ fn main_result(cfg: &MyConfig, network_params: &NetworkParams) -> Result<(), Err | |||||||
|                 info!("to be pushed: {}: {}",txid, locktime); |                 info!("to be pushed: {}: {}",txid, locktime); | ||||||
|                 match rpc.send_raw_transaction(tx){ |                 match rpc.send_raw_transaction(tx){ | ||||||
|                     Ok(o) => { |                     Ok(o) => { | ||||||
|                         let mut file = OpenOptions::new() |                         /*let mut file = OpenOptions::new()
 | ||||||
|                             .append(true) // Set the append option
 |                             .append(true) // Set the append option
 | ||||||
|                             .create(true) // Create the file if it doesn't exist
 |                             .create(true) // Create the file if it doesn't exist
 | ||||||
|                             .open("valid_txs")?; |                             .open("valid_txs")?; | ||||||
|                         let data = format!("{}\t:\t{}\t:\t{}\n",txid,average_time,locktime); |                         let data = format!("{}\t:\t{}\t:\t{}\n",txid,average_time,locktime); | ||||||
|                         file.write_all(data.as_bytes())?; |                         file.write_all(data.as_bytes())?; | ||||||
|                         drop(file); |                         drop(file); | ||||||
| 
 |                         */ | ||||||
|                         info!("tx: {} pusshata PUSHED\n{}",txid,o); |                         info!("tx: {} pusshata PUSHED\n{}",txid,o); | ||||||
|                         pushed_txs.push(txid.to_string()); |                         pushed_txs.push(txid.to_string()); | ||||||
|                     }, |                     }, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user