mx-chain-go icon indicating copy to clipboard operation
mx-chain-go copied to clipboard

Feat/freeze account

Open AdoAdoAdo opened this issue 2 years ago • 1 comments

This feature adds improved account security for which users can opt in. To enable account freezing, the user first needs to set a guardian address, and that guardian address needs to become active (there is a delay of 20 epochs). A frozen account can only have its transactions processed if co-signed by the guardian account (the only exception is the SetGuardian transaction, which can be either co-signed or regular). Changing the guardian is possible, either immediately if the setGuardian transaction is co-signed by the active guardian, or with the same 20 epochs delay otherwise.

AdoAdoAdo avatar May 24 '22 10:05 AdoAdoAdo

Codecov Report

Patch coverage: 85.71% and project coverage change: +0.01 :tada:

Comparison is base (ab1c054) 77.00% compared to head (099f108) 77.01%.

:exclamation: Current head 099f108 differs from pull request most recent head a430d16. Consider uploading reports for the commit a430d16 to get more accurate results

Additional details and impacted files
@@              Coverage Diff              @@
##           rc/v1.5.0    #4106      +/-   ##
=============================================
+ Coverage      77.00%   77.01%   +0.01%     
=============================================
  Files            650      651       +1     
  Lines          85470    85920     +450     
=============================================
+ Hits           65813    66171     +358     
- Misses         14476    14547      +71     
- Partials        5181     5202      +21     
Impacted Files Coverage Δ
factory/bootstrap/bootstrapComponentsHandler.go 57.89% <0.00%> (-6.82%) :arrow_down:
process/economics/builtInFunctionsCost.go 55.33% <0.00%> (-3.43%) :arrow_down:
...r/evictionWaitingList/memoryEvictionWaitingList.go 90.52% <ø> (ø)
state/userAccount.go 87.32% <0.00%> (-5.22%) :arrow_down:
process/smartContract/builtInFunctions/factory.go 83.33% <33.33%> (-2.64%) :arrow_down:
process/transaction/metaProcess.go 73.86% <33.33%> (+3.07%) :arrow_up:
process/transaction/shardProcess.go 72.26% <33.33%> (-0.47%) :arrow_down:
common/enablers/epochFlags.go 92.11% <50.00%> (-0.62%) :arrow_down:
factory/bootstrap/bootstrapComponents.go 72.19% <60.00%> (-0.34%) :arrow_down:
process/economics/economicsData.go 71.77% <71.08%> (+1.29%) :arrow_up:
... and 29 more

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov-commenter avatar Aug 30 '22 11:08 codecov-commenter