mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-19 08:08:45 +02:00
num_participants is divided into the kernel cost, so 0 caused a divide-by-zero (inf -> garbage fee). Validate it in context::create, the common setup path for every party: the initiator's value comes from args and the signer's from the slate, so this also rejects a tampered slate. Only 1 (self-spend) and 2 (standard) are supported today; lift the upper bound when multi-party contracts are implemented. Addresses PR #754 review (wallet_args.rs:1039).