-
Notifications
You must be signed in to change notification settings - Fork 3
Deals watcher #88
Copy link
Copy link
Open
Labels
A-testsArea: testsArea: testsC-apiComponents: REST APIComponents: REST APIC-blockchainComponents: blockchainComponents: blockchainC-databaseComponents: databaseComponents: databaseD-averageDifficulty: averageDifficulty: averageP-highPriority: highPriority: highT-featureType: featureType: feature
Metadata
Metadata
Assignees
Labels
A-testsArea: testsArea: testsC-apiComponents: REST APIComponents: REST APIC-blockchainComponents: blockchainComponents: blockchainC-databaseComponents: databaseComponents: databaseD-averageDifficulty: averageDifficulty: averageP-highPriority: highPriority: highT-featureType: featureType: feature
When the
Dealevent is emitted in theStayscontractlpms-servermust catch this event and check the availability of the associatedspace.This issue is blocked by windingtree/stays-contracts#10
spaceis less than booked in thedealthisdealmust bedeclinedimmediately. Timeout between theDealevent anddeclinetransaction must be no longer than the timeout configured in theStayssmart contract (confirmation timeoutof the state machine). This issue is blocked by State machine stays-contracts#10spaceis enough the watcher must decrease the availability value in the database by the value of thedeal