func (s *OpencxAuctionServer) PlacePuzzledOrder(order *match.EncryptedAuctionOrder) (err error) {

	logging.Infof("Got a new puzzle for auction %x", order.IntendedAuction)

	// Placing an auction puzzle is how the exchange will then recall and commit to a set of puzzles.
	s.dbLock.Lock()
	if err = s.OpencxDB.PlaceAuctionPuzzle(order); err != nil {
		s.dbLock.Unlock()
		err = fmt.Errorf("Error placing puzzled order: \n%s", err)
		return
	}
	s.dbLock.Unlock()

	if err = s.validateEncryptedOrder(order); err != nil {
		logging.Errorf("Error validating order: %s", err)
	}

	go s.solveOrderIntoResChan(order)

	return
}
// PlacePuzzledOrder places a timelock encrypted order. It also starts to decrypt the order in a goroutine.
PlacePuzzledOrder places a timelock encrypted order. It also starts to decrypt the order in a goroutine.
// PlacePuzzledOrder places a timelock encrypted order . It also starts to decrypt the order in a goroutine .
func (s *OpencxAuctionServer) PlacePuzzledOrder(order *match.EncryptedAuctionOrder) (err error) {
	logging.Infof("Got a new puzzle for auction %x", order.IntendedAuction)
	s.dbLock.Lock()
	if err = s.OpencxDB.PlaceAuctionPuzzle(order); err != nil {
		s.dbLock.Unlock()
		err = fmt.Errorf("Error placing puzzled order: \n%s", err)
		return
	}
	s.dbLock.Unlock()
	if err = s.validateEncryptedOrder(order); err != nil {
		logging.Errorf("Error validating order: %s", err)
	}
	go s.solveOrderIntoResChan(order)
	return
}
func ( s * OpencxAuctionServer ) PlacePuzzledOrder ( order * match . EncryptedAuctionOrder ) ( err error ) { logging . Infof ( " " , order . IntendedAuction ) s . dbLock . Lock ( ) if err = s . OpencxDB . PlaceAuctionPuzzle ( order ) ; err != nil { s . dbLock . Unlock ( ) err = fmt . Errorf ( " \n " , err ) return } s . dbLock . Unlock ( ) if err = s . validateEncryptedOrder ( order ) ; err != nil { logging . Errorf ( " " , err ) } go s . solveOrderIntoResChan ( order ) return }
PlacePuzzledOrder places a timelock encrypted order.
PlacePuzzledOrder places a timelock encrypted order .
// Placing an auction puzzle is how the exchange will then recall and commit to a set of puzzles.