func (cl *OpencxRPC) GetOrdersForPubkey(args GetOrdersForPubkeyArgs, reply *GetOrdersForPubkeyReply) (err error) {
	var pubkey *koblitz.PublicKey
	if pubkey, err = cl.Server.GetOrdersStringVerify(args.Signature); err != nil {
		return
	}

	cl.Server.LockIngests()
	if reply.Orders, err = cl.Server.OpencxDB.GetOrdersForPubkey(pubkey); err != nil {
		return
	}
	cl.Server.UnlockIngests()

	return
}
// GetOrdersForPubkey gets the orders for the pubkey which has signed the getOrdersString
GetOrdersForPubkey gets the orders for the pubkey which has signed the getOrdersString
// GetOrdersForPubkey gets the orders for the pubkey which has signed the getOrdersString
func (cl *OpencxRPC) GetOrdersForPubkey(args GetOrdersForPubkeyArgs, reply *GetOrdersForPubkeyReply) (err error) {
	var pubkey *koblitz.PublicKey
	if pubkey, err = cl.Server.GetOrdersStringVerify(args.Signature); err != nil {
		return
	}
	cl.Server.LockIngests()
	if reply.Orders, err = cl.Server.OpencxDB.GetOrdersForPubkey(pubkey); err != nil {
		return
	}
	cl.Server.UnlockIngests()
	return
}
func ( cl * OpencxRPC ) GetOrdersForPubkey ( args GetOrdersForPubkeyArgs , reply * GetOrdersForPubkeyReply ) ( err error ) { var pubkey * koblitz . PublicKey if pubkey , err = cl . Server . GetOrdersStringVerify ( args . Signature ) ; err != nil { return } cl . Server . LockIngests ( ) if reply . Orders , err = cl . Server . OpencxDB . GetOrdersForPubkey ( pubkey ) ; err != nil { return } cl . Server . UnlockIngests ( ) return }
GetOrdersForPubkey gets the orders for the pubkey which has signed the getOrdersString
GetOrdersForPubkey gets the orders for the pubkey which has signed the getOrdersString