-
Notifications
You must be signed in to change notification settings - Fork 39
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(drive)!: non-deterministic behaviour in masternode identities logic #287
fix(drive)!: non-deterministic behaviour in masternode identities logic #287
Conversation
…e-identities' into fix-non-determinism-in-masternode-identities
This pull request introduces 1 alert when merging 51e6f7d into d920064 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 3e21553 into d920064 - view on LGTM.com new alerts:
|
…e-identities' into fix-non-determinism-in-masternode-identities # Conflicts: # packages/js-drive/test/integration/identity/masternode/synchronizeMasternodeIdentitiesFactory.spec.js
….com:dashevo/platform into fix-non-determinism-in-masternode-identities
…e-identities' into fix-non-determinism-in-masternode-identities # Conflicts: # packages/js-drive/test/integration/identity/masternode/synchronizeMasternodeIdentitiesFactory.spec.js
….com:dashevo/platform into fix-non-determinism-in-masternode-identities
…e-identities' into fix-non-determinism-in-masternode-identities
…e-identities' into fix-non-determinism-in-masternode-identities
….com:dashevo/platform into fix-non-determinism-in-masternode-identities
….com:dashevo/platform into fix-non-determinism-in-masternode-identities
…e-identities' into fix-non-determinism-in-masternode-identities
try { | ||
({ result: rawTransaction } = await coreRpcClient.getRawTransaction(id, 1)); | ||
} catch (e) { | ||
// Invalid address or key error |
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.
I think if it times out you should retry. Not essential for this version but still something todo.
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.
That's a good idea. We have something about connection reliability with Core in our backlog.
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 work!
Issue being fixed or feature implemented
The creation of masternode reward share documents is not deterministic which leads to a chain halt.
There is a lack of tests so many issues were visible on only testnet.
What was done?
operatorReward
in a local network (dashmate)$ownerId
andpayToId
pairawait
How Has This Been Tested?
With integration test
Breaking Changes
The fixed masternode identities logic breaks compatibility with previous invalid state.
Checklist:
For repository code-owners and collaborators only