Skip to content

Commit 72a60ee

Browse files
committed
update
1 parent 98fa4c4 commit 72a60ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server/dal.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,8 @@ func (d *DAL) GetAllStartTransferIn() ([]*Transfer, error) {
245245
}
246246

247247
func (d *DAL) GetAllConfirmableLockedTransfer() ([]*Transfer, error) {
248-
//TODO time lock may be is not needed
249-
q := fmt.Sprintf("SELECT %s from transfer where status = $1 and timelock > $2 and preimage is not null and preimage != '' and preimage != $3", transferAllColumns)
250-
rows, err := d.Query(q, cbn.TransferStatus_TRANSFER_STATUS_LOCKED, time.Now().Add(timeLockSafeMargin), Hash{}.String())
248+
q := fmt.Sprintf("SELECT %s from transfer where status = $1 and preimage is not null and preimage != '' and preimage != $2", transferAllColumns)
249+
rows, err := d.Query(q, cbn.TransferStatus_TRANSFER_STATUS_LOCKED, Hash{}.String())
251250
if err != nil {
252251
return nil, err
253252
}

0 commit comments

Comments
 (0)