fixes #1507 - proper tx confirmation calculation (#1552)

when self.height == current_height, # of confirmations should be 1 not 0
This commit is contained in:
Roy Blankman 2018-09-19 11:55:03 -04:00 committed by Antioch Peverell
parent ba72e6e29e
commit febe9076f0

View file

@ -248,7 +248,7 @@ impl OutputData {
/// so we do not actually know how many confirmations this output had (and
/// never will).
pub fn num_confirmations(&self, current_height: u64) -> u64 {
if self.height >= current_height {
if self.height > current_height {
return 0;
}
if self.status == OutputStatus::Unconfirmed {