Skip to content

Commit cbf8fd1

Browse files
authored
reject to accept does not need req to accept (#393)
1 parent b0e8c88 commit cbf8fd1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/service/bill_service.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,16 +1560,6 @@ impl BillService {
15601560
if blockchain.block_with_operation_code_exists(BillOpCode::Accept) {
15611561
return Err(Error::BillAlreadyAccepted);
15621562
}
1563-
// there has to be a request to accept block that is not expired
1564-
if let Some(req_to_accept) =
1565-
blockchain.get_last_version_block_with_op_code(BillOpCode::RequestToAccept)
1566-
{
1567-
if req_to_accept.timestamp + ACCEPT_DEADLINE_SECONDS < timestamp {
1568-
return Err(Error::RequestAlreadyExpired);
1569-
}
1570-
} else {
1571-
return Err(Error::BillWasNotRequestedToAccept);
1572-
}
15731563
}
15741564
BillOpCode::RejectToBuy => {
15751565
if let RecourseWaitingForPayment::Yes(_) = waiting_for_recourse {

0 commit comments

Comments
 (0)