solana-install update now updates a named release to the latest patch version

This commit is contained in:
Michael Vines
2021-03-11 17:52:16 -08:00
parent 66b4124a68
commit 79280b304b
6 changed files with 319 additions and 166 deletions

View File

@@ -1,14 +1,16 @@
use serde_derive::{Deserialize, Serialize};
use solana_config_program::ConfigState;
use solana_sdk::{
hash::Hash,
pubkey::Pubkey,
signature::{Signable, Signature},
use {
serde::{Deserialize, Serialize},
solana_config_program::ConfigState,
solana_sdk::{
hash::Hash,
pubkey::Pubkey,
signature::{Signable, Signature},
},
std::{borrow::Cow, error, io},
};
use std::{borrow::Cow, error, io};
/// Information required to download and apply a given update
#[derive(Serialize, Deserialize, Default, Debug, PartialEq)]
#[derive(Serialize, Deserialize, Default, Clone, Debug, PartialEq)]
pub struct UpdateManifest {
pub timestamp_secs: u64, // When the release was deployed in seconds since UNIX EPOCH
pub download_url: String, // Download URL to the release tar.bz2