Skip to content

Hermes migration: add blockchain check for open channel - #5226

Merged
n10ty merged 6 commits into
masterfrom
5221-hermes-migration-add-bc-check
Jun 22, 2022
Merged

Hermes migration: add blockchain check for open channel#5226
n10ty merged 6 commits into
masterfrom
5221-hermes-migration-add-bc-check

Conversation

@n10ty

@n10ty n10ty commented Jun 20, 2022

Copy link
Copy Markdown
Contributor

For freshly registered users:

  • Add subscription to registration event. Mark as no registration is needed.
  • If local db (boltdb) in some case not available and old Hermes down - skip migration and mark it as 'done'
  • Add preceding call to blockchain: if channel for old Hermes not opened - skip
    For users who are using old Hermes:
  • if old Hermes is down - still open new payment channel in new Hermes

Add initial check to blockchain. If channel is open mark as migrated and skip
@n10ty
n10ty marked this pull request as ready for review June 20, 2022 08:48
@n10ty n10ty changed the title Hermes migration fix Hermes migration: add blockchain check for open channel Jun 20, 2022
Comment thread consumer/migration/hermes_migrator.go Outdated
Comment thread consumer/migration/hermes_migrator.go
AndreyM added 2 commits June 20, 2022 17:36
When check whether channel is open - do it in bc first, do not rely on Transactor
If user register on new hermes mark identity as skip for migration
Fix test
@n10ty
n10ty requested a review from Guillembonet June 21, 2022 07:21
Comment thread cmd/di.go Outdated
@n10ty
n10ty requested a review from tomasmik June 21, 2022 11:16
Comment thread consumer/migration/hermes_migrator.go
@n10ty
n10ty merged commit 6cad38f into master Jun 22, 2022
@n10ty
n10ty deleted the 5221-hermes-migration-add-bc-check branch June 22, 2022 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants