Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Fix last confirmed blocks #281

Merged
merged 12 commits into from
Sep 14, 2020
Merged

Conversation

@AurevoirXavier AurevoirXavier marked this pull request as draft September 13, 2020 13:29
@AurevoirXavier
Copy link
Member

I can't find anywhere read/write ConfirmedDepth.

@AurevoirXavier
Copy link
Member

I found some read/write first check last, fixed.

Read last avoid the unnecessary DB reads.
Write last guarantee no side effect on storage.

frame/bridge/ethereum/relay/src/lib.rs Outdated Show resolved Hide resolved
frame/bridge/ethereum/relay/src/lib.rs Show resolved Hide resolved
frame/bridge/ethereum/relay/src/lib.rs Outdated Show resolved Hide resolved
@hackfisher
Copy link
Contributor Author

I can't find anywhere read/write ConfirmedDepth.

ConfirmedDepth is in todo, will be implemented in later pr

@AurevoirXavier AurevoirXavier marked this pull request as ready for review September 13, 2020 16:29
@hackfisher hackfisher merged commit 23adbf7 into master Sep 14, 2020
@AurevoirXavier AurevoirXavier deleted the denny-refactor-confirmed-headers branch September 14, 2020 14:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants