-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
Signed-off-by: kcw-grunt <[email protected]>
Updated the timer intervals to allow more time for CPU to process Signed-off-by: kcw-grunt <[email protected]>
Signed-off-by: kcw-grunt <[email protected]>
version bump Signed-off-by: kcw-grunt <[email protected]>
@hassanashraf92 will you convert this to a regular PR when you are comfortable? |
There was a problem hiding this comment.
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
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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]>
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