feat(core,chain): implement Display, FromStr, FromSql and ToSql for BlockId#2097
feat(core,chain): implement Display, FromStr, FromSql and ToSql for BlockId#2097luisschwab wants to merge 2 commits intobitcoindevkit:masterfrom
Display, FromStr, FromSql and ToSql for BlockId#2097Conversation
oleonardolima
left a comment
There was a problem hiding this comment.
Concept ACK
It looks good, though I want to test it with the bdk_wallet companion PR before fully ACK'ing it.
|
Also, the PR description is missing the |
|
@luisschwab If you are looking forward to have this on |
|
@oleonardolima I'll make a backport PR once this is merged on master. |
|
It's not obvious that |
Do you think that's a better approach? I think this is a pretty sane and straight forward way to persist it. |
This PR implements
Display,FromStrforBlockId, andFromSqlandToSqlforImpl<BlockId>, needed to persist the wallet's birthday as aBlockId(height + hash).Changelog notice
DisplayandFromStrforBlockIdFromSqlandToSqlforImpl<BlockId>