Loading
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_migratekeeper index when migrate outbound voters are written, and clear it once the matching inbound voter marksUpdatedVault - expose in-flight migration details on the
/networkAPI response, including source vault, source status, destination vault, tx-out details, andupdated_vault - use a network-specific in-flight migration tx-out shape without
height, and with string-safecoin.decimals,max_gas.decimals, andgas_rate, so/networkJSON 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 !migratingVaultswrapper inhandler_leave.go - make CI trunk parallelism configurable and default it lower to avoid lint runner OOMs
Testing
make generateusing GNUsedfor the repo's Linux-compatible OpenAPI post-processingmake proto-format-checkbash -n scripts/trunk-ci.shgo 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
- pipeline !35247 passed: https://gitlab.com/thorchain/thornode/-/pipelines/2488679271
Edited by JP