Cleanup naming

This commit is contained in:
Greg Fitzgerald
2018-03-20 16:53:41 -06:00
parent f7032f7d9a
commit 4da89ac8a9
2 changed files with 13 additions and 13 deletions

View File

@@ -141,7 +141,7 @@ impl Accountant {
}
let mut plan = tr.plan.clone();
plan.process_witness(Witness::Timestamp(self.last_time));
plan.apply_witness(Witness::Timestamp(self.last_time));
if plan.is_complete() {
self.complete_transaction(&plan);
@@ -154,7 +154,7 @@ impl Accountant {
fn process_verified_sig(&mut self, from: PublicKey, tx_sig: Signature) -> Result<()> {
let actionable = if let Some(plan) = self.pending.get_mut(&tx_sig) {
plan.process_witness(Witness::Signature(from));
plan.apply_witness(Witness::Signature(from));
plan.is_complete()
} else {
false
@@ -187,7 +187,7 @@ impl Accountant {
// Check to see if any timelocked transactions can be completed.
let mut completed = vec![];
for (key, plan) in &mut self.pending {
plan.process_witness(Witness::Timestamp(self.last_time));
plan.apply_witness(Witness::Timestamp(self.last_time));
if plan.is_complete() {
completed.push(key.clone());
}