Jelajahi Sumber

Update frozen_abi hashes

The movement of files in sdk/ caused ABI hashes to change
Michael Vines 5 tahun lalu
induk
melakukan
a4956844bd

+ 1 - 1
core/src/cluster_info.rs

@@ -356,7 +356,7 @@ pub fn make_accounts_hashes_message(
 }
 }
 
 
 // TODO These messages should go through the gpu pipeline for spam filtering
 // TODO These messages should go through the gpu pipeline for spam filtering
-#[frozen_abi(digest = "3ZHQscZ9SgxKh45idzHv3hiagyyPRtDgeySmJn171PTi")]
+#[frozen_abi(digest = "21UweZ4WXK9RHypF97D1rEJQ4C8Bh4pw52SBSNAKxJvW")]
 #[derive(Serialize, Deserialize, Debug, AbiEnumVisitor, AbiExample)]
 #[derive(Serialize, Deserialize, Debug, AbiEnumVisitor, AbiExample)]
 #[allow(clippy::large_enum_variant)]
 #[allow(clippy::large_enum_variant)]
 enum Protocol {
 enum Protocol {

+ 1 - 1
core/src/consensus.rs

@@ -89,7 +89,7 @@ pub(crate) struct ComputedBankState {
     pub pubkey_votes: Arc<PubkeyVotes>,
     pub pubkey_votes: Arc<PubkeyVotes>,
 }
 }
 
 
-#[frozen_abi(digest = "2ZUeCLMVQxmHYbeqMH7M97ifVSKoVErGvRHzyxcQRjgU")]
+#[frozen_abi(digest = "Eay84NBbJqiMBfE7HHH2o6e51wcvoU79g8zCi5sw6uj3")]
 #[derive(Clone, Serialize, Deserialize, Debug, PartialEq, AbiExample)]
 #[derive(Clone, Serialize, Deserialize, Debug, PartialEq, AbiExample)]
 pub struct Tower {
 pub struct Tower {
     node_pubkey: Pubkey,
     node_pubkey: Pubkey,

+ 2 - 2
programs/vote/src/vote_state/mod.rs

@@ -32,7 +32,7 @@ pub const INITIAL_LOCKOUT: usize = 2;
 //  smaller numbers makes
 //  smaller numbers makes
 pub const MAX_EPOCH_CREDITS_HISTORY: usize = 64;
 pub const MAX_EPOCH_CREDITS_HISTORY: usize = 64;
 
 
-#[frozen_abi(digest = "69hYtmmcuqPbhpc64ZaNJDidaUcg66CW6wzPFiuYZ3To")]
+#[frozen_abi(digest = "Ch2vVEwos2EjAVqSHCyJjnN2MNX1yrpapZTGhMSCjWUH")]
 #[derive(Serialize, Default, Deserialize, Debug, PartialEq, Eq, Clone, AbiExample)]
 #[derive(Serialize, Default, Deserialize, Debug, PartialEq, Eq, Clone, AbiExample)]
 pub struct Vote {
 pub struct Vote {
     /// A stack of votes starting with the oldest vote
     /// A stack of votes starting with the oldest vote
@@ -150,7 +150,7 @@ impl<I> CircBuf<I> {
     }
     }
 }
 }
 
 
-#[frozen_abi(digest = "H7z93iz4PiRJqahQ9G1aJXao1huusBz47SA5WfP8g4yd")]
+#[frozen_abi(digest = "331ZmXrmsUcwbKhzR3C1UEU6uNwZr48ExE54JDKGWA4w")]
 #[derive(Debug, Default, Serialize, Deserialize, PartialEq, Eq, Clone, AbiExample)]
 #[derive(Debug, Default, Serialize, Deserialize, PartialEq, Eq, Clone, AbiExample)]
 pub struct VoteState {
 pub struct VoteState {
     /// the node that votes in this account
     /// the node that votes in this account

+ 1 - 1
runtime/src/bank.rs

@@ -114,7 +114,7 @@ pub const MAX_LEADER_SCHEDULE_STAKES: Epoch = 5;
 pub const TRANSACTION_LOG_MESSAGES_BYTES_LIMIT: usize = 100 * 1000;
 pub const TRANSACTION_LOG_MESSAGES_BYTES_LIMIT: usize = 100 * 1000;
 
 
 type BankStatusCache = StatusCache<Result<()>>;
 type BankStatusCache = StatusCache<Result<()>>;
-#[frozen_abi(digest = "EEFPLdPhngiBojqEnDMkoEGjyYYHNWPHnenRf8b9diqd")]
+#[frozen_abi(digest = "4nZ6EdivqQPcnrnXisbjuTjpcUBoHLDEQWvbZQDCoQQR")]
 pub type BankSlotDelta = SlotDelta<Result<()>>;
 pub type BankSlotDelta = SlotDelta<Result<()>>;
 type TransactionAccountRefCells = Vec<Rc<RefCell<Account>>>;
 type TransactionAccountRefCells = Vec<Rc<RefCell<Account>>>;
 type TransactionLoaderRefCells = Vec<Vec<(Pubkey, RefCell<Account>)>>;
 type TransactionLoaderRefCells = Vec<Vec<(Pubkey, RefCell<Account>)>>;

+ 1 - 1
runtime/src/blockhash_queue.rs

@@ -12,7 +12,7 @@ struct HashAge {
 }
 }
 
 
 /// Low memory overhead, so can be cloned for every checkpoint
 /// Low memory overhead, so can be cloned for every checkpoint
-#[frozen_abi(digest = "EwaoLA34VN18E95GvjmkeStUpWqTeBd7FGpd7mppLmEw")]
+#[frozen_abi(digest = "J1fGiMHyiKEBcWE6mfm7grAEGJgYEaVLzcrNZvd37iA2")]
 #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, AbiExample)]
 #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, AbiExample)]
 pub struct BlockhashQueue {
 pub struct BlockhashQueue {
     /// updated whenever an hash is registered
     /// updated whenever an hash is registered

+ 1 - 1
runtime/src/serde_snapshot/tests.rs

@@ -262,7 +262,7 @@ mod test_bank_serialize {
 
 
     // These some what long test harness is required to freeze the ABI of
     // These some what long test harness is required to freeze the ABI of
     // Bank's serialization due to versioned nature
     // Bank's serialization due to versioned nature
-    #[frozen_abi(digest = "ULV2jDndxR3JB677ayyjaamtAcZ24q75tCkHS2bKVoy")]
+    #[frozen_abi(digest = "7f8quGr9ia7Dg5o339uKrPd4bLesNVdPuKMLpGQ9c3SR")]
     #[derive(Serialize, AbiExample)]
     #[derive(Serialize, AbiExample)]
     pub struct BankAbiTestWrapperFuture {
     pub struct BankAbiTestWrapperFuture {
         #[serde(serialize_with = "wrapper_future")]
         #[serde(serialize_with = "wrapper_future")]

+ 1 - 1
sdk/program/src/account.rs

@@ -8,7 +8,7 @@ use std::{
 
 
 /// An Account with data that is stored on chain
 /// An Account with data that is stored on chain
 #[repr(C)]
 #[repr(C)]
-#[frozen_abi(digest = "AVG6bXqVUippoYRAE8e1ewHeZi1UvFx5r5gKspFSEbxM")]
+#[frozen_abi(digest = "Upy4zg4EXZTnY371b4JPrGTh2kLcYpRno2K2pvjbN4e")]
 #[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Default, AbiExample)]
 #[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Default, AbiExample)]
 #[serde(rename_all = "camelCase")]
 #[serde(rename_all = "camelCase")]
 pub struct Account {
 pub struct Account {

+ 1 - 1
sdk/program/src/message.rs

@@ -160,7 +160,7 @@ pub struct MessageHeader {
     pub num_readonly_unsigned_accounts: u8,
     pub num_readonly_unsigned_accounts: u8,
 }
 }
 
 
-#[frozen_abi(digest = "A18PN3BWKw4hU69STY79SyRS3tS6w54nCgYRRx77vQiL")]
+#[frozen_abi(digest = "6zcKiPfKoqYChcZfYcxqcmpJetXk8P51ihc4kiujPgdr")]
 #[derive(Serialize, Deserialize, Default, Debug, PartialEq, Eq, Clone, AbiExample)]
 #[derive(Serialize, Deserialize, Default, Debug, PartialEq, Eq, Clone, AbiExample)]
 #[serde(rename_all = "camelCase")]
 #[serde(rename_all = "camelCase")]
 pub struct Message {
 pub struct Message {

+ 1 - 1
sdk/program/src/system_instruction.rs

@@ -52,7 +52,7 @@ impl<E> DecodeError<E> for NonceError {
 /// maximum permitted size of data: 10 MB
 /// maximum permitted size of data: 10 MB
 pub const MAX_PERMITTED_DATA_LENGTH: u64 = 10 * 1024 * 1024;
 pub const MAX_PERMITTED_DATA_LENGTH: u64 = 10 * 1024 * 1024;
 
 
-#[frozen_abi(digest = "EpsptsKTYzMoQGSdoWRfPbwT3odGNfK3imEUTrxpLF1i")]
+#[frozen_abi(digest = "2xnDcizcPKKR7b624FeuuPd1zj5bmnkmVsBWgoKPTh4w")]
 #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, AbiExample, AbiEnumVisitor)]
 #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, AbiExample, AbiEnumVisitor)]
 pub enum SystemInstruction {
 pub enum SystemInstruction {
     /// Create a new account
     /// Create a new account

+ 1 - 1
sdk/src/genesis_config.rs

@@ -61,7 +61,7 @@ impl FromStr for ClusterType {
     }
     }
 }
 }
 
 
-#[frozen_abi(digest = "DEg4N5ps9EdEBL2H2ahU54SCcw3QphtPjh48H413fvNq")]
+#[frozen_abi(digest = "BAfWTFBwzed5FYCGAyMDq4HLsoZNTp8dZx2bqtYTCmGZ")]
 #[derive(Serialize, Deserialize, Debug, Clone, AbiExample)]
 #[derive(Serialize, Deserialize, Debug, Clone, AbiExample)]
 pub struct GenesisConfig {
 pub struct GenesisConfig {
     /// when the network (bootstrap validator) was started relative to the UNIX Epoch
     /// when the network (bootstrap validator) was started relative to the UNIX Epoch

+ 1 - 1
sdk/src/transaction.rs

@@ -103,7 +103,7 @@ impl From<SanitizeError> for TransactionError {
 }
 }
 
 
 /// An atomic transaction
 /// An atomic transaction
-#[frozen_abi(digest = "GoxM5ZMMjM2FSuY1VtuMhs1j8u9kMuYsH3dpYcSVVnTe")]
+#[frozen_abi(digest = "EGPL8qfT6of8UDKUTPQfcCADiRrpVxKXmULWtNdfjbQ8")]
 #[derive(Debug, PartialEq, Default, Eq, Clone, Serialize, Deserialize, AbiExample)]
 #[derive(Debug, PartialEq, Default, Eq, Clone, Serialize, Deserialize, AbiExample)]
 pub struct Transaction {
 pub struct Transaction {
     /// A set of digital signatures of `account_keys`, `program_ids`, `recent_blockhash`, and `instructions`, signed by the first
     /// A set of digital signatures of `account_keys`, `program_ids`, `recent_blockhash`, and `instructions`, signed by the first

+ 1 - 1
test-abi.sh

@@ -5,4 +5,4 @@
 
 
 here=$(dirname "$0")
 here=$(dirname "$0")
 set -x
 set -x
-exec "${here}/cargo" nightly test --lib -- test_abi_
+exec "${here}/cargo" nightly test --lib -- test_abi_ --nocapture