Add storage reward pools (#4779)

This commit is contained in:
Sagar Dhawan
2019-06-22 17:18:35 -07:00
committed by GitHub
parent 0cc8a841ab
commit 11992946a4
15 changed files with 122 additions and 164 deletions

View File

@@ -20,12 +20,6 @@ pub fn process_instruction(
let mut storage_account = StorageAccount::new(*me[0].unsigned_key(), &mut me[0].account);
match bincode::deserialize(data).map_err(|_| InstructionError::InvalidInstructionData)? {
StorageInstruction::InitializeMiningPool => {
if !rest.is_empty() {
Err(InstructionError::InvalidArgument)?;
}
storage_account.initialize_mining_pool()
}
StorageInstruction::InitializeReplicatorStorage { owner } => {
if !rest.is_empty() {
Err(InstructionError::InvalidArgument)?;