Add redeem_vote_credits to runtime (#7910)

* Move redeem_vote_credits into runtime

* fixup

* test

* move stake manipulation to stake program

* chugga for less indentation
This commit is contained in:
Rob Walker
2020-01-22 12:21:31 -08:00
committed by GitHub
parent 3a0d13aa77
commit ce70d6eedc
4 changed files with 151 additions and 34 deletions

View File

@ -1,6 +1,8 @@
//! useful extras for Account state
use crate::account::{Account, KeyedAccount};
use crate::instruction::InstructionError;
use crate::{
account::{Account, KeyedAccount},
instruction::InstructionError,
};
use bincode::ErrorKind;
/// Convenience trait to covert bincode errors to instruction errors.