You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the only way this can fail is if we don't find a base AND extension doesn't include block 0, but I think one of these will have to be true, i.e. extension must have a genesis block or else we have a base.
Perhaps more importantly, this function actually allows you to change the genesis block if the changeset happens to include it (although why would it?) which seems incongruent with most other methods
I don't think it's terribly urgent and seems like it mostly affects developers who are working with LocalChain. The issue was originally motivated by a discussion with @rustaceanrob who pointed out that MissingGenesisError is surprisingly common for something that should be an inherent property of a LocalChain object.
What I mean by inherent or an invariant of LocalChain is if all constructors of LocalChain require a genesis block then calls of merging chains may only be fallible in that they do not connect
It seems like the only way this can fail is if we don't find a base AND
extension
doesn't include block 0, but I think one of these will have to be true, i.e.extension
must have a genesis block or else we have a base.bdk/crates/chain/src/local_chain.rs
Lines 23 to 30 in 775e4ae
bdk/crates/chain/src/local_chain.rs
Lines 43 to 48 in 775e4ae
The text was updated successfully, but these errors were encountered: