mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
when self.height == current_height, # of confirmations should be 1 not 0
This commit is contained in:
parent
ba72e6e29e
commit
febe9076f0
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue