From 5c2a08919b0d64311b65bb64054e27d4c2c65a84 Mon Sep 17 00:00:00 2001 From: Hannes Karppila Date: Wed, 21 Feb 2024 17:04:10 +0200 Subject: [PATCH] Remove maturity field from InputCoin --- src/fuel-vm/instruction-set.md | 1 - src/tx-format/input.md | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/fuel-vm/instruction-set.md b/src/fuel-vm/instruction-set.md index 55bade31..606d6002 100644 --- a/src/fuel-vm/instruction-set.md +++ b/src/fuel-vm/instruction-set.md @@ -2493,7 +2493,6 @@ Get [fields from the transaction](../tx-format/transaction.md). | `GTF_INPUT_COIN_ASSET_ID` | `0x205` | Memory address of `tx.inputs[$rB].asset_id` | | `GTF_INPUT_COIN_TX_POINTER` | `0x206` | Memory address of `tx.inputs[$rB].txPointer` | | `GTF_INPUT_COIN_WITNESS_INDEX` | `0x207` | `tx.inputs[$rB].witnessIndex` | -| `GTF_INPUT_COIN_MATURITY` | `0x208` | `tx.inputs[$rB].maturity` | | `GTF_INPUT_COIN_PREDICATE_LENGTH` | `0x209` | `tx.inputs[$rB].predicateLength` | | `GTF_INPUT_COIN_PREDICATE_DATA_LENGTH` | `0x20A` | `tx.inputs[$rB].predicateDataLength` | | `GTF_INPUT_COIN_PREDICATE` | `0x20B` | Memory address of `tx.inputs[$rB].predicate` | diff --git a/src/tx-format/input.md b/src/tx-format/input.md index 072fd679..bd5f9640 100644 --- a/src/tx-format/input.md +++ b/src/tx-format/input.md @@ -28,7 +28,6 @@ Transaction is invalid if: | `asset_id` | `byte[32]` | Asset ID of the coins. | | `txPointer` | [`TXPointer`](./tx-pointer.md) | Points to the TX whose output is being spent. | | `witnessIndex` | `uint8` | Index of witness that authorizes spending the coin. | -| `maturity` | `uint32` | UTXO being spent must have been created at least this many blocks ago. | | `predicateGasUsed` | `uint64` | Gas used by predicate. | | `predicateLength` | `uint16` | Length of predicate, in instructions. | | `predicateDataLength` | `uint16` | Length of predicate input data, in bytes. | @@ -47,8 +46,6 @@ Transaction is invalid if: - `predicateDataLength != len(predicateData)` - `predicateGasUsed > MAX_GAS_PER_PREDICATE` -If `h` is the block height the UTXO being spent was created, transaction is invalid if `blockheight() < h + maturity`. - > **Note:** when signing a transaction, `txPointer` and `predicateGasUsed` is set to zero. > > **Note:** when verifying and estimating a predicate, `txPointer` and `predicateGasUsed` is initialized to zero.