From c26363ca08c9bc4ddb602b8a4f0f5e1be681f449 Mon Sep 17 00:00:00 2001 From: John Adler Date: Mon, 3 Jan 2022 19:06:47 -0500 Subject: [PATCH] Require at least one coin input. (#258) * Require at least one coin input. * Clean up. --- specs/protocol/tx_format.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/protocol/tx_format.md b/specs/protocol/tx_format.md index 53ea336c..9f4db3d4 100644 --- a/specs/protocol/tx_format.md +++ b/specs/protocol/tx_format.md @@ -53,6 +53,7 @@ Transaction is invalid if: - `inputsCount > MAX_INPUTS` - `outputsCount > MAX_OUTPUTS` - `witnessesCount > MAX_WITNESSES` +- No inputs are of type `InputType.Coin` - More than one output is of type `OutputType.Change` for any color in the input set - Any output is of type `OutputType.Change` for any color not in the input set