Skip to content

Commit

Permalink
Merge branch 'master' into add_zk_opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT authored Nov 28, 2024
2 parents 606ad72 + 7a2aa80 commit 04f6807
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 04f6807

Please sign in to comment.