Skip to content

Commit

Permalink
feat:remove synced records
Browse files Browse the repository at this point in the history
  • Loading branch information
CanghaiWY committed Apr 9, 2024
1 parent e8730e2 commit 3395c01
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1335,10 +1335,9 @@ await _contractProvider.GetSyncHolderInfoInputAsync(chainId,
record.ValidateHeight = long.MaxValue;
record.ValidateTransactionInfoDto = new TransactionInfo();
record.ResultStatus = ResultStatus.NotMinded;
if (!result.Error.Contains("Already synced"))
if (result.Error.Contains("Already synced"))
{
record.ResultStatus = ResultStatus.Synced;

}
}
else
Expand Down Expand Up @@ -1398,10 +1397,9 @@ await _contractProvider.SyncTransactionAsync(ContractAppServiceConstant.MainChai
record.ValidateHeight = long.MaxValue;
record.ValidateTransactionInfoDto = new TransactionInfo();
record.ResultStatus = ResultStatus.NotMinded;
if (!result.Error.Contains("Already synced"))
if (result.Error.Contains("Already synced"))
{
record.ResultStatus = ResultStatus.Synced;

}
}
else
Expand Down

0 comments on commit 3395c01

Please sign in to comment.