Merge stake accounts

Merge two stake accounts with matching authorities and lockup into one. Compatible combinations include:

  • two deactivated stakes,
  • an inactive stake into an activating stake during its activation epoch.

For the following cases (active stakes), voter pubkey and vote credits observed must match:

  • two activated stakes,
  • two activating accounts that share an activation epoch, during the activation epoch

Other combinations or transient states are not supported.