raiden-network / raiden-monitoring-service

Raiden monitoring service
5 stars 6 forks source link

Monitor requests get overwritten if both parties submit MRs #34

Closed karlb closed 5 years ago

karlb commented 5 years ago

The database table has a primary key on channel_id (see https://github.com/raiden-network/raiden-monitoring-service/blob/master/monitoring_service/state_db/queries.py#L18) and uses INSERT OR REPLACE to update the monitor request in the db. This means that only the latest MR for a channel survives. The desired behaviour is to keep one MR per (channel_id, signer) pair.