Skip to content

0.22.0 (2026-05-12)

Choose a tag to compare

@github-actions github-actions released this 12 May 15:57
36253a4

Breaking Changes

Add RHP4 pool RPC handlers, renter helpers, and Contractor interface methods for shared balance pools.

Hosts can now back accounts with shared balance pools so renters don't need to pre-fund and continually rebalance every account. A renter funds a pool once and attaches as many accounts as they want; debits drain the account's own balance first and fall through to attached pools, which keeps per-account allowances small and reduces the total capital sitting idle in account balances. This is the host-side companion to the new RHP4 pool RPCs.

Extends the RHP4 Contractor interface with PoolBalances, CreditPoolsWithContract, AttachPools, and DetachPools (existing implementations must be updated). Adds host-side handlers for the new pool RPCs and renter-side helpers RPCReplenishPools, RPCAttachPools, and RPCDetachPools. DebitAccount semantics are extended to drain the account's own balance first, then attached pools in attachment order.

Fixes

  • Check downloaded data length in RPCReadSector before proof validation for a more meaningful error.
  • Fix incorrect v2 pool index.
  • Wrap client rpc errors in RPCError.