Skip to content

Commit

Permalink
Account recovery change for Protocol 6
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalCoinDev committed Jul 21, 2020
1 parent d2131b0 commit 290ba9c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/core/UOpTransaction.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1785,6 +1785,23 @@ function TOpRecoverFounds.DoOperation(AccountPreviousUpdatedBlock : TAccountPrev
if Not TAccountComp.IsValidAccountKey(FData.new_accountkey,LSafeboxCurrentProtocol,errors) then begin
Exit;
end;

// Poll on Discord
// https://discordapp.com/channels/383064643482025984/391780165669093377/719437469329915945
// RESULTS ON 2020-07-21
// 1 (22 votes) - Remove PASC/PASA Recovery rule
// 2 (27 votes) - Recover only EMPTY non used, not named PASA's
// 3 (3 votes) - Change Recovery to 10 year rule
// 4 (2 votes) - Leave As Is.
// ----------
// Winner option 2: Will apply on next Hard Fork (Protocol 6)
if (LSafeboxCurrentProtocol>CT_PROTOCOL_5) then begin
if (acc.balance>0) or (Length(acc.name)>0) then begin
errors := 'Recover account is only valid for Balance 0 and unnamed accounts';
exit;
end;
end;

Result := AccountTransaction.UpdateAccountInfo(AccountPreviousUpdatedBlock,
GetOpID,
FData.account,FData.n_operation, FData.account,
Expand Down

0 comments on commit 290ba9c

Please sign in to comment.