Skip to content

Commit

Permalink
Add policy expiration (#616)
Browse files Browse the repository at this point in the history
#593

VM PR : FuelLabs/fuel-vm#871

### Before requesting review
- [x] I have reviewed the code myself

### After merging, notify other teams

[Add or remove entries as needed]

- [ ] [Rust SDK](https://github.com/FuelLabs/fuels-rs/)
- [ ] [Sway compiler](https://github.com/FuelLabs/sway/)
- [ ] [Platform
documentation](https://github.com/FuelLabs/devrel-requests/issues/new?assignees=&labels=new+request&projects=&template=NEW-REQUEST.yml&title=%5BRequest%5D%3A+)
(for out-of-organization contributors, the person merging the PR will do
this)
- [ ] Someone else?
  • Loading branch information
AurelienFT authored Nov 28, 2024
1 parent f9e6b9e commit 7a2aa80
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/tx-format/policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ enum PolicyType : uint32 {
WitnessLimit = 2,
Maturity = 4,
MaxFee = 8,
Expiration = 16,
}
```

| name | type | description |
|--------|-----------------------------------------------------------------------------------|--------------|
| `data` | One of [`Tip`](#tip), [`WitnessLimit`](#witnesslimit), or [`Maturity`](#maturity) | Policy data. |
| `data` | One of [`Tip`](#tip), [`WitnessLimit`](#witnesslimit), [`Maturity`](#maturity) or [`Expiration`](#expiration) | Policy data. |

## `Tip`

Expand Down Expand Up @@ -42,6 +43,16 @@ Transaction is invalid if:

- `blockheight() < maturity`

## `Expiration`

| name | type | description |
|--------------|----------|------------------------------------------|
| `expiration` | `uint32` | Block after which the transaction cannot be included. |

Transaction is invalid if:

- `blockheight() > expiration`

## `MaxFee`

| name | type | description |
Expand Down

0 comments on commit 7a2aa80

Please sign in to comment.