cargo fmt
This commit is contained in:
parent
abd55e4159
commit
bca2294655
|
@ -58,12 +58,7 @@ impl Budget {
|
|||
}
|
||||
|
||||
/// Create a budget that pays `tokens` to `to` after the given DateTime.
|
||||
pub fn new_future_payment(
|
||||
dt: DateTime<Utc>,
|
||||
from: Pubkey,
|
||||
tokens: i64,
|
||||
to: Pubkey,
|
||||
) -> Self {
|
||||
pub fn new_future_payment(dt: DateTime<Utc>, from: Pubkey, tokens: i64, to: Pubkey) -> Self {
|
||||
Budget::After(Condition::Timestamp(dt, from), Payment { tokens, to })
|
||||
}
|
||||
|
||||
|
|
|
@ -228,14 +228,7 @@ impl NodeInfo {
|
|||
}
|
||||
pub fn new_entry_point(gossip_addr: SocketAddr) -> Self {
|
||||
let daddr: SocketAddr = "0.0.0.0:0".parse().unwrap();
|
||||
NodeInfo::new(
|
||||
Pubkey::default(),
|
||||
gossip_addr,
|
||||
daddr,
|
||||
daddr,
|
||||
daddr,
|
||||
daddr,
|
||||
)
|
||||
NodeInfo::new(Pubkey::default(), gossip_addr, daddr, daddr, daddr, daddr)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -243,7 +243,9 @@ impl ThinClient {
|
|||
/// until the server sends a response.
|
||||
pub fn check_signature(&mut self, signature: &Signature) -> bool {
|
||||
trace!("check_signature");
|
||||
let req = Request::GetSignature { signature: *signature };
|
||||
let req = Request::GetSignature {
|
||||
signature: *signature,
|
||||
};
|
||||
let data = serialize(&req).expect("serialize GetSignature in pub fn check_signature");
|
||||
let now = Instant::now();
|
||||
let mut done = false;
|
||||
|
|
|
@ -192,7 +192,8 @@ impl Transaction {
|
|||
/// Verify only the transaction signature.
|
||||
pub fn verify_signature(&self) -> bool {
|
||||
warn!("transaction signature verification called");
|
||||
self.signature.verify(&self.from.as_ref(), &self.get_sign_data())
|
||||
self.signature
|
||||
.verify(&self.from.as_ref(), &self.get_sign_data())
|
||||
}
|
||||
|
||||
/// Verify only the payment plan.
|
||||
|
|
Loading…
Reference in New Issue