* Introduce automatic ABI maintenance mechanism (2/2; rollout)
* Fix stable clippy
* Change to symlink
* Freeze abi of Tower
* fmt...
* Improve dev-experience!
* Update BankSlotDelta
$ diff -u /tmp/abi8/*7dg6BreYxTuxiVz6aLvk3p2Z7GQk2cJqfGvC9h4FAoSj* /tmp/abi8/*9chBcbXVJ4fK7uGgydQzam5aHipaAKFw6V4LDFpjbE4w*
--- /tmp/abi8/bank__BankSlotDelta_frozen_abi__test_abi_digest_7dg6BreYxTuxiVz6aLvk3p2Z7GQk2cJqfGvC9h4FAoSj      2020-06-18 18:01:22.831228087 +0900
+++ /tmp/abi8/bank__BankSlotDelta_frozen_abi__test_abi_digest_9chBcbXVJ4fK7uGgydQzam5aHipaAKFw6V4LDFpjbE4w      2020-07-03 15:59:58.430695244 +0900
@@ -140,7 +140,7 @@
                                                         field u8
                                                             primitive u8
                                                         field solana_sdk::instruction::InstructionError
-                                                            enum InstructionError (variants = 34)
+                                                            enum InstructionError (variants = 35)
                                                                 variant(0) GenericError (unit)
                                                                 variant(1) InvalidArgument (unit)
                                                                 variant(2) InvalidInstructionData (unit)
@@ -176,6 +176,7 @@
                                                                 variant(31) CallDepth (unit)
                                                                 variant(32) MissingAccount (unit)
                                                                 variant(33) ReentrancyNotAllowed (unit)
+                                                                variant(34) MaxSeedLengthExceeded (unit)
                                                     variant(9) CallChainTooDeep (unit)
                                                     variant(10) MissingSignatureForFee (unit)
                                                     variant(11) InvalidAccountIndex (unit)
* Fix some merge conflicts...
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use crate::clock::DEFAULT_TICKS_PER_SECOND;
 | |
| use std::time::Duration;
 | |
| 
 | |
| #[derive(Serialize, Deserialize, Clone, Debug, AbiExample)]
 | |
| pub struct PohConfig {
 | |
|     /// The target tick rate of the cluster.
 | |
|     pub target_tick_duration: Duration,
 | |
| 
 | |
|     /// The target total tick count to be produced; used for testing only
 | |
|     pub target_tick_count: Option<u64>,
 | |
| 
 | |
|     /// How many hashes to roll before emitting the next tick entry.
 | |
|     /// None enables "Low power mode", which implies:
 | |
|     /// * sleep for `target_tick_duration` instead of hashing
 | |
|     /// * the number of hashes per tick will be variable
 | |
|     pub hashes_per_tick: Option<u64>,
 | |
| }
 | |
| 
 | |
| impl PohConfig {
 | |
|     pub fn new_sleep(target_tick_duration: Duration) -> Self {
 | |
|         Self {
 | |
|             target_tick_duration,
 | |
|             hashes_per_tick: None,
 | |
|             target_tick_count: None,
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | |
| impl Default for PohConfig {
 | |
|     fn default() -> Self {
 | |
|         Self::new_sleep(Duration::from_micros(
 | |
|             1000 * 1000 / DEFAULT_TICKS_PER_SECOND,
 | |
|         ))
 | |
|     }
 | |
| }
 |