-
Notifications
You must be signed in to change notification settings - Fork 0
fix/create restore username #25
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
Conversation
| lateinit var registrationFundingPrivateKey: ECKey | ||
| var registrationFundingPrivateKey: ECKey? = null |
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.
This isn't used, but we can keep it for now. crashes resulted from lateinit
| val coreHeight = if (assetLockTransaction!!.confidence.confidenceType == TransactionConfidence.ConfidenceType.BUILDING) { | ||
| assetLockTransaction!!.confidence.appearedAtChainHeight | ||
| } else { | ||
| DashSystem.get(wallet!!.params).blockChain.bestChainHeight | ||
| // this is not supported, how can we get the height? | ||
| // val txInfo = platform.client.getTransaction(assetLockTransaction!!.txId.toString()) | ||
| // txInfo?.height ?: -1 | ||
| }.toLong() | ||
|
|
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.
This is moved out of the loop so that coreHeight is not updated every time a block is mined which would keep this function running forever.
Syn-McJ
left a comment
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.
Looks good
Fix some create/restore username issues