Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/transaction crashes 240 #243

Merged
merged 8 commits into from
May 11, 2024
Merged

Fix/transaction crashes 240 #243

merged 8 commits into from
May 11, 2024

Conversation

kcw-grunt
Copy link
Member

@kcw-grunt kcw-grunt commented May 10, 2024

Describe the issue

Many users where experience a runtime crash during sync. It turns on the the syncing process is not at all performant and there was a very likely scenario where the user addresses would overflow the mem space during sync

This fix resolves and checks the data first

@kcw-grunt kcw-grunt added the 🦟 critical bug Drop everything. this bug needs immediate attention label May 10, 2024
@kcw-grunt
Copy link
Member Author

@hassanashraf92 will you convert this to a regular PR when you are comfortable?
Please invite me and @josikie to review.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one of the dev leaks I have ignored so long @hassanashraf92

@hassanashraf92 hassanashraf92 marked this pull request as ready for review May 10, 2024 14:05
@hassanashraf92 hassanashraf92 self-assigned this May 10, 2024
Copy link
Member

@josikie josikie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @kcw-grunt and @hassanashraf92

@@ -24,8 +24,7 @@ enum BartyCrouch {
case turkey = "tr"
}

static func translate(key: String, translations: [SupportedLanguage: String], comment _: String? = nil) -> String
{
static func translate(key: String, translations: [SupportedLanguage: String], comment _: String? = nil) -> String {
let typeName = String(describing: BartyCrouch.self)
let methodName = #function
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is #function?

}

static var isIPhone5: Bool {
return (UIScreen.main.bounds.size.height == 568.0) && (E.is32Bit)
}

static var isIPhoneX: Bool {
return (UIScreen.main.bounds.size.height == 812.0)
return UIScreen.main.bounds.size.height == 812.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

static let is32Bit: Bool = {
MemoryLayout<Int>.size == MemoryLayout<UInt32>.size
}()
static let is32Bit: Bool = MemoryLayout<Int>.size == MemoryLayout<UInt32>.size
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it allowed to compare Int data type to UInt32 data type in Swift?

self.view.addSubview(self.blurView)
self.blurView.constrain(toSuperviewEdges: nil)
}
NotificationCenter.default.addObserver(forName: UIScene.willDeactivateNotification, object: nil, queue: nil) { _ in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is _ in? I saw it many times the _ doesn't have comma, only space

@@ -4,8 +4,8 @@ extension CGContext {
func addLineThrough(_ points: [(CGFloat, CGFloat)]) {
guard let first = points.first else { return }
move(to: CGPoint(x: first.0, y: first.1))
points.dropFirst().forEach {
addLine(to: CGPoint(x: $0.0, y: $0.1))
for point in points.dropFirst() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

- Added enum Error for throws
- Reset the PartnerData plist code
- reset tags

Signed-off-by: kcw-grunt <[email protected]>
@kcw-grunt kcw-grunt merged commit 28cd0d5 into develop May 11, 2024
@kcw-grunt kcw-grunt deleted the fix/transaction-crashes-240 branch May 11, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦟 critical bug Drop everything. this bug needs immediate attention
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants