diff --git a/book/src/advanced/mapper_options.md b/book/src/advanced/mapper_options.md index 00ab50d2..f94d17f3 100644 --- a/book/src/advanced/mapper_options.md +++ b/book/src/advanced/mapper_options.md @@ -27,10 +27,12 @@ include_transaction_details = include_transaction_end_events = include_block_cbor = include_byron_ebb = +include_block_details = ``` - `include_block_end_events`: if enabled, the source will output an event signaling the end of a block, duplicating all of the data already sent in the corresponding block start event. Default value is `false`. - `include_transaction_details`: if enabled, each transaction event payload will contain an nested version of all of the details of the transaction (inputs, outputs, mint, assets, metadata, etc). Useful when the pipeline needs to process the tx as a unit, instead of handling each sub-object as an independent event. Default value is `false`. -- `include_transaction_end_events`: if enabled, the source will output an event signaling the end of a transaction, duplicating all of the data already sent in the corresponding transaction start event. Defaul value is `false`. +- `include_transaction_end_events`: if enabled, the source will output an event signaling the end of a transaction, duplicating all of the data already sent in the corresponding transaction start event. Default value is `false`. - `include_block_cbor`: if enabled, the block event will include the raw, unaltered cbor content received from the node, formatted as an hex string. Useful when some custom cbor decoding is required. Default value is `false`. - `include_byron_ebb`: if enabled, a block event will be emmitted for legacy epoch boundary block of the Byron era (deprecated in newer eras). Useful when performing validation on previous block hashes. Default value is `false`. +- `include_block_details`: If enabled, all transactions in the block will be mapped. Default value is `false`. diff --git a/src/mapper/babbage.rs b/src/mapper/babbage.rs index 443cf864..f4b683f1 100644 --- a/src/mapper/babbage.rs +++ b/src/mapper/babbage.rs @@ -161,7 +161,7 @@ impl EventWriter { transactions: None, }; - if self.config.include_block_details { + if self.config.include_block_details || self.config.include_transaction_details { record.transactions = Some(self.collect_babbage_tx_records(source)?); } diff --git a/src/mapper/byron.rs b/src/mapper/byron.rs index 65d05504..2ed223d5 100644 --- a/src/mapper/byron.rs +++ b/src/mapper/byron.rs @@ -192,7 +192,7 @@ impl EventWriter { transactions: None, }; - if self.config.include_block_details { + if self.config.include_block_details || self.config.include_transaction_details { record.transactions = Some(self.collect_byron_tx_records(source)?); } diff --git a/src/mapper/map.rs b/src/mapper/map.rs index 3e2179a4..31af0949 100644 --- a/src/mapper/map.rs +++ b/src/mapper/map.rs @@ -506,7 +506,7 @@ impl EventWriter { transactions: None, }; - if self.config.include_block_details { + if self.config.include_block_details || self.config.include_transaction_details { record.transactions = Some(self.collect_shelley_tx_records(source)?); }