Fix for genesis outputs confirms count (#2271)

This commit is contained in:
Ignotus Peverell 2019-01-02 12:11:02 -08:00 committed by GitHub
parent d9ff8e278e
commit 216924c677
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -288,8 +288,6 @@ impl OutputData {
}
if self.status == OutputStatus::Unconfirmed {
0
} else if self.height == 0 {
0
} else {
// if an output has height n and we are at block n
// then we have a single confirmation (the block it originated in)