Forest already honours the confidence parameter in StateWaitMsg, but it accepts arbitrarily large values, allowing effectively unbounded waits. Lotus recently added upper bounds (filecoin-project/lotus#13705): full nodes reject confidence above chain finality (900 epochs), and the gateway enforces a configurable cap (default 20). We should add matching bounds in Forest — a node-level cap at ChainFinality and, if applicable, a configurable limit at the RPC/gateway layer.
Forest already honours the confidence parameter in StateWaitMsg, but it accepts arbitrarily large values, allowing effectively unbounded waits. Lotus recently added upper bounds (filecoin-project/lotus#13705): full nodes reject confidence above chain finality (900 epochs), and the gateway enforces a configurable cap (default 20). We should add matching bounds in Forest — a node-level cap at ChainFinality and, if applicable, a configurable limit at the RPC/gateway layer.