From: merge-script Date: Fri, 16 May 2025 06:13:18 +0000 (+1000) Subject: Merge bitcoindevkit/bdk#1950: feat!(chain): implement `first_seen` tracking X-Git-Tag: core-0.6.0~8 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/static/struct.AggregateChangesetsError.html?a=commitdiff_plain;h=b9e4e4c60ddc5888f5b5ef4085a779e141cf2c74;p=bdk Merge bitcoindevkit/bdk#1950: feat!(chain): implement `first_seen` tracking 8b17bcfc03c39cd35415742bc31293b7969d1024 feat!(chain): implement `first_seen` tracking (uvuvuwu) Pull request description: ### Description This PR solves issue #1947 by implementing `first_seen` tracking. * Added `first_seen` field to `TxGraph` and `ChangeSet` so that `first_seen` timestamp can be added when inserting a new seen-at using `insert_seen_at`. * `first_seen` added to `TxNode` as a way to retrieve the first-seen timestamp for a transaction. * `first_seen` added to `ChainPosition::Unconfirmed` to order unconfirmed transactions by `first_seen`. * New tests have been added for the above described functionalities. ### Changelog notice * Add tracking first-seen timestamps of transactions ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing #### New Features: * [x] I've added tests for the new feature * [x] I've added docs for the new feature ACKs for top commit: evanlinjin: ACK 8b17bcfc03c39cd35415742bc31293b7969d1024 Tree-SHA512: effb95704181f80ca25b63f5cf42b7a9357895647abefa91d4cc7ade7604bcfa4cca663d3916b935b520d935cf562412c5238f96636a428d115bf56b1957c9d5 --- b9e4e4c60ddc5888f5b5ef4085a779e141cf2c74