rpcserver: allow orders to be submitted in StatePendingBatch

This commit is contained in:
Oliver Gugger 2020-08-14 09:32:27 +02:00
parent 09515098f2
commit 584d4e032e
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -1319,11 +1319,13 @@ func (s *rpcServer) SubmitOrder(ctx context.Context,
}
// We'll only allow orders for accounts that present in an open state,
// or have a pending update. On the server-side if we have a pending
// update we won't be matched, but this lets us place our orders early
// so we can join the earliest available batch.
// or have a pending update or batch. On the server-side if we have a
// pending update we won't be matched, but this lets us place our orders
// early so we can join the earliest available batch.
switch acct.State {
case account.StateOpen, account.StatePendingUpdate:
case account.StateOpen, account.StatePendingUpdate,
account.StatePendingBatch:
break
default: