Skip to content

Commit 0e37c67

Browse files
random-zebrafurszy
authored andcommitted
[Doc] Document consensus and policy changes related to Shield
Github-Pull: #2114 Rebased-From: cc3c83d
1 parent 07d9db7 commit 0e37c67

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/release-notes.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,18 @@ A brand new manager encapsulating all Sapling related capabilities inside the wa
9696
* Transactions with `nVersion >= 3` and `nType != 0`(not enabled by consensus at the moment), are defined "special transactions" and must include an extra payload serialized according to the definition imposed by the relative type.
9797
* A new signature hash for Sapling and Special transactions has been implemented (as defined in [ZIP-243](https://zips.z.cash/zip-0243)).
9898

99+
#### Additional Consensus Rules
100+
- Transactions with version >= 3 must have the new serialization (including a zero byte for empty `Optional`, if missing `sapData` or `extraPayload`).
101+
- Shield transactions cannot be coinbase or coinstake transactions.
102+
- Transactions containing empty `vin` must have non-empty `vShieldedSpend`.
103+
- Transactions containing empty `vout` must have non-empty `vShieldedOutput`.
104+
- Transactions with version >= 4 are not accepted
105+
- The maximum size of a single Shield transaction is 400 kB.
106+
- The sum of the sizes of all Shield transactions in a block cannot be greater than 750 kB.
107+
108+
#### Fee Policy
109+
The `minRelayTxFee` startup argument is multiplied by a fixed factor `K = 100` for Shield transactions. This makes the fee required to relay Shield transactions (and "dust" threshold value) 100 times higher than a transparent transaction of the same size.
110+
99111
#### Build System
100112
In order to support the protocol, the following dependencies are introduced in the build system:
101113
- `Sodium` https://github.com/jedisct1/libsodium

0 commit comments

Comments
 (0)