mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-03 12:24:27 +01: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).