Data plane verification (#4639)
* Add signature to blob * Change Signable trait to support returning references to signable data * Add signing to broadcast * Verify signatures in window_service * Add testing for signatures to erasure * Add RPC for getting current slot, consume RPC call in test_repairman_catchup for more deterministic results
This commit is contained in:
		@@ -99,6 +99,10 @@ impl SyncClient for BankClient {
 | 
			
		||||
        Ok(self.bank.get_balance(pubkey))
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    fn get_recent_blockhash(&self) -> Result<(Hash, FeeCalculator)> {
 | 
			
		||||
        Ok(self.bank.last_blockhash_with_fee_calculator())
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    fn get_signature_status(
 | 
			
		||||
        &self,
 | 
			
		||||
        signature: &Signature,
 | 
			
		||||
@@ -106,8 +110,8 @@ impl SyncClient for BankClient {
 | 
			
		||||
        Ok(self.bank.get_signature_status(signature))
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    fn get_recent_blockhash(&self) -> Result<(Hash, FeeCalculator)> {
 | 
			
		||||
        Ok(self.bank.last_blockhash_with_fee_calculator())
 | 
			
		||||
    fn get_slot(&self) -> Result<u64> {
 | 
			
		||||
        Ok(self.bank.slot())
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    fn get_transaction_count(&self) -> Result<u64> {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user