solana-with-rpc-optimizations/programs
Greg Fitzgerald 61d9d219f9
Withdraw authority no longer implies a custodian (#11302)
* Withdraw authority no longer implies a custodian

Before this change, if the withdraw authority and custodian had
the same public key, then a withdraw authority signature would
imply a custodian signature and lockup would be not be enforced.

After this change, the client's withdraw instruction must
explictly reference a custodian account in its optional sixth
account argument.

Likewise, the fee-payer no longer implies either a withdraw
authority or custodian.

* Fix test

The test was configuring the stake account with the fee-payer as
the withdraw authority, but then passing in a different key to
the withdraw instruction's withdraw authority parameter. It only
worked because the second transaction was signed by the fee-payer.
2020-07-31 13:37:53 -06:00
..
bpf Disable cross-program invocations for OperatingMode::Stable (#11272) 2020-07-29 15:29:52 -07:00
bpf_loader Disable cross-program invocations for OperatingMode::Stable (#11272) 2020-07-29 15:29:52 -07:00
budget chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867) 2020-07-09 00:08:05 +00:00
config chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867) 2020-07-09 00:08:05 +00:00
exchange chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867) 2020-07-09 00:08:05 +00:00
failure Rename Client methods to match proposed BanksClient (#10793) 2020-06-25 03:35:38 +00:00
noop Change documentation introduction to indicate Foundation IP transfer (#10440) 2020-06-13 14:41:05 -07:00
ownable chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867) 2020-07-09 00:08:05 +00:00
stake Withdraw authority no longer implies a custodian (#11302) 2020-07-31 13:37:53 -06:00
vest chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867) 2020-07-09 00:08:05 +00:00
vote Add utility function (#11262) 2020-07-28 23:44:10 -07:00