diff --git a/database/postgresql/postgresql.go b/database/postgresql/postgresql.go index 0b8f4fa8..0244dbe4 100644 --- a/database/postgresql/postgresql.go +++ b/database/postgresql/postgresql.go @@ -128,7 +128,7 @@ VALUES ($1, $2, $3, $4, $5, $6) ON CONFLICT DO NOTHING` // GetTotalBlocks implements database.Database func (db *Database) GetTotalBlocks() int64 { var blockCount int64 - err := db.Sql.QueryRow(`SELECT count(*) FROM block;`).Scan(&blockCount) + err := db.SQL.QueryRow(`SELECT count(*) FROM block;`).Scan(&blockCount) if err != nil { return 0 }