solana/core
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
..
benches Add hook for getting vote transactions on replay (#11264) 2020-07-29 23:17:40 -07:00
src Withdraw authority no longer implies a custodian (#11302) 2020-07-31 13:37:53 -06:00
tests Track votes from gossip for optimistic confirmation (#11209) 2020-07-28 09:33:27 +00:00
.gitignore tmp dirs target to farf (#5079) 2019-07-12 18:28:42 -07:00
Cargo.toml Avoid spl-sdk dependency, which inhibits crate publishing 2020-07-30 23:47:26 +00:00
build.rs Introduce automatic ABI maintenance mechanism (2/2; rollout) (#8012) 2020-07-06 20:22:23 +09:00