Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Read registry_address from given block #7866

Merged
merged 1 commit into from
Feb 12, 2018
Merged

Conversation

svyatonik
Copy link
Collaborator

In brief: before reacting to contract events (like serving key generation requests in SS) we might want to wait for several confirmations. But the similar situation is with the contract itself - there might be a reorg to previous/other address within a few blocks. So it is a good idea to rely on the address from the same block we're reading requests from.

Original TODO: https://github.com/paritytech/parity/blob/fab03398dda7e768b1b620c07bf82cbfed662fa8/secret_store/src/listener/service_contract.rs#L128 will be fixed later if this PR will be accepted.

@svyatonik svyatonik added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Feb 12, 2018
@5chdn 5chdn added this to the 1.10 milestone Feb 12, 2018
Copy link
Contributor

@0x7CFE 0x7CFE left a comment

Choose a reason for hiding this comment

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

LGTM

@5chdn 5chdn added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Feb 12, 2018
@5chdn 5chdn merged commit 1ca1fba into master Feb 12, 2018
@5chdn 5chdn deleted the registry_address_from_block branch February 12, 2018 17:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants