Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Specs to Include Gas Price changes #546

Merged
merged 12 commits into from
Mar 13, 2024
Merged
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
book
.idea/
10 changes: 5 additions & 5 deletions src/tx-format/policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
```c++
// index using powers of 2 for efficient bitmasking
enum PolicyType : uint32 {
GasPrice = 1,
Tip = 1,
WitnessLimit = 2,
Maturity = 4,
MaxFee = 8,
Expand All @@ -14,11 +14,11 @@ enum PolicyType : uint32 {
|--------|---------------------------------------------------------------------------------------|--------------|
| `data` | One of [`GasPrice`](#gasprice), [`WitnessLimit`](#witnesslimit), or [`Maturity`](#maturity) | Policy data. |

## `GasPrice`
## `Tip`

| name | type | description |
|------------|----------|---------------------------|
| `gasPrice` | `uint64` | Gas price for transaction |
| name | type | description |
|------------|----------|-----------------------------------------------------------------------------------------------|
| `gasPrice` | `uint64` | Additional, optional fee in `BASE_ASSET` to incentivize block producer to include transaction |
MitchTurner marked this conversation as resolved.
Show resolved Hide resolved

## `WitnessLimit`

Expand Down
Loading