Skip to content

Commit 836fd67

Browse files
committed
revert prev_hash optionality in DeclareMiningJob
1 parent a4738d0 commit 836fd67

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

06-Job-Declaration-Protocol.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,16 @@ Only used in Full-Template mode.
144144

145145
A request sent by JDC that proposes a selected set of transactions to JDS.
146146

147-
| Field Name | Data Type | Description |
148-
| --------------------------- | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
149-
| request_id | U32 | Unique identifier for pairing the response |
150-
| mining_job_token | B0_255 | Previously reserved mining job token received by AllocateMiningJobToken.Success |
151-
| version | U32 | Version header field. To be later modified by BIP320-consistent changes. |
152-
| prev_hash | U256 | Optional. Contains the chain tip that the template is based on. JDS SHOULD accept templates based on different tips, as long as they are on the best block height and don't contain double spends. |
153-
| coinbase_tx_prefix | B0_64K | Serialized bytes representing the initial part of the coinbase transaction (not including extranonce) |
147+
| Field Name | Data Type | Description |
148+
| --------------------------- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
149+
| request_id | U32 | Unique identifier for pairing the response |
150+
| mining_job_token | B0_255 | Previously reserved mining job token received by AllocateMiningJobToken.Success |
151+
| version | U32 | Version header field. To be later modified by BIP320-consistent changes. |
152+
| prev_hash | U256 | Contains the chain tip that the template is based on. JDS SHOULD accept templates based on different tips, as long as they are on the best block height and don't contain double spends. |
153+
| coinbase_tx_prefix | B0_64K | Serialized bytes representing the initial part of the coinbase transaction (not including extranonce) |
154154
| coinbase_tx_suffix | B0_64K | Serialized bytes representing the final part of the coinbase transaction (after extranonce) |
155-
| tx_ids_list | SEQ0_64K[U256] | List of hashes of the transaction set contained in the template. JDS checks the list against its mempool and requests missing txs via `ProvideMissingTransactions`. Does not include the coinbase transaction (as there is no corresponding full data for it yet). |
156-
| excess_data | B0_64K | Extra data which the Pool may require to validate the work (as defined in the Template Distribution Protocol) |
155+
| tx_ids_list | SEQ0_64K[U256] | List of hashes of the transaction set contained in the template. JDS checks the list against its mempool and requests missing txs via `ProvideMissingTransactions`. Does not include the coinbase transaction (as there is no corresponding full data for it yet). |
156+
| excess_data | B0_64K | Extra data which the Pool may require to validate the work (as defined in the Template Distribution Protocol) |
157157

158158
### 6.4.5 `DeclareMiningJob.Success` (Server -> Client)
159159

0 commit comments

Comments
 (0)