Skip to content

Commit 7b7998b

Browse files
parasytejintekc
authored andcommitted
Consistently refer to transaction metadata without a "block-" prefix
1 parent f4a718a commit 7b7998b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mdbook/src/operations/resolve.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ For each transaction found:
123123
* CAS Beacon: use [Process CAS Beacon](#process-cas-beacon).
124124
* SMT Beacon: use [Process SMT Beacon](#process-smt-beacon).
125125
* Build a tuple with:
126-
* The transaction's block-height, block-time, and block-confirmations.
126+
* The transaction's block metadata (height, time, and confirmations).
127127
* The [BTCR2 Signed Update (data structure)] retrieved from `update_lookup_table[update_hash]`.
128128
* If the update is not in `update_lookup_table`, retrieve it from [CAS].
129129
* Raise a [`MISSING_UPDATE_DATA`] error if the update is not available from either source.
@@ -146,9 +146,9 @@ Return `current_document` as the resolved `didDocument` if `updates` is empty.
146146

147147
Otherwise:
148148

149-
1. Sort `updates` by [BTCR2 Signed Update (data structure)] `targetVersionId` (ascending) with block-height as a tiebreaker. Take the first tuple.
150-
2. Set `block_confirmations` to the tuple's block-confirmations.
151-
3. If `resolutionOptions.versionTime` is provided and the tuple's block-time is more recent, return `current_document` as the resolved `didDocument`.
149+
1. Sort `updates` by [BTCR2 Signed Update (data structure)] `targetVersionId` (ascending) with the tuple's block height as a tiebreaker. Take the first tuple.
150+
2. Set `block_confirmations` to the tuple's block confirmations.
151+
3. If `resolutionOptions.versionTime` is provided and the tuple's block time is more recent, return `current_document` as the resolved `didDocument`.
152152
4. Set `update` to the tuple's [BTCR2 Signed Update (data structure)] and [check `update.targetVersionId`](#check-update-version).
153153
5. Increment `current_version_id`.
154154
6. If `current_version_id` is greater than or equal to the integer form of `resolutionOptions.versionId`, return `current_document`.

0 commit comments

Comments
 (0)