Skip to content

[Audit - TOB-CELOL2-3] Add error checks to migration script#283

Merged
alecps merged 4 commits intocelo10from
alecps/migrationInvariants
Dec 17, 2024
Merged

[Audit - TOB-CELOL2-3] Add error checks to migration script#283
alecps merged 4 commits intocelo10from
alecps/migrationInvariants

Conversation

@alecps
Copy link
Copy Markdown

@alecps alecps commented Dec 9, 2024

Addresses https://github.com/celo-org/celo-blockchain-planning/issues/845 based on audit feedback in TOB-CELOL2-3

Note that the suggestion to check if stray blocks are in the ancient db before removing them is not included here and may be added in a follow on. This change will be larger than those included here, and may have a performance impact that needs to be evaluated. We have also added a check to the migration script to ensure gaps do not exist in the block data (#282), which will help mitigate this concern as well.

@alecps alecps force-pushed the alecps/migrationInvariants branch from 1011679 to 9a987d1 Compare December 10, 2024 19:55
@alecps alecps marked this pull request as ready for review December 10, 2024 19:57
@alecps alecps requested review from palango and piersy December 10, 2024 19:58
@alecps alecps force-pushed the alecps/migrationInvariants branch from 6dc8642 to 158201a Compare December 11, 2024 17:38
@alecps alecps requested a review from piersy December 11, 2024 17:38
@alecps alecps requested review from palango and removed request for gastonponti and palango December 13, 2024 16:33
@alecps alecps requested review from palango and piersy and removed request for palango and piersy December 16, 2024 17:32
@alecps alecps merged commit 2fedcc0 into celo10 Dec 17, 2024
@alecps alecps deleted the alecps/migrationInvariants branch December 17, 2024 15:01
@alecps alecps restored the alecps/migrationInvariants branch December 17, 2024 16:03
@alecps alecps deleted the alecps/migrationInvariants branch December 17, 2024 16:06
gastonponti pushed a commit that referenced this pull request Dec 17, 2024
* addresses audit comments

* fix errors

* addresses feedback

* missed defer statements
jcortejoso pushed a commit that referenced this pull request Jan 10, 2025
* addresses audit comments

* fix errors

* addresses feedback

* missed defer statements
karlb pushed a commit that referenced this pull request Feb 12, 2025
* addresses audit comments

* fix errors

* addresses feedback

* missed defer statements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants