Keep churn guarded until migrate credit

Summary

  • keep churn guarded until a migrate outbound is actually credited to the destination vault
  • keep leave and unbond membership-scoped while a node still belongs to a retiring vault or an in-flight migrate source vault
  • maintain a small in_flight_migrate keeper index when migrate outbound voters are written, and clear it once the matching inbound voter marks UpdatedVault
  • expose in-flight migration details on the /network API response, including source vault, source status, destination vault, tx-out details, and updated_vault
  • use a network-specific in-flight migration tx-out shape without height, and with string-safe coin.decimals, max_gas.decimals, and gas_rate, so /network JSON stays compatible with existing events clients
  • ignore stale active-vault in-flight entries while keeping unsettled inactive/retiring migration guards active
  • address review feedback by removing the redundant if !migratingVaults wrapper in handler_leave.go
  • make CI trunk parallelism configurable and default it lower to avoid lint runner OOMs

Testing

  • make generate using GNU sed for the repo's Linux-compatible OpenAPI post-processing
  • make proto-format-check
  • bash -n scripts/trunk-ci.sh
  • go test ./x/thorchain -run "^$"
  • go test ./x/thorchain -run TestPackage -check.f "TestNetworkHasMigratingVaults"
  • go test ./x/thorchain/keeper/v1 -run TestPackage -check.f "InFlightMigrateIndex"
  • go test ./tools/events/...
  • go test -tags mocknet ./tools/events/...

CI

Edited by JP

Merge request reports

Loading
Loading