pub fn finalize_tx(&mut self, slate: &mut Slate) -> Result<(), Error> {
		let mut w = self.wallet.lock();
		w.open_with_credentials()?;
		let context = w.get_private_context(slate.id.as_bytes())?;
		tx::complete_tx(&mut *w, slate, &context)?;
		tx::update_stored_tx(&mut *w, slate)?;
		{
			let mut batch = w.batch()?;
			batch.delete_private_context(slate.id.as_bytes())?;
			batch.commit()?;
		}

		w.close()?;
		Ok(())
	}
/// Sender finalization of the transaction. Takes the file returned by the
/// sender as well as the private file generate on the first send step.
/// Builds the complete transaction and sends it to a grin node for
/// propagation.
Sender finalization of the transaction. Takes the file returned by the
sender as well as the private file generate on the first send step.
Builds the complete transaction and sends it to a grin node for
propagation.
Sender finalization of the transaction . Takes the file returned by the sender as well as the private file generate on the first send step . Builds the complete transaction and sends it to a grin node for propagation .
pub fn finalize_tx(&mut self, slate: &mut Slate) -> Result<(), Error> {
		let mut w = self.wallet.lock();
		w.open_with_credentials()?;
		let context = w.get_private_context(slate.id.as_bytes())?;
		tx::complete_tx(&mut *w, slate, &context)?;
		tx::update_stored_tx(&mut *w, slate)?;
		{
			let mut batch = w.batch()?;
			batch.delete_private_context(slate.id.as_bytes())?;
			batch.commit()?;
		}
		w.close()?;
		Ok(())
	}
pub fn finalize_tx ( & mut self , slate : & mut Slate ) -> Result < ( ) , Error > { let mut w = self . wallet . lock ( ) ; w . open_with_credentials ( ) ? ; let context = w . get_private_context ( slate . id . as_bytes ( ) ) ? ; tx :: complete_tx ( & mut * w , slate , & context ) ? ; tx :: update_stored_tx ( & mut * w , slate ) ? ; { let mut batch = w . batch ( ) ? ; batch . delete_private_context ( slate . id . as_bytes ( ) ) ? ; batch . commit ( ) ? ; } w . close ( ) ? ; Ok ( ( ) ) }
Sender finalization of the transaction.
Sender finalization of the transaction .
&mut self
slate
&mut Slate