mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-15 12:50:29 +02:00
rpcserver: allow orders to be submitted in StatePendingBatch
This commit is contained in:
parent
09515098f2
commit
584d4e032e
1 changed files with 6 additions and 4 deletions
10
rpcserver.go
10
rpcserver.go
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue