]> Untitled Git - bdk/commit
feat(chain): add `AnchorFromBlockPosition` trait
author志宇 <hello@evanlinjin.me>
Wed, 4 Oct 2023 08:54:28 +0000 (16:54 +0800)
committer志宇 <hello@evanlinjin.me>
Mon, 9 Oct 2023 14:14:03 +0000 (22:14 +0800)
commitb3db5ca9df4302fddcd5474569849371f2be7e2d
tree45c18bdfc4d7020afa4dd603667796e192bca986
parentf795a43cc72fdb4ef26ca349c4cb4f4bfd3b90b5
feat(chain): add `AnchorFromBlockPosition` trait

This is useful for block-by-block chain sources. We can determine the
tx's anchor based on the block, block height and tx position in the
block.
crates/chain/src/chain_data.rs
crates/chain/src/tx_data_traits.rs