Support for transaction thresholds

reviewed by: @msolnit